-
Notifications
You must be signed in to change notification settings - Fork 31
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
api: Create experiment abstraction for closed beta features #1615
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
app.post( | ||
"/:experiment/audience", | ||
authorizer({ anyAdmin: true }), |
Check failure
Code scanning / CodeQL
Missing rate limiting
} | ||
); | ||
|
||
app.patch("/:experiment", authorizer({ anyAdmin: true }), async (req, res) => { |
Check failure
Code scanning / CodeQL
Missing rate limiting
res.status(204).end(); | ||
}); | ||
|
||
app.get("/:experiment", authorizer({ anyAdmin: true }), async (req, res) => { |
Check failure
Code scanning / CodeQL
Missing rate limiting
e08254b
to
a2e374f
Compare
978044b
to
525f072
Compare
78ad148
to
f2a2f59
Compare
To be used in experimenting code
Always safer to start closed.
f2a2f59
to
0dd33f0
Compare
I wanna make the filters actually fail the request if they are malformed. It's very confusing to get a response that is completely ignoring some input you provided.
Codecov Report
@@ Coverage Diff @@
## master #1615 +/- ##
===================================================
- Coverage 53.78187% 52.91160% -0.87027%
===================================================
Files 70 73 +3
Lines 4667 4774 +107
Branches 886 914 +28
===================================================
+ Hits 2510 2526 +16
- Misses 1837 1927 +90
- Partials 320 321 +1
Continue to review full report at Codecov.
|
What does this pull request do? Explain your changes. (required)
This is to create a new abstraction called "experiment" to allow us to iterate on
private experiments with specific customers without risking having a feature widely
available to all the users.
This was originally designed here: https://www.notion.so/livepeer/Feature-Experimentation-Playbook-f80717040b254c1ca3591169bcf6611f
Specific updates (required)
How did you test each of these updates (required)
yarn test
, also putting on staging to test the internal apiDoes this pull request close any open issues?
Implements #1617
Checklist