config: inheritance semantics — explicit empty lists can't clear inherited lists, cycle error messages report a wrong chain, template doc mismatches scan/match
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with inheritance.py, validator.py, and template.py at the locations named in the issue, then read the related tests for config resolution, cycle validation, and template documentation. Check how explicit empty lists, recursive cycle paths, and scan/match selection currently behave. Done means all three reported defects are addressed, with a regression test asserting the message for a three-node cycle.
索引モデルが issue の本文から書いたものです。
説明
Problem
Three related inheritance defects (all verified):
-
Empty lists can't clear. A child config with
extensions: []underextends: baseresolves to the base's list —_merge_str(inheritance.py:20-28) appends base items to the empty local list, and line 107 additionally mergesdefaults.extensionsunconditionally, so a config can never have fewer extensions than defaults. Either honor an explicitly-set empty list as "clear" (distinguishmodel_fields_setfromis None— the machinery is already there) or document the merge-only semantics per field. -
Wrong cycle chains in error messages. For
A→B→A,validator.collect_issuesreportsinheritance cycle: A -> A -> B -> Aandresolve_configsreportsconfigs.B.extends: inheritance cycle: A -> A -> A; forA→B→C→Athe validator saysA -> A -> B -> C -> Awhile inheritance saysA -> A -> B -> A(the config where the cycle closed is missing). Root cause in both files: the stack is seeded(name,)and the recursion appendsnameagain —validator.py:61-85andinheritance.py:55. Fix: seed the initial call with an empty tuple; add a regression test asserting the message for a 3-node cycle. -
Template doc overstates merging.
template.py:323-324claims "lists are merged: local items first, then inherited items not already present" — butscanandmatchare replaced, not merged (inheritance.py:75-85,pick_scan/pick_match). Fix the doc to state per-field: "extensions/filters/row_colors/excludes merge; scan/match replace".
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 4時間 46分
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
falbany/ProFiles のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
falbany/ProFiles#187 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
falbany/ProFiles の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ip-tools/patzilla#219 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesオープンpriority:p3 technical-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jimmy058910/jmo-security-repo#1673 ·
メンテナーはふだん 1 日以内に返信
-
enhancement ready
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
integration: frontier_silicon
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
home-assistant/core#193176 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
task create and task update take --body-file and --stdin対応中かも @JuanBarriosS が今日担当しました。 オープンcli enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
pyrite-wiki/pyrite#1687 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信