Comment 2 for bug 1903046

Revision history for this message
Maximiliano Bertacchini (maxiberta) wrote :

Some background from the online docs: "Releasing a revision with a progressive percentage of 100 and releasing it without a progressive percentage are not equivalent. This behaviour is slightly surprising, but it’s a consequence of the fact that not all devices can ever get a progressive revision, since a device may only participate in a progressive release if we have a way to consistently identify it." [0]

Based on that, releases with progressive percentage of 100 are being implicitly transformed non-progressive (ie. nullified) to avoid that unintuitive situation.

Maybe we could make the internal logic smarter in that case by storing `100` explicitly instead of `null`, treating both `null` and `100` as non-progressive releases, but with the addition that those with `100` would still return progress stats.

[0] https://dashboard.snapcraft.io/docs/api/snap.html#progressive-releases