canonical / canonical/craft-application

Surface deprecation warnings when loading the project model

Open
#424 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.