Update `charmcraft status charmname --format json` output terminology
Metadata
Current evaluation
The charmcraft status JSON output terminology was updated. The channels key was renamed to mappings, and a bug causing the channel field to omit the track was fixed. Resolved via PR 802.
Suggested action: —
No scores available.
Issue body
An example (truncated) output from `charmcraft status metacontroller-operator --format json` is given by:
```
charmcraft status metacontroller-operator --format json
[
{
"track": "latest",
"channels": [ # <------------ A) Not sure what this should be
{
"base": {
"name": "ubuntu",
"channel": "20.04",
"architecture": "amd64"
},
"releases": [
{
"status": "open",
"channel": "stable", # <---------- B) Should this be "risk"?
"version": "2",
"revision": 2,
"resources": [],
"expires_at": null
},
...
}
]
}
]
},
]
```
The name `channel` is used twice, neither of which afaik describes a channel ([snapcraft definition](https://snapcraft.io/docs/channels), [charmhub definition](https://discourse.charmhub.io/t/channel/6562). Pointing to the letters added above:
* A) I'm not sure what this would be, but I don't think it is a channel because it excludes `track`
* B) I think this is `risk`, not a `channel`
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | The charmcraft status JSON output terminology was updated. The channels key was renamed to mappings, and a bug causing the channel field to omit the track was fixed. Resolved via PR 802. | |
| qwen/qwen3.6-35b-a3b | — | — | The charmcraft status JSON terminology was updated by renaming channels to mappings and fixing a related channel field bug. The issue was closed after the maintainer merged fix PR 802. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Resolved confusing JSON output terminology by renaming channels to mappings and fixing a missing track in the channel field. Both issues were addressed and merged in PR #802. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed via PR 802. Maintainers confirmed the channels key should be mappings and noted a missing track bug. The pull request renamed the key and corrected the track omission, resolving the confusing JSON output terminology. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #933 Update the charmcraft status --format | charmcraft | merged | Merged after the author removed YAML formatting support per reviewer feedback, keeping only the help text update for the --format option. The PR was approved and merged following the requested changes. | |
| #931 `charmcraft status` showing duplicates | charmcraft | closed | Fixed and closed as a duplicate of #834. The charmcraft status duplicate channel display bug was resolved in the current edge release. |