want user modulo user feature scope selector
Bug #666544 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Martin Pool |
Bug Description
We'd like a way to select a feature for only a particular fraction of users, perhaps by selecting (a < (user_id % m) <= b).
The formula used should be stable if we want to ramp up the number of users in a particular experiment or have multiple streams of the experiment, so just (user_id % m) == 0 is not enough.
Related branches
lp://staging/~mbp/launchpad/feature-modulus
- Gavin Panella (community): Approve
-
Diff: 183 lines (+110/-11)2 files modifiedlib/lp/services/features/scopes.py (+48/-10)
lib/lp/services/features/tests/test_scopes.py (+62/-1)
Changed in launchpad: | |
status: | Confirmed → Triaged |
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Martin Pool (mbp) |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Sounds nice; perhaps using , in the value for the rule will be enough.