"snap info" should provide detailed track/channel release information.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Snap info should show track information, if the snap is using tracks, under its channels section.
Current example:
$ snap info othersnap
name: othersnap
summary: "other-snap testing snap"
publisher: someone
description: |
This is a test snap
channels:
stable: 1.5 (4) 86kB -
candidate: 1.5 (4) 86kB -
beta: 1.5 (4) 86kB -
edge: 1.5 (4) 86kB -
The design document suggests it should show information like this:
$ snap info othersnap
name: othersnap
summary: "Test snap"
publisher: someone
tracking: 2.1/stable
channels:
- latest:
stable: 3.1 (5) 0B -
candidate: 3.1 (5) 0B -
beta: 3.1 (5) 0B -
edge: 3.1 (5) 0B -
- 2.1:
stable: 2.1 (1) 0B -
candidate: 2.1 (1) 0B -
beta: 2.3 (3) 0B -
edge: 2.3 (3) 0B -
The detailed channel map list with track data can be obtained by asking for the channel_maps_list as a field when hitting the /details endpoint (if you don't ask for this info, it just will behave as before, so there's no compatibilities concern).
A real example from etcd, a snap that uses tracks:
$ curl -H 'x-ubuntu-series: 16' -H 'x-ubuntu-
{
"name": "etcd.canonical",
"package_name": "etcd",
"_links": {
"curies": [
{
"href": "https:/
"name": "clickindex",
}
],
"self": {
"href": "https:/
}
},
"channel_
{
"track": "latest",
"map": [
{
"info": "released",
"epoch": "0",
},
{
"info": null,
},
{
"info": null,
},
{
"info": "released",
"epoch": "0",
}
]
},
{
"track": "2.3",
"map": [
{
"info": "released",
"epoch": "0",
},
{
"info": "released",
"epoch": "0",
},
{
"info": null,
},
{
"info": null,
}
]
},
{
"track": "3.0",
"map": [
{
"info": "released",
"epoch": "0",
},
{
"info": "released",
"epoch": "0",
},
{
"info": null,
},
{
"info": null,
}
]
},
{
"track": "3.1",
"map": [
{
"info": "released",
"epoch": "0",
},
{
"info": null,
},
{
"info": null,
},
{
"info": "released",
"epoch": "0",
}
]
},
{
"track": "ingest",
"map": [
{
"info": "released",
"epoch": "0",
},
{
"info": null,
},
{
"info": null,
},
{
"info": null,
}
]
}
],
"revision": 41
}
Changed in snappy: | |
status: | In Progress → Fix Committed |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
Work has started, but some open questions needs to be resolved first, I started a discussion in https:/ /forum. snapcraft. io/t/channels- 2-0-implementat ion/156