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

Đang mở
#16,640 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Makefile
Star
135
Fork
52
Merge trung bình
6 ngày 18 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mozilla/addons

Tất cả issue của mozilla/addons

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.