[Task]: Re-implement restriction checking in API outside of permission mechanism
まだ誰も着手していません。
評価
調査の方向性
Start by grepping for IsSubmissionAllowedFor and write_permission_classes: the permission class and the API views that list it are the two places to read, then follow the call to RestrictionChecker().is_submission_allowed(). The change moves that check into the add-on submission endpoint only, so metadata edits and source uploads stop being gated. Done means non-submission writes pass while submission is still restricted; the acceptance criteria still reads "item 1", so ask the maintainer what else must be covered.
索引モデルが issue の本文から書いたものです。
説明
Description
When the Add-on API was implemented, the restrictions checks for add-on submission (RestrictionChecker().is_submission_allowed()) were implemented as a permission, IsSubmissionAllowedFor.
But those restrictions should only apply to add-on submissions, as of now because they are implemented as a permission included in write_permission_classes they are checked for every API call writing add-on data, including modifying metadata or uploading source code, which should not be restricted.
Acceptance Criteria
- item 1
┆Issue is synchronized with this Jira Task
- 主要言語
- Makefile
- スター
- 135
- フォーク
- 52
- 平均マージ
- 6日 18時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mozilla/addons のほかの issue
-
needs:info
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
[Task]: Add new confusable characters to AMO's custom mappings対応中かも @abhn が 1 日前に担当しました。 オープンneeds:info
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
[Task]: Add feedback form link to Pinguino対応中かも @diox が 2 日前に担当しました。 オープンcomponent:pinguino_devhub
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
[Bug]: Enterprise toggle option is shown in theme version upload対応中かも @eviljeff が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
似ている issue
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
meetecho/juturna_nodes#43 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
ranxianglei/billion-context#7860 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
`RequestHandler.build_request_kwargs` drops empty request bodies such as `{}` or `""`対応中かも @abhirajadhikary06 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
typesense/typesense-python#170 ·
メンテナーはふだん 1 日以内に返信