Query paging for masked email and archived items #297

Merged
jcoffey-dev merged 2 commits from fix/query-pagination-296 into main 2026-11-06 07:08:38 +00:00
2 Commits
Author SHA1 Message Date
jcoffey-dev b96e2c5948 Archived item query pagination, as for masked email
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 11m46s
x:ArchivedItem/query took position, anchor and limit off the request for
a storage-level page it never used, so the response builder started from
the first item every time: a page past the first repeated the first page
and ignored limit. The items are filtered and sorted in memory, so leave
the parameters for the builder, as the masked email query now does.

The undelete test now pages through the archive one item at a time, and
its standalone runner turns on directory queries, as system_tests does:
test 14 shares with an account it has no other connection to, which #283
refuses with the setting off.
2026-11-05 23:56:26 -07:00
StefanSa 75addc416b Fix masked email query pagination
Leave pagination parameters on the request for QueryResponseBuilder instead of extracting them for storage-level pagination. Add a focused masked-email query regression covering successive positions and duplicate page results.
2026-11-05 23:40:25 -07:00