[ZBX-9500] some elements in exported xml are not sorted Created: 2015 Apr 21  Updated: 2017 May 30  Resolved: 2016 Jan 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.4.5rc1
Fix Version/s: 3.0.0beta1

Type: Incident report Priority: Minor
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: sorting, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

sort of a continuation of ZBX-3393

have a template with graphs and screens. export it in xml, modify the name in xml. import it.
export the new tempate.
compare both xml files. most likely, they are different.

some elements in xml (for example, graph items and screen elements) do not seem to be sorted by some reasonable criteria, maybe internal ids are used. this makes, for example, comparing two templates from different sources very hard.

it would be better to sort entries by some reasonable criteria - graph items by key, screen elements by cell etc

other entities should be verified as well (web scenarios, lld etc)



 Comments   
Comment by Gunars Pujats (Inactive) [ 2015 Aug 18 ]

(1) No translation strings changed.

sasha CLOSED

Comment by Gunars Pujats (Inactive) [ 2015 Aug 18 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-9500

Comment by Alexander Vladishev [ 2016 Jan 19 ]

(2) some elements are incorrectly sorted

  • lld rules must be sorted by key
  • items must be sorted by key
  • graph items must be sorted sortorder
  • map URLs must be sorted name, url
  • map element URLs must be sorted name, url

sasha RESOLVED in r57838, r57839

gunarspujats CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Jan 19 ]

Fixed in:

  • pre-3.0.0beta1 (trunk) r57855
Comment by Alexander Vladishev [ 2016 May 06 ]

It caused a regression: ZBX-10752

Generated at Sat Apr 20 10:39:32 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.