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

Set results UI denominator correctly when it is 0 #2448

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

lukesonnet
Copy link
Contributor

If a denominator is 0 for a ratio metric, we should return that rather than fall back to users. This PR does that.

Because the stats engine will always return denominator = 0 for non-ratio metrics, we have to use the kind of logic I've built into the FE here.

This PR also allows for any non-binomial metric to be a ratio denominator (for classic metrics), not just count metrics.

Before (non-sensical results):
Screenshot 2024-04-29 at 12 20 20 PM

After (more sensical results):
Screenshot 2024-04-29 at 12 19 59 PM

Copy link

Your preview environment pr-2448-bttf has been deployed.

Preview environment endpoints are available at:

@lukesonnet lukesonnet requested a review from jdorn April 30, 2024 15:54
@lukesonnet lukesonnet merged commit 8a86083 into main Apr 30, 2024
3 checks passed
@lukesonnet lukesonnet deleted the ls/ratio-denom branch April 30, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants