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

Allow filtering of ObjectVar and MultiObjectVar input selections for custom fields #18138

Open
sounddudenz opened this issue Dec 2, 2024 · 2 comments · May be fixed by #18830
Open

Allow filtering of ObjectVar and MultiObjectVar input selections for custom fields #18138

sounddudenz opened this issue Dec 2, 2024 · 2 comments · May be fixed by #18830
Assignees
Labels
complexity: medium Requires a substantial but not unusual amount of effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application

Comments

@sounddudenz
Copy link

sounddudenz commented Dec 2, 2024

NetBox version

v4.1.2

Feature type

New functionality

Triage priority

I volunteer to perform this work (if approved)

Proposed functionality

This is very simular to #17944

Proposing to extend the functionality of the object selection inputs (ObjectVar and MultiObjectVar) in Custom Fields to be able to filter the selection in the same fashion that's available in the create/edit forms.

image

Suggest adding the optional parameters selector (boolean with a default of False).

Use case

I wanted to add a custom field to "Provider Network" to assign a Network to a Interface. Adding the custom field Interface worked well, but just shows all the interfaces which is unusable. A selection filter would make this much easier to use so we could filter on a device and then choose the interface.

Database changes

None

External dependencies

None

@sounddudenz sounddudenz added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Dec 2, 2024
@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation complexity: medium Requires a substantial but not unusual amount of effort to implement and removed status: needs triage This issue is awaiting triage by a maintainer labels Feb 6, 2025
@atownson
Copy link
Contributor

Question for the maintainers regarding this: Would it be acceptable to always render the object selection button on Object and MultiObject inputs?

@atownson
Copy link
Contributor

atownson commented Mar 6, 2025

I can work on this.

@bctiemann bctiemann added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Mar 6, 2025
@jeremystretch jeremystretch changed the title Allow filtering of ObjectVar and MultiObjectVar input selections for Customfields Allow filtering of ObjectVar and MultiObjectVar input selections for custom fields Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: medium Requires a substantial but not unusual amount of effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
4 participants