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

feat(workflow): Adding 'this week' totals, dynamic average, and merging into one query #29301

Merged
merged 2 commits into from
Oct 13, 2021

Conversation

iProgramStuff
Copy link
Contributor

This PR changes the fixed 12 week average to be the average over the selected time period instead. It also now returns the count of releases in the last week for each project, and in making these changes, I was able to merge these two queries into one.

current_day, agg_project_counts = start, {}
agg_project_counts = {}
project_avgs = defaultdict(int)
this_week_start = now() - timedelta(days=7)
Copy link
Member

Choose a reason for hiding this comment

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

Should this be rounded down to the start of the day?

Copy link
Contributor Author

@iProgramStuff iProgramStuff Oct 13, 2021

Choose a reason for hiding this comment

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

Hmm, then we'd also need to change the end so that it remains 7 days right? Or perhaps we could not include today and just do the previous 7 days?

@iProgramStuff iProgramStuff merged commit 2f4466e into master Oct 13, 2021
@iProgramStuff iProgramStuff deleted the feat/releaseendpointchanges branch October 13, 2021 22:45
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants