Filtering on tags seems to only work on some tags

Description

Hello!

Trying to filter on “tags” in e.g. Logs or Device view seems to work for some of our tags, but not other tags.

i.e. the device looks like it has the tag on it, but not possible to find it in the list.

Is there a solution to fix this?

Steps to Reproduce

POST https://api.golioth.io/v1/projects/PROJECT_ID/tags
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{“name”: “example-tag”}

then

PATCH https://api.golioth.io/v1/projects/PROJECT_ID/devices/DEVICE_ID
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{“addTagId”: [“TAG_ID”]}

Expected Behavior

Can filter on the tag in logs and devices view

Actual Behavior

the dropdown shows “no data” when typing the first letters of the tag

Impact

difficult to group logs and understand patterns

Environment

Golioth web console: Devices and Logs views.

Tags are created and assigned to devices through the Golioth
Management REST API from a server-side application using JSON requests.

Some tags appear on devices but cannot be found in the console’s
tag-filter dropdown. Other tags work correctly.

Logs and Console Output

The tag-filter dropdown displays “no data” when entering the first
letters of an affected tag. No additional error output collected yet.

Hi @fredrik,

Thanks for the detailed report, and sorry for the slow reply.

Your API calls are correct, creating the Tag and then patching the device with addTagId is the right way to do this, and the fact that the Tag shows on the device confirms the assignment worked. I was not able to reproduce your issue with a handful of devices and Tags. So this looks like a problem with how the console’s tag filter looks tags up, not with your setup.

Our suspicion is that the filter dropdown is only searching part of your project’s tag list, so Tags outside that part come back as “no data”. To confirm, could you share roughly how many tags your project has? And also, whether the failing Tags tend to be the more recently created ones?