← Back to issue list

Surface deprecation warnings when loading the project model

View original Github issue

Metadata

Project
craft-application
Number
#424
Type
issue
State
open
Author
lengau
Labels
—
Created
Updated
Closed
—

Current evaluation

Feature request to surface Pydantic deprecation warnings when loading the project model; no implementation found in current codebase.

Suggested action: keep open

Reason: Maintainer-authored, clearly scoped feature request. Current code still calls ProjectClass.from_yaml_data/model_validate without capturing or emitting Pydantic deprecation warnings, so the requested behaviour is not implemented.

Evaluated by: mr-cal-bot

Impact: 40 Quick Win: 15 Complexity: 45 Confidence: 75 Actionability: 70

Issue body

### What needs to get done When loading the project model, surface deprecation warnings as warnings to the user. ### Why it needs to get done This allows us to [mark fields as deprecated](https://docs.pydantic.dev/latest/concepts/fields/#deprecated-fields) without [ugly workarounds](https://github.com/canonical/charmcraft/pull/1828)

Evaluation history

Date Model Scores Action Summary
~deepseek/deepseek-pro-latest
Impact: 40
Quick Win: 15
Complexity: 45
Confidence: 75
Actionability: 70
keep open Feature request to surface Pydantic deprecation warnings when loading the project model; no implementation found in current codebase.
stealth/space-bunny-alpha
Impact: 50
Quick Win: 27
Complexity: 35
Confidence: 92
Actionability: 82
needs triage Pydantic deprecation warnings from project-model fields are not surfaced to users; the feature request remains open, unlabelled, and awaiting maintainer triage.
qwen/qwen3.6-35b-a3b
Impact: 35
Quick Win: 21
Complexity: 25
Confidence: 75
Actionability: 80
keep open Feature request to surface Pydantic deprecation warnings when loading project models, enabling native use of Pydantic's deprecated field markers.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21
Staleness: 75
Complexity: 40
Confidence: 70
Support Request: 5
needs triage Feature request to surface pydantic deprecation warnings when loading the project model, enabling clean field deprecation without workarounds. Unlabelled, no comments, inactive for 15 months.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 20
Confidence: 70
Support Request: 10
needs triage Request to surface Pydantic deprecation warnings during project model loading to avoid workarounds. Unlabelled, no maintainer comments, inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 30
Confidence: 70
Support Request: 5
keep open Task to surface Pydantic deprecation warnings during project model loading to avoid workarounds. Unlabelled, zero comments, and inactive for over a year despite maintainer authorship.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#1828 (confidence 80%)

    Referenced in the issue body as the ugly workaround this feature would avoid.

Related issues

No related issues found above the similarity threshold.