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/variants ordering #1187

Merged
merged 2 commits into from
Dec 15, 2021
Merged

Fix/variants ordering #1187

merged 2 commits into from
Dec 15, 2021

Conversation

chriswk
Copy link
Contributor

@chriswk chriswk commented Dec 15, 2021

We found that for existing variants, the sorting by name wasn't applied, so the index in the patches were wrong. This PR adds the sort also when we're getting variants as part of the getFeature call, not just when we're getting the variants. This should make the UX consistent, and prevent our patches from hitting the wrong index in the variants array.

ykhedher and others added 2 commits December 15, 2021 13:42
Co-authored-by: Youssef Khedher <khedher.youssef@hotmail.fr>
@vercel
Copy link

vercel bot commented Dec 15, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/unleash-team/unleash-docs/D5EVbork6oS92moTuiE6Ah4bUtU7
✅ Preview: https://unleash-docs-git-fix-variants-ordering-unleash-team.vercel.app

@github-actions
Copy link

Coverage report

Total coverage

Status Category Percentage Covered / Total
🟢 Statements 92.09% 4562/4954
🟢 Branches 81.75% 918/1123
🟢 Functions 87.93% 1078/1226
🟢 Lines 93.86% 5166/5504

Status of coverage: 🟢 - ok, 🟡 - slightly more than threshold, 🔴 - under the threshold

Report generated by 🧪jest coverage report action from 52e1ecf

@ykhedher
Copy link
Contributor

Copy link
Contributor

@ykhedher ykhedher left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@chriswk chriswk merged commit 791384d into master Dec 15, 2021
@chriswk chriswk deleted the fix/variants-ordering branch December 15, 2021 13:20
Tymek added a commit that referenced this pull request Aug 26, 2022
* fix: proper spacing and dividers between strategies

* fix: improve strategy execution list logic

* update custom strategy execution styles

* interpret not defined custom strategy parameters
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