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

Form dropdown lengths limited to PAGINATE_COUNT #2483

Closed
jeremystretch opened this issue Oct 3, 2018 · 0 comments
Closed

Form dropdown lengths limited to PAGINATE_COUNT #2483

jeremystretch opened this issue Oct 3, 2018 · 0 comments
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

jeremystretch commented 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 3a88e43 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.

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Oct 3, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant