-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add waffle flag to turn submissions on or off #1830
Add waffle flag to turn submissions on or off #1830
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-39 |
Need scope clarification on "have an option allowing submissions of add-ons matching some criteria (like recommended) to still go through if we so wish." |
@wagnerand what do you think about #1830 (comment) ? If it's not needed, it obviously makes our life much easier. If it is, we need the exact criteria/mechanism wanted for bypass (which could be optional, but we still need to know what it is to build it). |
I could see an override option for admins to submit a new version for any add-on, in case there is a critical request from a developer (similar to admins being allowed to override a failed validation). I am not sure we should have exceptions for certain sets of add-ons. @abyrne-moz might want to weigh in on this as well. |
Can you provide an example scenario of when we might need to use this? "In case of emergencies" isn't that clear to me, and I assume an emergency lasts a short period of time and therefore limits the need for an override option. |
A bypass for admins is trivial for us to implement through a waffle |
We need copy for this feature. Currently in the PR we have:
I'm thinking "Submissions" is too generic here. Could you help come up with something? |
Would "Add-on uploads" be more appropriate?
On top of that, we have a special error page if somehow the developers bypasses disabled buttons or has unlucky timing and submits an add-on right as the submissions are being disabled. That page has a title and a header:
|
Yeah I think that's good. cc @chrstinalin ^ |
I did not change anything to the With switch off (no/unknown)
I must continue testing around but I thought I should leave an update so far (I hope I am using the correct settings for the flag) |
We don't have the decorator on The admin not being able to bypass the flag if |
I'll add my latest test results:
|
I checked the
This I'm stumped on. Does |
Also stumped on this. |
Submissions seem to disable correctly for me locally when
@ioanarusiczki could I ask what the exact steps you took here were? |
(Figured it out over Slack -- Everyone was set to |
We want to add something admins could easily toggle to turn submissions on or off (devhub + old and new APIs) in case of emergencies - we already have solutions, but they require ops, and we want something more granular.
Ideally, this would be some kind of custom Waffle flag, enabling us to have an option allowing submissions of add-ons matching some criteria (like recommended) to still go through if we so wish.
It should also return a custom error message and HTTP status code that clearly states why submissions are turned off temporarily (also something that waffle
Flag
model supports, through thenote
attribute - it would be English only, but that should be acceptable for this feature). We should make sure that error message is clearly visible in devhub and web-ext.┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: