[Bug]: Add-on submission throttles are applied to every write request to Add-on APIs

Open
#16,640 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api, backend

Research direction

Start by reading the throttle configuration and write actions for AddonViewSet, AddonVersionViewSet, AddonPreviewViewSet, and AddonAuthorViewSet; the issue identifies these as using addon_submission_throttles. Find the tests covering add-on submission throttles and compare submission requests with edits such as listing details or version notes. Done means only add-on or version submissions increment the throttle count.

Written by the indexing model from the issue text.

Description

needs:info
Is there an existing issue for this?
  • I have searched the existing issues
What happened?

Editing listing details, version or author information without uploading a new add-on counts towards add-on submission throttles.

AddonViewSet, AddonVersionViewSet, AddonPreviewViewSet, AddonAuthorViewSet all use addon_submission_throttles to throttle all write requests. So even updating listing details or editing version notes, adding a preview etc all increment the throttle count. This has always been the case, but new Devhub makes that extra visible.

What did you expect to happen?

Only add-on/version submission should count towards the add-on submission throttles.

┆Issue is synchronized with this Jira Task

Dominant language
Makefile
Stars
135
Forks
52
Avg merge
6d 18h
Merged PRs (30d)
7

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/addons

All issues in mozilla/addons

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.