Skip to content

Closes #16224 GraphQL Pagination#18903

Merged
jnovinger merged 10 commits intofeaturefrom
16224-graphql-pagination
Mar 20, 2025
Merged

Closes #16224 GraphQL Pagination#18903
jnovinger merged 10 commits intofeaturefrom
16224-graphql-pagination

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
Member

@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
@jeremystretch jeremystretch deleted the 16224-graphql-pagination branch April 10, 2025 17:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants