cli: client side check for setting default tracks
Metadata
Current evaluation
Merged client-side validation for set-default-track, rejecting invalid track names before contacting the Snap Store. Merged as 262f118ad.
Resolution: closed resolved
Reason: PR #3278 was approved and merged as commit 262f118ad. It checks that the requested default track belongs to the active track set, avoiding the Snap Store's generic Django error.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Check for valid track names within the active set of tracks before
trying to set a default track.
This is in part a workaround for the generic django error provided by
the Snap Store but can live on even after that issue is fixed.
LP: #1892553
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged client-side validation for set-default-track, rejecting invalid track names before contacting the Snap Store. Merged as 262f118ad. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in commit 262f118ad: set-default-track now validates requested tracks against active snap tracks before updating store metadata. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/snapcraft#3278 as 262f118ad, adding client-side validation to reject default-track names outside the active track set before contacting the Snap Store. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged client-side validation for default track names to prevent invalid submissions and work around a Snap Store Django error. Approved by one reviewer, passed CI, and modified five files with 188 additions and 7 deletions. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged client-side validation for default track names before submission. Added as a workaround for a Snap Store Django error but retained for long-term robustness. Resolves LP: #1892553. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1892553 Setting a default track to a track that does not exist returns an undocumented 400 | snapcraft (launchpad) | closed | Snapcraft added client-side track validation in canonical/snapcraft#3278 (commit 262f118ad); Snap Store support for choosing the reserved latest track remained unavailable. |