[ZBX-12617] availability report sort Created: 2017 Aug 28  Updated: 2024 Apr 10  Resolved: 2017 Sep 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 3.4.0
Fix Version/s: 3.0.11rc1, 3.2.8rc1, 3.4.2rc1, 4.0.0alpha1, 4.0 (plan)

Type: Problem report Priority: Minor
Reporter: Lemaitre Mathieu Assignee: Gregory Chalenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

debian stretch


Team: Team A
Sprint: Sprint 15, Sprint 16
Story Points: 0.125

 Description   

availability reports are not well sorted.
according to the code in report2.php, they should be sorted by host, then by description:

CArrayHelper::sort($triggers, ['host', 'description']);

but there is no "host" field in the trigger array, so the report is only sorted by description.

the trigger array contains a "hosts" array (which in my case always has only one element), that has a "name" field that can be used to sort by host.



 Comments   
Comment by Miks Kronkalns [ 2017 Sep 11 ]

Code reviewed.

Comment by Gregory Chalenko [ 2017 Sep 11 ]

(1) No translation strings changes.

Miks.Kronkalns CLOSED

Comment by Gregory Chalenko [ 2017 Sep 13 ]

Fixed in:

  • 3.0.11rc1 r72553
  • 3.2.8rc1 r72554
  • 3.4.2rc1 r72555
  • 4.0.0alpha1(trunk) r72556
Comment by Gregory Chalenko [ 2017 Sep 14 ]

Fixes implemented in:

  • 3.0.11rc1 r72661
  • 3.2.8rc1 r72662
  • 3.4.2rc1 r72663
  • 4.0.0alpha1(trunk) r72664
Generated at Thu Apr 25 04:01:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.