`revisions` only showing the most recent 500 revs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Invalid
|
Undecided
|
Unassigned | ||
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
For a number of snaps I'm collaborator on, I'm only seeing the most recent 501 revisions:
$ for snap in multipass mir-kiosk subsurface mir-kiosk-apps; do
REVS=$( snapcraft revisions $snap )
echo === $snap: $( echo $REVS | wc -l ) total ===
echo $REVS | tail -n5
done
=== multipass: 501 total ===
737 2019-04-
736 2019-04-
735 2019-04-
734 2019-04-
733 2019-04-
=== mir-kiosk: 501 total ===
2077 2019-09-
2076 2019-09-
2075 2019-09-
2074 2019-09-
2073 2019-09-
=== subsurface: 501 total ===
1313 2019-04-
1312 2019-04-
1311 2019-04-
1310 2019-04-
1309 2019-04-
=== mir-kiosk-apps: 104 total ===
5 2016-12-
4 2016-12-
3 2016-12-
2 2016-12-
1 2016-12-
It is said that all revisions "live forever" on the snap store. But how do we access them?
This sounds like a "snapcraft revisions" bug. The API returns 500-item pages (Maxi observed that the 501st line is a header from snapcraft revisions).
src/devportal/ api/v1/ handlers. py PER_PAGE = 500 api/v2/ snaps.py MAX_RELEASES_ PER_PAGE = 500
MAX_REVISIONS_
and in src/devportal/
Then this would actually need snapcraft to notice there are more pages and request the following ones as well.