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

Filtered hostgroup, double filter in detail pane #973

Open
gbin2265 opened this issue Feb 18, 2024 · 2 comments · May be fixed by #984
Open

Filtered hostgroup, double filter in detail pane #973

gbin2265 opened this issue Feb 18, 2024 · 2 comments · May be fixed by #984
Labels
area/navigation Affects the navigation bug Something isn't working difficulty/hard You can do this! Just ask someone for input first, please. And demand (some of) it as comment here!
Milestone

Comments

@gbin2265
Copy link

gbin2265 commented Feb 18, 2024

Describe the bug

If I use the link hostrgroups and then go to the HOST or SERVICES detail everything works perfectly.

If I filter a hostgroup by a certain name and then press the HOST or SERVICES link, the list in the detail pane is empty.

When I look at the URL I see that the filter is placed twice after the hosts.

To Reproduce

icingaweb2/icingadb/hostgroups?hostgroup.name=icinga_servers#!/icingaweb2/icingadb/hosts?hostgroup.name=icinga_servers&hostgroup.name=icinga_servers
Why 2 times -> hostgroup.name=icinga_servers&hostgroup.name=icinga_servers

If I replace the = with ~ in the hostgroup filter:

icingaweb2/icingadb/hostgroups?hostgroup.name~icinga_servers#!/icingaweb2/icingadb/hosts?hostgroup.name=icinga_servers&hostgroup.name~icinga_servers
Why 2 filters -> hostgroup.name=icinga_servers&hostgroup.name=icinga_servers

Expected behavior

I assume that only the filter has to be hostgroup.name=icinga_servers
and that the filter that was provided with the hostgroup is not extra added to the host/service detail pane

Your Environment

Latest snapshot on 17Feb2024

PHP : 8.3 (Remi)
OS : RHEL 7

icinga-l10n.noarch                  1.3.0+9.g1eb336e9-1708117586.el7   
icinga-php-common.noarch            1.0.0165655404400000000-0.20220630.0154.el7.icinga
icinga-php-library.noarch           0.13.1+4.g7d54fbd-1702674329.el7   
icinga-php-thirdparty.noarch        0.12.1+3.g2eeed31-1702674368.el7   
icingacli.noarch                    2.12.1+6.gd6881e027-1708121005.el7 
icingaweb2.noarch                   2.12.1+6.gd6881e027-1708121005.el7 
icingaweb2-common.noarch            2.12.1+6.gd6881e027-1708121005.el7 
php-icinga.noarch                   2.12.1+6.gd6881e027-1708121005.el7 

icingadb-web.noarch                 1.1.1+0.g274b903c-1708124776.el7   

icinga2-bin.x86_64                  2.14.2+126.g7d1c887a3-1708121006.el7
icinga2-common.x86_64               2.14.2+126.g7d1c887a3-1708121006.el7
icinga2-ido-pgsql.x86_64            2.14.2+126.g7d1c887a3-1708121006.el7

@gbin2265
Copy link
Author

!! I see now that this problem is also for the SERVICEGROUPS.

@nilmerg nilmerg added bug Something isn't working area/navigation Affects the navigation labels Feb 20, 2024
@nilmerg nilmerg added this to the 1.1.2 milestone Feb 20, 2024
@nilmerg nilmerg added the difficulty/hard You can do this! Just ask someone for input first, please. And demand (some of) it as comment here! label Feb 20, 2024
@nilmerg nilmerg linked a pull request Mar 18, 2024 that will close this issue
@nilmerg nilmerg modified the milestones: 1.1.2, 1.2.0 Mar 18, 2024
@nilmerg
Copy link
Member

nilmerg commented Mar 18, 2024

This requires a breaking change in our framework, so won't happen in a minor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/navigation Affects the navigation bug Something isn't working difficulty/hard You can do this! Just ask someone for input first, please. And demand (some of) it as comment here!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants