[ZBX-9888] prohibit to save not obvious and incorrect conditions expression for action Created: 2015 Sep 18  Updated: 2017 May 30  Resolved: 2015 Nov 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 2.2.10, 2.4.6, 2.5.0
Fix Version/s: 3.0.0alpha4

Type: Incident report Priority: Minor
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 3
Labels: actions, expressions, triggers, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This is continuation of a ZBX-9660 discussion.

We've discussed it a bit now and agreed that would be much more user friendly to not allow store incorrect expression as discussed in ZBX-9660.
Otherwise people will face with such case all the time and will be disappointed when figured out that it's an absolutely not obvious limitation.

Sasha confirmed that the expression considered to be incorrect (as for server) only for "AND with several Triggers".

We could add such sanity check on frontend side and do not allow to store incorrect expression.



 Comments   
Comment by Gunars Pujats (Inactive) [ 2015 Oct 06 ]

(1) [A] Added translation string:

  • Comparing several triggers with "and" is not allowed.

sasha CLOSED

Comment by Gunars Pujats (Inactive) [ 2015 Oct 06 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-9888

Comment by Alexander Vladishev [ 2015 Oct 23 ]

(2) Only several conditions "Trigger" with "=" operator must be prohibited.

gunarspujats RESOLVED in r56361.

sasha Impossible to create condition with two or more triggers with "<>" operator.

REOPENED

gunarspujats RESOLVED in r56378.

sasha Unit tests must be fixed.

REOPENED

gunarspujats RESOLVED in r56403.

sasha CLOSED

Comment by Alexander Vladishev [ 2015 Oct 23 ]

(3) $triggers_count must be calculated only with evaltype=CONDITION_EVAL_TYPE_AND.

gunarspujats RESOLVED in r56361.

sashas CLOSED

Comment by Alexander Vladishev [ 2015 Oct 27 ]

(4) Take a look at my changes in r56398.

gunarspujats CLOSED

Comment by Alexander Vladishev [ 2015 Oct 28 ]

Successfully tested! Take a look at my changes in r56407 before a merge.

gunarspujats CLOSED

Comment by Gunars Pujats (Inactive) [ 2015 Oct 28 ]

Fixed in:

  • pre-3.0.0alpha4 (trunk) r56411
Comment by Alexander Vladishev [ 2015 Oct 29 ]

(5) Documentation:

martins-v Updated documentation: Action conditions

gunarspujats Updated documentation: API / changes from 2.4 to 3.0

sasha Thanks! CLOSED

Generated at Fri Apr 19 16:47:46 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.