Skip to content
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 require_submissions_enabled decorator to FileUploadViewSet Create #22774

Merged

Conversation

chrstinalin
Copy link
Contributor

Fixes: mozilla/addons#1830

Description

Adds require_submissions_enabled decorator to POST /api/v5/addons/upload.

Testing

  1. Deactivate the enable-submissions waffle flag (everyone should be = True by default).
  2. POST API requests to /api/v5/addons/upload. should return a 503.

Checklist

  • Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • Successfully verified the change locally.
  • The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.

@chrstinalin chrstinalin requested review from a team and diox and removed request for a team October 16, 2024 16:11
@chrstinalin chrstinalin merged commit e8a4b7d into mozilla:master Oct 17, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add waffle flag to turn submissions on or off
2 participants