You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The feature set for gutter is pretty suitable for rolling out a feature to groups of users, or of course as a global on/off feature toggle. But if you want to enable a feature for specific users, the only way I can see gutter supporting that is by adding a condition for each user you want the switch to be active for. I imagine this becomes very slow if you want it enabled for say a thousand users in beta testing.
Am I missing something here, or is this usecase not well suited to gutter?
Thanks!
The text was updated successfully, but these errors were encountered:
The gutter API is pretty flexible for whatever you wanted to do - it's all just Python.
To match a known set of user IDs, you'd just need to make an operator that inherits from the Base operator. That operator, i.e. called ContainedIn, would just need to implement the applies_to method to check if the argument is contained within the collection ContainedIn would be constructed with.
classContainedIn(Base):
name='contained_in'group='comparable'preposition='contained in'arguments= ('value',)
defapplies_to(self, argument):
returnargumentinself.valuedef__str__(self):
return'contained in "%s"'%self.value
You can retrieve your users collection however you want - DB, Redis, hard coded, etc. Each option has tradeoffs though, so you should choose what is right for your use case.
The feature set for gutter is pretty suitable for rolling out a feature to groups of users, or of course as a global on/off feature toggle. But if you want to enable a feature for specific users, the only way I can see gutter supporting that is by adding a condition for each user you want the switch to be active for. I imagine this becomes very slow if you want it enabled for say a thousand users in beta testing.
Am I missing something here, or is this usecase not well suited to gutter?
Thanks!
The text was updated successfully, but these errors were encountered: