You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UUID not the name gets passed to the API. I see this in the compose logs: nginx | 172.21.0.229 - - [21/Dec/2023:09:06:37 +0000] "GET /api/dcim/devices/?q=&limit=50&offset=0&depth=0&cf_upgrade_group=c639def9-2784-4f32-9637-3f4aa3cfbcaa HTTP/2.0" 200 52 "https://192.168.253.20/extras/jobs/e6cdbd6b-977a-42a1-9d17-13c9dd7fbbf3/run/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0" "-"
and the device list in the job form is empty (no results found)
The text was updated successfully, but these errors were encountered:
Thanks for the report. It looks like we'll need to change the default filters in nautobot.extras.filters.CustomFieldModelFilterSetMixin to use NaturalKeyOrPKMultipleChoiceFilter for CustomFieldTypeChoices.TYPE_MULTISELECT and CustomFieldTypeChoices.TYPE_SELECT
Hi there, I'd be glad to have this implemented as well. We also noticed the inability to search custom fields by UUID but it would be very useful for us! e.g. /ipam/prefixes/?cf_my_field=c1442670-c8bf-4604-ac91-86436baf661d instead of just representing string value.
Environment
Steps to Reproduce
Expected Behavior
Filtered device list displays (only devices with Upgrade Group set to "Group A")
Observed Behavior
Zero devices display
Additional Information
Using the name instead of the uuid (https://<host>/dcim/devices/?cf_upgrade_group=Group%20A) works, but when the filter is used in a job like this:
The UUID not the name gets passed to the API. I see this in the compose logs:
nginx | 172.21.0.229 - - [21/Dec/2023:09:06:37 +0000] "GET /api/dcim/devices/?q=&limit=50&offset=0&depth=0&cf_upgrade_group=c639def9-2784-4f32-9637-3f4aa3cfbcaa HTTP/2.0" 200 52 "https://192.168.253.20/extras/jobs/e6cdbd6b-977a-42a1-9d17-13c9dd7fbbf3/run/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0" "-"
and the device list in the job form is empty (no results found)
The text was updated successfully, but these errors were encountered: