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(cmp_alerts): Return current and comparison count from stats api, instead of percent #29245

Merged
merged 2 commits into from
Oct 12, 2021

Conversation

wedamija
Copy link
Member

This changes the response from OrganizationEventsStatsEndpoint to include the current count and
comparisonCount values when comparisonDelta is passed, rather than returning the % change. To
calculate the delta change value on the frontend use ((count / comparisonCount) - 1) * 100, making
sure to not divide by 0.

… instead of percent

This changes the response from `OrganizationEventsStatsEndpoint` to include the current count and
comparisonCount values when `comparisonDelta` is passed, rather than returning the % change. To
calculate the delta change value on the frontend use `((count / comparisonCount) - 1) * 100`, making
sure to not divide by 0.
@wedamija wedamija requested review from ahmedetefy and a team October 12, 2021 00:05
@wedamija wedamija requested a review from a team as a code owner October 12, 2021 00:05
@wedamija wedamija merged commit 8450f69 into master Oct 12, 2021
@wedamija wedamija deleted the danf/cmp_alerts_cmp_value branch October 12, 2021 17:23
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 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.

2 participants