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

Implement Select2 as a replacement for standard and API backed selection fields. #2753

Closed
lampwins opened this issue Jan 5, 2019 · 1 comment · Fixed by #2772
Closed
Labels
status: accepted This issue has been accepted for implementation

Comments

@lampwins
Copy link
Contributor

lampwins commented Jan 5, 2019

Environment

  • Python version: 3.6
  • NetBox version: 2.5.2

Proposed Functionality

For some time we have wanted to enhance the UI selection fields to allow for more dynamic API interaction. Select2 is a very popular solution for this, and initial testing confirms it is an appropriate choice.

Several recent and outstanding issues will be covered as a part of this, including #2516, #2590, and #2735.

Use Case

We will use Select2 to replace:

  • All instances of Livesearch fields which are used to query the API in real time for a model instance.
  • All model backed choice fields which will allow us to handle large datasets via pagination (infinite scrolling).
  • All chained choice fields, refactoring the related server-side code and replacing the JS code for this along the way.
  • Tag fields which will allow us to make use of autocomplete and an overall improved UI for tags.
  • Model backed multi selection fields which will look and feel much like the tagging interface.
  • Static choice selection fields when appropriate. This will help in maintaining a consistent UI for selection.

Database Changes

None

External Dependencies

There will be a new dependency on Select2. This includes minified JS and CSS files in project-static assets along with Select2's related i18n files. This will be handled the same as the other JS dependencies like jQuery.

@lampwins lampwins added status: accepted This issue has been accepted for implementation type: minor feature labels Jan 5, 2019
@lampwins
Copy link
Contributor Author

lampwins commented Jan 5, 2019

Work has commenced in the select2-ui branch.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 16, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant