-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow rolling feature flags out to multiple groups #3030
Conversation
This will be part of #3007 I did not do a migration since it would cause errors for decide endpoint once migrations have run but new schema not up.
4274eda
to
2ca74ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small UI consideration would be how these groups are represented in the table. The first feature flag is a 2 group feature flag but the rollout percentages aren't shown and the filters aren't clearly defined with an OR relationship. The second feature flag is just a single group with filters AND'd together
Good point re UX - not sure how to best represent it and release percentage within the table without getting too busy. Suggestions/thoughts? :) |
Two options come to mind:
|
296556f
to
5139249
Compare
this is a lot better than the previous columns. What was immediately still confusing was that the percentage is shown in the first row when there's a single filter but it disappears when there are more filters such as in row 3 even though i'm assuming those are and'd together in the same group? |
Row 3 has no rollout percentage defined, which is why we don't show it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I'm good with this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, seems like I forgot to submit my review yesterday. Anyways think these comments might be useful for a subsequent PR.
Commenting only on the UI/UX, here are my 2c,
-
This UI seems quite cluttered and hard to understand even on the best of circumstances.
I would suggest trying something like this, where we can still provide very useful information in the same page while making it clear what each group is comprised of. But this might entail updating all similar filtering related components,
-
The add group button is hard to find, and it's not use is not very intuitive. In addition, it's not standardized with how we add match groups elsewhere in the app. Would suggest taking a look at actions or cohorts.
-
I would definitely add the "OR" tag (as we do on actions) to make it extra clear how the match groups are referenced. Additionally the close button is also a bit hard to see (particularly the first times) and doesn't match the actions UI either. To be fair it does match the cohorts UI a bit more, but I think it might be worth leaning towards the actions approach.
Let me know if you want me to take on the UI improvements. I would need a couple of days to carve out some time for this but happy to do it.
Changes
This makes it possible to roll out feature flags in several groups. #3007
Since feature flags are used by /decide endpoint, just doing a data migration would mean dropped requests while new servers are spinning up => I added application-level logic for handling that. This logic can be removed/migrated at a later date.
Commits
Checklist