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 Contract ID to be indexable for search #72

Closed
natecohen opened this issue Jan 31, 2025 · 0 comments · Fixed by #73
Closed

Allow Contract ID to be indexable for search #72

natecohen opened this issue Jan 31, 2025 · 0 comments · Fixed by #73
Assignees
Labels
enhancement New feature or request

Comments

@natecohen
Copy link
Contributor

Plugin version

v1.1.4

NetBox version

v4.1.11

Feature type

New functionality

Proposed functionality

Index the contract_id fields and comments fields of SupportContract model

Use case

Allows searching for contracts more easily which is a use case I have to compare data from an external source while ingesting data into Netbox.

Comments are additionally index with a low weight of 5000 based off of Netbox plugin docs for a demo plugin as it may be a useful related field.

Database changes

SupportContractIndex class with @register_search decorator is added

External dependencies

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants