Icinga / icingadb-web

Icinga DB Web – UI for Icinga DB – Provides a graphical interface to your Icinga monitoring
GNU General Public License v2.0
68 stars 22 forks source link

Custom vars not displayed in searchbar in case it matches the object type. #1094

Open tbauriedel opened 1 week ago

tbauriedel commented 1 week ago

Describe the bug

The searchbar has an bug with "short" custom vars, that matches the object type.

It seems "built-in" variables are prioritized inside the SearchBar. Custom vars are display at the bottom. Also I think there is an hardcoded limit of suggestions that will be displayed.

"os" is part of the string "host". So if you try to search for "os" inside of icingadb/hosts it will always show the "built-in" variables first. The custom var will not be shown.

To Reproduce

  1. Create a custom var "os"
  2. Try to use it inside of icingadb/hosts
  3. You wont find it

Expected behavior

The custom var should be displayed when it is matching 100%.

Your Environment

Include as many relevant details about the environment you experienced the problem in.

ref/NC/836693