[ZBX-10974] Trigger Filter by name losing value after change page Created: 2016 Jul 07  Updated: 2017 May 30  Resolved: 2016 Sep 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.3
Fix Version/s: 3.0.5rc1, 3.2.0beta2

Type: Incident report Priority: Major
Reporter: Johannes Petz Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: filters, pagination
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File zabbix_3_trigger_filter.png    
Issue Links:
Duplicate

 Description   

Hey,
I hope this is not reported yet but I didn't find an issue with this problem.

Click on Monitoring -> Triggers

Groups: all
Hosts: all

Screenshot of Filter options in attachment.

The "Filter by name" value is filtering one Trigger. After changing to the next page, all filter values are the same except the "Filter by name". The value I set before is gone now.

Zabbix Version: 3.0.3
OS: RHEL 7.2



 Comments   
Comment by Dmitrijs Lamberts [ 2016 Jul 07 ]

Reproduced on 3.0.3
After changing pages filter value are gone.

For example:
Searching by trigger name: a

<button type="button" data-url="tr_status.php?fullscreen=0&amp;groupid=0&amp;hostid=0&amp;show_triggers=2&amp;ack_status=1&amp;show_events=1&amp;show_severity=0&amp;txt_select=a&amp;application=&amp;inventory%5B0%5D%5Bfield%5D=type&amp;inventory%5B0%5D%5Bvalue%5D=&amp;filter_rst=1" class="btn-alt" onclick="javascript: chkbxRange.clearSelectedOnFilterChange();">Reset</button>

Switched to Page2:

<button type="button" data-url="tr_status.php?fullscreen=0&amp;groupid=0&amp;hostid=0&amp;show_triggers=2&amp;page=2&amp;filter_rst=1" class="btn-alt" onclick="javascript: chkbxRange.clearSelectedOnFilterChange();">Reset</button>
Comment by Oleksii Zagorskyi [ 2016 Jul 15 ]

(1) Similar thing happens for Reports -> Availability report.
Fields "Template trigger" and "Filter by host group" being reset on pages navigation.

Note - in 2.2 pagination is not used for the report (in 2.4 it is), so the fix is required for 3.0 only.

asaveljevs This is a duplicate of ZBX-7942. CLOSED.

Comment by Aleksandrs Saveljevs [ 2016 Jul 20 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-10974 .

Comment by Ivo Kurzemnieks [ 2016 Jul 21 ]

(2) Translation string changes?

asaveljevs Thank you! No translation string changes. RESOLVED.

iivs CLOSED

Comment by Ivo Kurzemnieks [ 2016 Jul 21 ]

(3) Trigger status is reset when switched to some other page.

asaveljevs This only seems to happen when "Triggers status" filter is set to "All" - it loses it "allness" when going to a different page. This is because the value for this filter is not stored in user profile. See the following related issues for details: ZBX-6242, ZBX-6301, ZBX-7715, ZBX-8801.

asaveljevs There is an idea around to remove that special case for "Triggers status" (maybe under ZBX-8801). To be discussed.

asaveljevs After discussion it was decided that this special case is to be removed. Did that in both "Monitoring" -> "Triggers" and "Monitoring" -> "Overview" in r61321, r61322, and r61323. Note that documentation will have to be updated after this issue is merged (see tickets above), maybe suggesting to add "?filter_rst=1" to the URL if one gets stuck. RESOLVED.

iivs CLOSED

Comment by Ivo Kurzemnieks [ 2016 Aug 29 ]

TESTED

Comment by Aleksandrs Saveljevs [ 2016 Aug 31 ]

Fixed in pre-3.0.5rc1 r62114 and pre-3.2.0beta2 (trunk) r62116.

Generated at Fri Apr 26 10:19:56 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.