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

Offen
#16,640 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
54/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
api, backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Makefile
Sterne
135
Forks
52
Ø Merge
6 T. 18 Std.
Gemergte PRs (30 T.)
7

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus mozilla/addons

Alle Issues in mozilla/addons

Ähnliche Issues

Weitere Issues zu Backend & API Design

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.