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

Error rendering form fields for custom fields with a large number of choices #13410

Closed
jeremystretch opened this issue Aug 8, 2023 · 0 comments
Assignees
Labels
beta Concerns a bug/feature in a beta release severity: medium Results in substantial degraded or broken functionality for specfic workflows 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

NetBox version

v3.6-beta1

Python version

3.10

Steps to Reproduce

  1. Create a new custom field choice set, specifying UN/LOCODE as the base choice set and no extra choices.
  2. Create a selection custom field which employs this choice set for the site model. (Any model works.)
  3. Attempt to create a new site.

Expected Behavior

The site creation form should load and include the custom field. Choices for the custom field should be populated on-demand using API-backed pagination to avoid loading too much data at once.

Observed Behavior

The page either times out or takes an excessively long time to load. This is because all choices for the custom field are being included when the form is rendered.

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation beta Concerns a bug/feature in a beta release severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Aug 8, 2023
@jeremystretch jeremystretch self-assigned this Aug 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release severity: medium Results in substantial degraded or broken functionality for specfic workflows 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