Create a managed rollout strategy.
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- ruby
- Domain
- backend-api-design, frontend
Research direction
Start by reviewing the existing rollout strategy API and the activeexperiment-dashboard area mentioned in the issue, including how lifecycle actions are currently exposed. Done means a Managed rollout strategy supports the shown default configuration and the dashboard exposes controls for managing experiment lifecycle and rollout values.
Written by the indexing model from the issue text.
Description
After adding the dashboard to review experiments, their lifecycles, and their data, it had me thinking that it would be nice to be able to toggle on managing lifecycle from that dashboard as well. This isn't particularly hard, and since the api is already present, we just need to expose the interface and actions. This also had me thinking about changing the properties of a rollout strategy, which I didn't love. Like, if you've selected the percent rollout strategy, and defined the percents -- it doesn't make sense that someone should be able to change those in an interface later, because the code then doesn't hold truth.
But it does hold truth if the code communicates that it's a managed rollout value. So, I propose adding a rollout strategy that's named "Managed", and then we can add an interface in activeexperiment-dashboard for this. I assume this should go in the dashboard gem, but I wanted to document it here and where it's implemented might not matter. The implementation would look like this in an experiment, and this is what makes me feel like it's ok:
class MyExperiment < ApplicationExperiment
variant(:red) { :red }
variant(:blue) { :blue }
use_rollout :managed, default: { red: 50, blue: 50 }
end
That communicates that the default is 50/50, and that it's managed (and so might change, so you should go check that). I think this gives you everything you might need to verify the status of the experiment rollout from the code, and doesn't trick you into thinking that the code is the truth when it might not be.
- Dominant language
- Ruby
- Stars
- 5
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejacks0n/activeexperiment
-
enhancement feature request
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 35/100
jejacks0n/activeexperiment#6 · 1 comment ·
-
There should be a complex example of a service based rollout and subscriberMay be free again @jejacks0n claimed this 1455 days ago, and no pull request is open. Opendocumentation enhancement
jejacks0n/activeexperiment#5 · 2 comments · 1 assignee ·
All issues in jejacks0n/activeexperiment
Similar issues
-
blast/small refactor risk/medium spend-dem
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
chriskelly/MusicWall#84 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
simp/simp-gpgkeys#63 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
simp/simp-selinux-policy#38 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
simp/simp-rsync-skeleton#69 ·