Skip to content

Conversation

jefferai
Copy link
Member

This allows us to make an optimize query designed for the desktop UI.
This option is currently hidden from OpenAPI and experimental and may
change or disappear at any time.

This implements a mechanism for service handlers to pass a repo
satisfying an interface into the scope IDs listing function. The purpose
of this interface is to allow the same function to perform authorization
checking against resources rather than requiring service handlers to
fetch all resources in the determined set of scopes and then perform
this checking. While this could be done in each service handler, this
approach centralizes the logic, which has the nice benefit of removing
some boilerplate from service handler list functions that have adapted
to it.

Tests haven't changed, which is expected -- the function should return
exactly what was being returned before, simply faster.
This allows us to make an optimize query designed for the desktop UI.
This option is currently hidden from OpenAPI and experimental and may
change or disappear at any time.
@jefferai jefferai added this to the 0.8.0 milestone Apr 28, 2022
Base automatically changed from jefferai-reorder-authz-check to llb-listing-speedups April 29, 2022 13:52
@tmessi tmessi force-pushed the llb-listing-speedups branch from 4aae49a to f00af36 Compare April 29, 2022 20:33
Base automatically changed from llb-listing-speedups to main April 29, 2022 21:05
@jefferai jefferai modified the milestones: 0.8.0, 0.9.2, deferred Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant