[ZBX-16349] "Delete missing" checkbox does not work when import template without checking "Update exising" Created: 2019 Jul 08  Updated: 2019 Sep 20  Resolved: 2019 Sep 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.28, 4.0.9
Fix Version/s: 4.0.13rc1, 4.2.7rc1, 4.4.0alpha3, 4.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Syusei YIn Assignee: Andrejs Griščenko
Resolution: Fixed Votes: 0
Labels: import
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2019-07-08 at 11.01.58.png     PNG File Screen Shot 2019-07-08 at 11.06.32.png     PNG File Screen Shot 2019-07-08 at 11.21.58.png     PNG File Screen Shot 2019-07-08 at 11.22.50.png    
Issue Links:
Sub-task
Team: Team D
Sprint: Sprint 56 (Sep 2019), Sprint 55 (Aug 2019), Sprint 54 (Jul 2019)
Story Points: 1

 Description   

Steps to reproduce:

  1. Export a template, then open with a text editor and make some change with a trigger expression like below:
    For instance: 
    modify from {HOST.item.last()}>1 to {HOST.item.last()}>0 
  2. Import this changed template to the original environment with option like Screen Shot 2019-07-08 at 11.01.58.png
  3. You will find the modified trigger expression[>0] was added and the old expression[>1] was also remained.

Result:
See Screen Shot 2019-07-08 at 11.21.58.png

Expected:
See Screen Shot 2019-07-08 at 11.22.50.png

When you import the changed template with option like Screen Shot 2019-07-08 at 11.06.32.png, only the new trigger expression[>0] was added.The most concern is the different behavior between checking and not checking "Update exising" option when import a template using "Delete missing" option.



 Comments   
Comment by Andrejs Griščenko [ 2019 Jul 17 ]

Resolved in development branch feature/ZBX-16349-4.0

Comment by Andrejs Griščenko [ 2019 Aug 30 ]

Fixed in:

Generated at Fri Mar 29 04:18:05 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.