[PR #16237] [CLOSED] DRAFT: 16224 add cursor pagin to interfaces and devices + offset paging to device roles #14816

Closed
opened 2025-12-29 23:26:54 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/16237
Author: @jepify
Created: 5/22/2024
Status: Closed

Base: developHead: pagination


📝 Commits (1)

  • 9b7f9c9 add cursor pagin to interfaces and devices + offset paging to device roles

📊 Changes

2 files changed (+9 additions, -4 deletions)

View changed files

📝 netbox/dcim/graphql/schema.py (+3 -1)
📝 netbox/dcim/graphql/types.py (+6 -3)

📄 Description

PR to show how strawberry_django allows for both offset based pagination with pagination=True and cursor based pagination by implementing the Relay spec via strawberry_django.connections()

Fixes: #16224 partially.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/16237 **Author:** [@jepify](https://github.com/jepify) **Created:** 5/22/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `pagination` --- ### 📝 Commits (1) - [`9b7f9c9`](https://github.com/netbox-community/netbox/commit/9b7f9c9e28fb0e834b6d4ea68a45c31228b074f1) add cursor pagin to interfaces and devices + offset paging to device roles ### 📊 Changes **2 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/graphql/schema.py` (+3 -1) 📝 `netbox/dcim/graphql/types.py` (+6 -3) </details> ### 📄 Description PR to show how `strawberry_django` allows for both offset based pagination with `pagination=True` and cursor based pagination by implementing the [Relay](https://relay.dev/graphql/connections.html) spec via `strawberry_django.connections()` ### Fixes: #16224 partially. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:26:54 +01:00
adam closed this issue 2025-12-29 23:26:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14816