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

feat(ui): Increase the limits in API requests #455

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

mnonnenmacher
Copy link
Contributor

Increase the limits when requesting list of organizations, products, repositories, and runs from the default 20 to 1000.

This mitigates the issue that not all entities can be accessed from the UI until #453 is implemented.

@mmurto
Copy link
Contributor

mmurto commented Jun 19, 2024

Code is good, but there's a commit-lint error that I can't spot by eye.

@mnonnenmacher
Copy link
Contributor Author

Code is good, but there's a commit-lint error that I can't spot by eye.

The problem was that commitlint treats every line that contains an issue reference as a footer. Not sure if that can be changed.

mmurto
mmurto previously requested changes Jun 19, 2024
@@ -86,6 +86,7 @@ const OrganizationComponent = () => {
queryFn: async () =>
await ProductsService.getOrganizationProducts({
organizationId: Number.parseInt(params.orgId),
limit: 1000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this should be adjusted, or more specifically the limit should be added here as well, and the same is true for other pages. This way loader uses the same query as the query inside the component.

Not related to this PR, but this should be refactored to use queryOptions as shown here to not require repetition of the query options.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The limit should be set for all queries now.

Increase the limits when requesting list of organizations, products,
repositories, and runs from the default 20 to 1000.

This mitigates the issue that not all entities can be accessed from the
UI until pagination is implemented [1].

[1]: eclipse-apoapsis#453

Signed-off-by: Martin Nonnenmacher <[email protected]>
@sschuberth sschuberth dismissed mmurto’s stale review June 21, 2024 11:21

Comments addressed.

@mnonnenmacher mnonnenmacher added this pull request to the merge queue Jun 21, 2024
Merged via the queue into eclipse-apoapsis:main with commit ea1cd44 Jun 21, 2024
12 checks passed
@mnonnenmacher mnonnenmacher deleted the ui-limits branch June 21, 2024 11:35
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.

4 participants