Snaps search not always same size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Fix Released
|
Undecided
|
Celso Providelo |
Bug Description
When searching for a snap with page and size, the size is not always the same. There are a few different cases:
CURRENT BEHAVIOR
Search for web:
PAGE 1
curl -s -H "X-Ubuntu-
-> size(result[
PAGE 2
curl -s -H "X-Ubuntu-
-> size(result[
PAGE N
... OK
web is OK
Now search for core:
PAGE 1
curl -s -H "X-Ubuntu-
-> size(result[
PAGE 2
curl -s -H "X-Ubuntu-
-> size(result[
PAGE 3
curl -s -H "X-Ubuntu-
-> size(result[
PAGE N
... NOK
core is not OK
EXPECTED BEHAVIOR
All page, except the last page, should have 10 (in this case) snaps in their search
description: | updated |
Changed in snapstore: | |
status: | New → Confirmed |
assignee: | nobody → Kit Randel (blr) |
tags: | added: search |
Hi Thomas, this behaviour is by design, as with the current implementation we are unable to guarantee fixed page sizes due to privacy filtering.
That being said, I think there is a change we can make to improve this significantly, resulting in the behaviour you would expect consistently for low page sizes. I'll let you know when we have a proposal for this work.