-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
Disabling an enabled feature for specific actor doesn't work #374
Comments
Hi there! See caveat #2. https://github.com/jnunemaker/flipper/blob/164f29e2c85c8bd94519ffefa5b3c6f2f6e5839e/docs/Caveats.md and #71 for more background. |
I find this architecture odd... It seems like gates would have ordinal specificity, as in Right now it appears that features can only be represented as enabled in the database, and disabled can only be inferred by omission? That seems very limiting. |
@gmac can you describe your specific use case(s) where disable would be helpful. That always helps me understand and determine if disable is really what you need or if there is another way. Also, I'm open to pull requests. I've never needed this in all my years of using flipper. When I have looked at it as a feature request for others I remember running into many tricky situations where I wasn't sure what made sense as desired behavior. |
I've bumped into this today and I agree that the it's natural to think that the more specific is the switch, the higher priority it should have. |
@lneicelis Thanks for your feedback. We have a bunch of work coming in #557 that will pave the way for being able to deny specific users. Follow that issue to stay in the loop. |
I think the basic use-case is enabling a feature globally or for a % of users, but allowing individuals to opt-out. It looks like #557 has been going for quite some time, and I'm not entirely certain it offers a simple solution for this (nor am I sure how close it is to landing). At first I thought simply adding an
However, I think the tricky bit can be generically described as
After writing this all out and thinking about it some more, I still think Maybe I'll whip up a PR to flesh the idea out a bit more. The behavior would have to be opt-in and backwards compatible. This would be enormously useful at my organization. |
Here are the specs:
The first spec is failing. The expected behavior would be the most specific (disabling a single actor) to take precedence over the globally 'enabled' feature.
The text was updated successfully, but these errors were encountered: