canonical / canonical/craft-application
Surface deprecation warnings when loading the project model
Open
- Dominant language
- Python
- Stars
- 14
- Forks
- 29
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 12
Description
### 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)
Contributor guide
Research direction
Start by locating the project model loading path and how Pydantic validation warnings are currently handled. Reproduce loading a model with a deprecated field, then verify that its deprecation warning is surfaced to the user without requiring a workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100