Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tbauriedel opened this issue Nov 19, 2024 · 0 comments
Labels
enhancement New feature or improvement ref/NC TBD To be defined - We aren't certain about this yet

Comments

@tbauriedel
Copy link
Member

tbauriedel commented Nov 19, 2024

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.

  • Icinga DB Web version (System - About): 1.1.3
  • Icinga Web 2 version (System - About): 2.12.1
  • icinga/icinga-php-library: 0.14.1
  • icinga/icinga-php-thirdparty: 0.12.1

ref/NC/836693

@nilmerg nilmerg added ref/NC enhancement New feature or improvement TBD To be defined - We aren't certain about this yet labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement ref/NC TBD To be defined - We aren't certain about this yet
Projects
None yet
Development

No branches or pull requests

2 participants