config: enforce the .profiles 'version' key — reject unsupported versions, add a migration hook
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
Research direction
Start with schema.py:211 and trace how collect_config_issues surfaces validation errors in the editor Problems panel. The issue proposes rejecting unsupported versions and a migration registry, but leaves the migration behavior and scope to decide. Done means unsupported versions produce a clear reported error and the intended migration path is defined and handled.
Written by the indexing model from the issue text.
Description
Idea
version is parsed (schema.py:211, version: int = 1) and the starter template ships version: 1, but nothing enforces it: verified — AppConfigYaml.model_validate({'version': 999}) succeeds and parses as v1. No reader anywhere in src/ consults the field.
Suggested implementation
- Gate it now: a
model_validatorrejecting unsupported versions with a clear message —unsupported config version 999 (this build supports 1)— surfaced throughcollect_config_issuesso the editor Problems panel shows it. - Longer term: a small migration registry applied before validation,
MIGRATIONS: dict[int, Callable[[dict], dict]], walkingversion → version+1until current. This is what makes future config-format changes (and the #145 semantics decisions) shippable without breaking old files.
Fits the domain: ProFiles configs live on shared drives and outlive app versions.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 4h 46m
- Merged PRs (30d)
- 55
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from falbany/ProFiles
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
falbany/ProFiles#187 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in falbany/ProFiles
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ip-tools/patzilla#219 · 2 comments ·
Maintainers usually reply within 1 day
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesOpenpriority:p3 technical-debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jimmy058910/jmo-security-repo#1673 ·
Maintainers usually reply within 1 day
-
enhancement ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
integration: frontier_silicon
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
home-assistant/core#193176 · 2 comments ·
Maintainers usually reply within 1 day
-
task create and task update take --body-file and --stdinPossibly taken @JuanBarriosS claimed this today. Opencli enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
pyrite-wiki/pyrite#1687 · 1 comment ·
Maintainers usually reply within 1 day