config: broken config silently loads as defaults with HTTP 200 — expose load_errors on AppConfig
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start with src/profiles/core/config/reader.py:142-154 to trace the fallback paths, then inspect routes/config.py:178-184 and _config_response to see how load results reach the API and session notifications. Check AppConfig and the applicable AGENTS.md guidance for the non-optional field requirement. Done means fallback loads expose their errors and invalid config requests no longer appear to succeed silently.
索引モデルが issue の本文から書いたものです。
説明
Problem
ConfigReader.load() catches every parse exception, logs, and returns a defaults-filled AppConfig (src/profiles/core/config/reader.py:142-154). The server cannot distinguish a clean load from fallback, so:
POST /api/config/loadof an invalid file responds 200 and silently wipes the session config to defaults (routes/config.py:178-184).- Same for
POST /savewithforce=True(documented as "it will load as defaults until fixed").
The user's typo'd file appears to load fine — misleading success, violating Fail Fast / Informative Errors.
Suggested fix
Add a non-optional load_errors: tuple[str, ...] = () field to AppConfig (typed, never-None per AGENTS.md), populate it on the fallback paths, and surface it in _config_response + a session notification so the UI can toast "config loaded with N problems".
- 主要言語
- 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
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
aws-samples/sample-spec-driven-presentation-maker#648 ·
メンテナーはふだん 1 日以内に返信
-
firestore: enable live window.yaml pipeline system tests once add_window_fields is in productionオープン
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
googleapis/google-cloud-python#19115 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信