Form dropdown lengths limited to PAGINATE_COUNT #2043

Closed
opened 2025-12-29 17:21:42 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 3, 2018).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.4.5

Steps to Reproduce

  1. Set PAGINATE_COUNT = 50 in configuration.py and restart the NetBox service.
  2. Create VLANs 100 through 199.
  3. Attempt to create a new prefix and assign it to one of the VLANs.

Expected Behavior

All of the VLANs should appear in the list.

Observed Behavior

Only the first 50 VLANs are listed.

This is a regression introduced in 3a88e43103 while attempting to resolve #2406. Removing the hard-coded limit of 1000 results in the API returning only default page length.

Temporary workaround: Set PAGINATE_COUNT = 1000 in configuration.py and restart the NetBox service. Note that this may result in increased load on the server.

Originally created by @jeremystretch on GitHub (Oct 3, 2018). ### Environment * Python version: 3.5.2 * NetBox version: 2.4.5 ### Steps to Reproduce 1. Set `PAGINATE_COUNT = 50` in configuration.py and restart the NetBox service. 2. Create VLANs 100 through 199. 3. Attempt to create a new prefix and assign it to one of the VLANs. ### Expected Behavior All of the VLANs should appear in the list. ### Observed Behavior Only the first 50 VLANs are listed. This is a regression introduced in 3a88e431039a678aa0885dd3a3d0a825fe5dd1e6 while attempting to resolve #2406. Removing the hard-coded limit of 1000 results in the API returning only default page length. **Temporary workaround:** Set `PAGINATE_COUNT = 1000` in configuration.py and restart the NetBox service. Note that this may result in increased load on the server.
adam added the type: bugstatus: accepted labels 2025-12-29 17:21:42 +01:00
adam closed this issue 2025-12-29 17:21:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2043