Can't list tagged objects in v2.9.1

49 views
Skip to first unread message

Marin BERNARD

unread,
Aug 27, 2020, 3:59:59 AM8/27/20
to NetBox
Hi,

Since upgrade to version 2.9, we're unable to list objects with a specific tags. On the Organization > Tags page, tag names are not clickable. While we're able to show the change log for a single tag, clocking on the "Tag" tab on the same page has no effect either.

Is this a known limitation, a bug, or just me being stupid ?

Many thanks,

Marin

Brian Candler

unread,
Aug 27, 2020, 5:00:38 AM8/27/20
to NetBox
I think that's a very reasonable request: the page tells you that there are N objects with the tag, but doesn't let you find those items.  I don't see an existing FR on github for this, so I suggest you create one.

I imagine it would be a variation on SearchView since it could find objects of mixed types.

As a temporary workaround, here's a SQL query you can use that will at least show you the object types and ids. (Once you know the object type you are looking for, it's also easy to filter by tag in the UI)

select app_label,model,object_id from extras_tag
  join extras_taggeditem on extras_tag.id=extras_taggeditem.tag_id
  join django_content_type on extras_taggeditem.content_type_id=django_content_type.id
  where extras_tag.name='XXXXXXXX';

Marin BERNARD

unread,
Aug 27, 2020, 5:51:20 AM8/27/20
to NetBox
Thank you for the SQL snippet!


Many thanks,
Reply all
Reply to author
Forward
0 new messages