Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 1018 sprint burnup metric #1371

Merged
merged 46 commits into from
Mar 20, 2024
Merged

Issue 1018 sprint burnup metric #1371

merged 46 commits into from
Mar 20, 2024

Conversation

AlexanderStephensonUSDS
Copy link
Collaborator

Summary

Fixes #1018

Time to review: 5 mins

Changes proposed

What was added, updated, or removed in this PR.

The PR adds a Sprint Burnup metric to the analytics package.

In addition, it updates the documentation to include the description and calculation of the Burnup metric.

Context for reviewers

Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified.

Additional information

Screenshots, GIF demos, code examples or output to help show the changes working as expected.

burnup-ex

@AlexanderStephensonUSDS
Copy link
Collaborator Author

PR still needs to include test coverage. Wanted to put this up for code discussion.

@AlexanderStephensonUSDS AlexanderStephensonUSDS marked this pull request as draft February 29, 2024 20:09
@@ -120,6 +120,11 @@ Once you've exported the sprint and issue data from GitHub, you can start calcul
poetry run analytics calculate sprint_burndown --sprint-file data/sprint-data.json --issue-file data/issue-data.json --sprint @current --unit points --show-results
```

If on a Windows machine:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of specifying a different command for windows, might be worth just tweaking the guidance below to wrap @current in quotes since it also works with quotes on Mac/Linux

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Done.

@AlexanderStephensonUSDS AlexanderStephensonUSDS marked this pull request as ready for review March 7, 2024 22:03
@AlexanderStephensonUSDS AlexanderStephensonUSDS marked this pull request as draft March 7, 2024 22:41
@AlexanderStephensonUSDS AlexanderStephensonUSDS marked this pull request as ready for review March 13, 2024 18:00
Copy link
Collaborator

@widal001 widal001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I confirmed that we get the same output for sprint burndown as before and the sprint burnup looks right to me as well!

There is something strange happening with the default zoom (see screenshot) but we can tackle that in a followup ticket

Default zoom

Screenshot 2024-03-20 at 10 44 32 AM

Zoomed out

Screenshot 2024-03-20 at 10 45 00 AM

@@ -89,6 +90,30 @@ def calculate_sprint_burndown(
post_results=post_results,
)

@metrics_app.command(name="sprint_burnup")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this CLI utility, made it really easy to check!

template="none",
)
# set the scale of the y axis to start at 0
chart.update_yaxes(range=[0, df["value"].max() + 10])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is impacting the zoom since we're using a stacked bar chart

@widal001 widal001 merged commit 8af7708 into main Mar 20, 2024
2 checks passed
@widal001 widal001 deleted the issue-1018-SprintBurnup-metric branch March 20, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analytics documentation Improvements or additions to documentation python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Analytics - Create SprintBurnup metric
2 participants