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

Closes #16224 GraphQL Pagination #18903

Merged
merged 10 commits into from
Mar 20, 2025
Merged

Closes #16224 GraphQL Pagination #18903

merged 10 commits into from
Mar 20, 2025

Conversation

arthanson
Copy link
Collaborator

Fixes: #16224

@jeremystretch jeremystretch added this to the v4.3 milestone Mar 14, 2025
@arthanson arthanson changed the title DRAFT: 16224 graphql pagination 16224 graphql pagination Mar 18, 2025
@arthanson arthanson marked this pull request as ready for review March 18, 2025 14:47
@arthanson arthanson requested review from a team and jnovinger and removed request for a team March 18, 2025 14:47
@jnovinger jnovinger changed the title 16224 graphql pagination #16224 GraphQL Pagination Mar 18, 2025
Copy link
Contributor

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

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

I would not have guessed that you'd be forced to add the pagination argument to every type class.

There are a couple of patterns to my comments/questions:

  1. In several type definitions, there's an extra empty line following the pagination parameter. Those should be removed. I started commenting them all and that just felt like overkill.
  2. There are several type definitions I saw that did not have pagination enabled and I asked why inline. Those seemed to be mostly in the dcim and ipam packages.

However, there were two that I wasn't sure about, because they seem like they might be base definitions: netbox.graphql.types.ContentTypeType and netbox.graphql.types.ObjectTypeType. Is there a good reason not to paginate those?

@arthanson arthanson requested a review from jnovinger March 20, 2025 18:08
@jnovinger jnovinger changed the title #16224 GraphQL Pagination Closes #16224 GraphQL Pagination Mar 20, 2025
@jnovinger jnovinger merged commit fe7cc8c into feature Mar 20, 2025
6 checks passed
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.

3 participants