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

fix: under-counting metrics for enum is_enabled() #83

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

rbtcollins
Copy link
Collaborator

  • fix: under-counting metrics for enum is_enabled()
  • Release

Not sure how long this has been broken, but it was : the early exit
bypassed the counting of selected result.
@rbtcollins rbtcollins changed the title rbt/counting fix: under-counting metrics for enum is_enabled() Mar 18, 2024
Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM - thank you!

@chriswk chriswk merged commit cdee650 into Unleash:main Mar 18, 2024
9 checks passed
@rbtcollins
Copy link
Collaborator Author

I figured out - this was a regression in 26eaac3 (@thomasheartman )

@rbtcollins rbtcollins deleted the rbt/counting branch March 18, 2024 09:44
@thomasheartman
Copy link
Contributor

Oh, wow. Good catch! Might be worth adding some tests for it so that we avoid it happening again?

@rbtcollins
Copy link
Collaborator Author

I think the str case is already tested, this is oversight indeed; we should add some tests; it may be a bit before I have time to do that myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants