Backend issue lists report in-patch warnings and out-of-patch errors as not publishable
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
まず、IssueViewSet と IssueCheckDetails の publishable アノテーションを見つけ、それらを IssueLink.publishable プロパティおよび issue に記載された共通の publishable ルールと比較します。diff issues エンドポイントと check details フィルターを確認し、パッチ内の警告とパッチ外のエラーを調べます。両方のエンドポイントがそれらのケースを publishable と報告し、デフォルトの check details フィルターの一貫性が保たれていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
IssueLink.publishable treats an issue as publishable when it is in the patch or is an error (in_patch is True or level == "error"). The bulk creation response, the publishable filter of the check details endpoint, and the publishable counters for diffs and check stats use the same rule.
Two endpoints compute the publishable field with & instead of |:
GET /v1/diff/<diff_provider_id>/issues/(IssueViewSet)GET /v1/check/<repository>/<analyzer>/<check>/(IssueCheckDetails)
.annotate(publishable=Q(issue_links__in_patch=True) & Q(level=LEVEL_ERROR))
As a result, these endpoints return:
publishable: falsefor warnings inside the patch.publishable: falsefor errors outside the patch, andnullwhenin_patchis unknown.
On the check details endpoint, the default ?publishable=true filter keeps these issues while each one reports publishable: false.
The annotation came in with #2451, which moved publishable to IssueLink. The model property kept the or rule.
Steps to reproduce
- Link an error issue to a diff with
in_patch=False, and a warning issue within_patch=True. - Request
/v1/diff/<diff_provider_id>/issues/.
Expected: both issues have publishable: true.
Actual: both issues have publishable: false.
- 主要言語
- Python
- スター
- 68
- フォーク
- 54
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mozilla/code-review のほかの issue
-
ensure results are returned even when `code-review` task doesn't run automatically対応中かも @bhearsum が 15 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
mozilla/code-review#3740 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
mozilla/code-review#3739 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
use one try push for linting and build/test対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mozilla/code-review#3738 ·
メンテナーはふだん 1 日以内に返信
-
support performance profiles in tasks対応中かも @La0 が 16 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
mozilla/code-review#3737 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
mozilla/code-review#3710 ·
メンテナーはふだん 1 日以内に返信
mozilla/code-review の issue をすべて見る
似ている issue
-
follow-up needs-triage S3: minor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#36856 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue help wanted
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Shell framework build fails at "copy the shader libraries": the iOS shader libraries are now one file b-<chain>.img対応中かも @xiaofeng-han が今日担当しました。 オープンbuild ios
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信