Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow more customization of query parameters for backstage source #60

Open
kunickiaj opened this issue Sep 13, 2023 · 2 comments
Open

Comments

@kunickiaj
Copy link

Page size is currently hardcoded at 100

var (
limit = 100
offset = 0
)

Would also be helpful to be able to specify a filter query to avoid loading ALL entities in the catalog -- only the ones that need to be sync'ed to incident.io. For example we have ~20k resource entities that don't need to be loaded (or ~200 pages with the hardcoded page size of 100).

@louisheath
Copy link
Contributor

Hey @kunickiaj, apologies for the delay in response here.

So that I understand the exact desired mechanism here, are you looking for the ability to specify backstage's filter query parameter?

/entities?filter=kind=user,metadata.namespace=default&filter=kind=group,spec.type

@kunickiaj
Copy link
Author

That and switch to by-query rather than the deprecated entities endpoint.

This would allow for much more efficient filtering as we can select only relevant entities or even fields as well as being able to adjust the page size.

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

No branches or pull requests

2 participants