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

Round Sprinty McBurndown's output to integers #1976

Closed
wants to merge 12 commits into from

Conversation

AlexanderStephensonUSDS
Copy link
Collaborator

Summary

Fixes #1850

Time to review: 2 minutes

Changes proposed

Adds code to metrics to covert float percentages to whole integers.

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

See Screenshot from local CLI.
burndown
burnup
percent_deliver

@coilysiren
Copy link
Collaborator

@AlexanderStephensonUSDS let me know if you need help with the CI failures

@AlexanderStephensonUSDS
Copy link
Collaborator Author

@coilysiren What do I need to fix for the Anchore Scan vulnerability check failure?

@coilysiren
Copy link
Collaborator

@AlexanderStephensonUSDS if you look at the check, you'll see this

image

It's referencing the current version of Jinja2, which is being installed here:

name = "jinja2"
version = "3.1.3"

To fix the scan, you need to update Jinja2. You can do that with the following command:

$ poetry update

coilysiren
coilysiren previously approved these changes May 9, 2024
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.

Hey @AlexanderStephensonUSDS thanks for finding and making these changes in the necessary places!

One small edit (which I should have made more clear in the ticket) we want to round the numbers to the nearest whole percentage point rather than simply flooring them to their integer value.

I left a few code suggestions that you should be able to accept, but can you update the other uses of int() alone as well?

analytics/src/analytics/metrics/burndown.py Outdated Show resolved Hide resolved
analytics/tests/metrics/test_burndown.py Outdated Show resolved Hide resolved
@AlexanderStephensonUSDS
Copy link
Collaborator Author

widal001
widal001 previously approved these changes May 13, 2024
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.

LGTM!

I ran make sprint-reports-with-latest-data ACTION=post-results and got the following results:

@widal001
Copy link
Collaborator

We'll tackle this in one of the other related issues in #2355

@widal001 widal001 closed this Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Round Sprinty McBurndown's post to nearest integer
3 participants