Skip to content

How to get only entitled packages? #153

Answered by ezekg
WingCode asked this question in Q&A
Discussion options

You must be logged in to vote

Packages are currently treated like products, channels and platforms — where if a release exists for it, it's available to read for all users. We don't check entitlements on packages, mostly because it would be very expensive to do so — we'd need to query all releases for a particular package to check if the current user is entitled to any of those releases.

My recommendation would be to list all packages (since typically an account has considerably less packages than releases), and then attempt to retrieve the latest release for that package, and if one doesn't exist, then don't show the package to the end-user.

One way we could improve this workflow would be by introducing package-level…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WingCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants