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 global search by UUID #923

Closed
Tracked by #1615
glennmatthews opened this issue Sep 17, 2021 · 4 comments
Closed
Tracked by #1615

Allow global search by UUID #923

glennmatthews opened this issue Sep 17, 2021 · 4 comments
Assignees
Labels
good first issue Great issues for newcomers! type: feature Introduction of new or enhanced functionality to the application
Milestone

Comments

@glennmatthews
Copy link
Contributor

User Story

As Ozzie the Operator,

I want to be able to easily look up an object based only on its UUID, without needing to know the URL pattern required for a specific model class,

So that when I have only a UUID, such as I might get from a Change Log view:

image

...I can easily look up any of the referenced objects based on the given UUID.

I will know this is done when I'm able to use the Nautobot home page's global search bar to locate an object based on its UUID alone.

image

Database Changes (Optional)

None

External Dependencies (Optional)

None

@glennmatthews
Copy link
Contributor Author

Should be doable by adding an id__iexact filter to the search method for all models. A bit tedious to implement, but not technically difficult.

@glennmatthews glennmatthews added the good first issue Great issues for newcomers! label Dec 13, 2021
@jakubkrysl
Copy link

Should be doable by adding an id__iexact filter to the search method for all models. A bit tedious to implement, but not technically difficult.

I think this would be very easy and not tedious at all. Just need to add the filter to some common class all filters inherit from. Probably directly nautobot.utilities.filters.BaseFilterSet since AFAIK all object in Nautobot should have UUID.

@zackt25
Copy link
Contributor

zackt25 commented May 4, 2022

@glennmatthews can you please assign this to me. I've got it completed and ready for a pull request.

@bryanculver
Copy link
Member

This was resolved by #1765 (via #1752)

@bryanculver bryanculver added this to the v1.3.4 milestone May 23, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Great issues for newcomers! type: feature Introduction of new or enhanced functionality to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants