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: variation percentage calculation #3268

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

kyle-ssg
Copy link
Member

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

The frontend validates MV percentages incorrectly for segment overrides, instead of using the control percentage it mistakenly uses the remote config value.

Screen.Recording.2024-01-10.at.09.24.08.mov

How did you test this code?

  • Validated the bug by setting the control value of an MV flag to -1
  • Validated that the error is now determined by environment weights

Copy link

vercel bot commented Jan 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 10:23am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 10:23am
flagsmith-frontend-staging 🛑 Canceled (Inspect) Jan 11, 2024 10:23am

Copy link
Contributor

github-actions bot commented Jan 10, 2024

Uffizzi Preview deployment-44110 was deleted.

@kyle-ssg kyle-ssg changed the title Fix variation percentage calculation fix: variation percentage calculation Jan 11, 2024
@kyle-ssg kyle-ssg added this pull request to the merge queue Jan 19, 2024
Merged via the queue into main with commit ec272ba Jan 19, 2024
19 checks passed
@kyle-ssg kyle-ssg deleted the fix/variation-percentage-calculation branch January 19, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Segment Override" page shows an error if the control value is less than 0 for multi-variate flags.
2 participants