config: dead-code sweep — write_value, combobox-era helpers, propose_config_creation, ConfigReader wrapper, WorkflowStep.evaluate_condition
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start by reading the named helpers in src/profiles/core/config/ and checking their callers in src/ and tests/; inspect core/environment/workflow.py around the workflow condition evaluation. Remove the dead helpers, their re-exports and tests, and update core/config/__init__.py and AGENTS.md; for WorkflowStep.evaluate_condition, choose one evaluation seam. Done when the remaining production paths and tests use the retained APIs.
索引モデルが issue の本文から書いたものです。
説明
Dead code found in src/profiles/core/config/ (all verified by grepping src/ and tests/; complements the repo-wide #39 sweep)
-
yaml_io.write_value(io/yaml_io.py:63-85) — zero production callers (only theio/__init__.pyre-export andtests/core/config/io/test_yaml_io.py). Worse, it is the only non-atomic config writer left: plainp.open("w"), no temp file +os.replace— a crash mid-write truncates the user's config, exactly what #116 fixed elsewhere. Delete it, or reimplement on top ofwrite_text_atomicif single-key writes are planned. -
Combobox-era helpers in
service.py—get_directory_combobox_values(service.py:231-301),DirectoryEntry(service.py:22-35),find_config_by_name(service.py:75-89) — appear only intests/core/config/test_service.py. The web UI consumesget_unique_directories+merge_config_overrides; no GUI module exists anymore. -
loader.propose_config_creation(loader.py:46-89) — dead insrc/(the real CLI path isapp.init_default_config, the server path islaunch.creation.propose_creation). It is also CLI I/O (print/input()) in the core layer (layering violation) and its✓/✗prints raiseUnicodeEncodeErrorwhen stdout is piped through cp1252 on Windows. -
ConfigReader.find_configuration_by_hostname(reader.py:55-63) — wrapper with no production callers (production uses the pureservice.find_configuration_by_hostname); whenconfig=Noneit silently performs a fullself.load()disk read — surprising I/O hidden behind a lookup-style method. -
WorkflowStep.evaluate_condition(models.py:94-102) — only called by tests; the engine bypasses it (core/environment/workflow.py:176-179usesstep.if_+evaluate_hook_conditiondirectly, because token substitution must happen first). Duplicated evaluation seam — remove or make the engine use it.
Suggested fix
Delete 1-4 (plus their re-exports and tests); for 5, pick one evaluation seam and remove the other. Update core/config/__init__.py __all__ and AGENTS.md in the same commit.
- 主要言語
- 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 日以内に返信