config: typos in configs/match/hooks/columns sections are silently ignored (extra="ignore")
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 70/100
Hướng nghiên cứu
Start with the listed models in schema.py and the semantic validation in validator.py. Add strict handling for extra fields to the named models, then inspect how collect_config_issues presents Pydantic extra_forbidden errors. Done means typos in match, hooks, and columns are reported with dotted paths in the editor Problems panel.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Only Defaults (schema.py:142) and WorkflowStepSchema (schema.py:82) set extra="forbid". The rest of the config schema uses Pydantic's default extra="ignore":
MachineConfig(schema.py:178),MatchCriteriaSchema(schema.py:161),HooksConfig(schema.py:96),ColumnMapping(schema.py:49),RowColor(schema.py:35),AppConfigYaml(schema.py:208)
And the semantic validator only checks top-level keys (validator.py:13, :35-37). Verified examples that load with zero feedback:
match: {hostnmae: ["WS-*"]}→ criteria silently become all-empty → config never matches → silent fallback to first confighooks: {failmodee: abort}→ failmode stayswarncolumns: {Version: {widht: 5}}→ no error anywhere, includingcollect_config_issues
This contradicts the project's No-Silent-Failures rule: a typo silently disables auto-selection or changes behavior. Closes the same hole #44 covers for defaults.columns, but in the per-config/match/hooks sections.
Suggested fix
Add model_config = ConfigDict(extra="forbid") to those models (top-level unknown keys are already caught by _KNOWN_TOP_LEVEL). Then verify collect_config_issues reports the Pydantic extra_forbidden errors with dotted paths for the editor Problems panel.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 1
- Merge trung bình
- 4 giờ 46 phút
- Pull request đã merge (30 ngày)
- 55
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của falbany/ProFiles
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
falbany/ProFiles#187 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Web UI: config handoff from a second launch leaves the open YAML editor showing stale contentĐang mởbug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của falbany/ProFiles
Issue tương tự
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
aws-samples/sample-spec-driven-presentation-maker#648 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
firestore: enable live window.yaml pipeline system tests once add_window_fields is in productionĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 64/100
googleapis/google-cloud-python#19115 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
CRS WKT default to WKT2Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày