Skip to content

More easy narrowing of store getters - #1533

Merged
ysangkok merged 4 commits into
masterfrom
narrow-store-getters
Oct 20, 2026
Merged

ysangkok merged 4 commits into
masterfrom
narrow-store-getters

Conversation

@ysangkok

Copy link
Copy Markdown
Member

Following #1532 and fairly mechanical. See that PR for motivation.

The all-packages votes endpoint only shows each package's score, so the
votes store now returns scores rather than every user's vote.
The tag listing and sitemap only need each tag's package count, and
collectTags only needs the tags of the given packages, so the tags store
returns those instead of every tag's packages or the whole tag map.
Callers fetched the whole PreferredVersions value to use only the
preferred version map, only the deprecations, or only the migration
flag. The preferred versions store now returns each separately.
Candidate pages look up a package's candidates or one candidate version
with new candidates store queries. Listings read all candidates as a
list, so the store no longer exposes its index.
@mergify

mergify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@ysangkok ysangkok changed the title More easy conversion to narrow store getters More easy narrowing of store getters Oct 19, 2026
@ysangkok
ysangkok merged commit d5a737a into master Oct 20, 2026
14 checks passed
@ysangkok
ysangkok deleted the narrow-store-getters branch October 20, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant