Why does the search bar on the top of the search page provide different results than the search bars on the left side of the page?
- There was an interesting problem that derived from a user that showed that he was getting different results when typing "Default" in to the top search bar vs. typing "Default" in the search bar under the "Groups" side. See images for reference:
Top Bar
Left Side Bar (Under "Groups")
Although in the images above, they are clearly providing the same results. But what was happening to this user was that additional devices that did not belong to the group "Default" were appearing underneath the "Default" search from the top bar. The reason for this was because there is a field value on devices called "Last Logged in User", and the last logged in user for these devices all contained the word "default" somewhere in their username, thus adding them as a searchable value in the top bar.
For reference, when searching for devices in our Devices page the URL will differentiate appropriately:
No search:
https://console.automox.com/devices?o=5002&limit=500&sort_dir=asc&sort_by=display_name&page=1&columns=os_family,display_name,last_disconnect_time,server_group_id,tags,ip_addrs,os_version,pending_patches,status,agent_version,patches,is_compatible
"Default" in the top bar:
https://console.automox.com/devices?o=5002&limit=500&sort_dir=asc&sort_by=display_name&page=1&columns=os_family,display_name,last_disconnect_time,server_group_id,tags,ip_addrs,os_version,pending_patches,status,agent_version,patches,is_compatible&q=Default
"Default" under the left side "Group" category:
https://console.automox.com/devices?o=5002&limit=500&sort_dir=asc&sort_by=display_name&page=1&columns=os_family,display_name,last_disconnect_time,server_group_id,tags,ip_addrs,os_version,pending_patches,status,agent_version,patches,is_compatible&group=10585
You can see that in the top bar, we search with a literal string, whereas the left side uses the group number ("group=10585
"). So, if results are not being provided back to you accurately, check the URL!