[ZBX-4391] suffixes not properly supported in trigger testing interface in frontend Created: 2011 Nov 24  Updated: 2017 May 30  Resolved: 2012 Jan 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 1.8.10, 1.9.9 (beta)

Type: Incident report Priority: Major
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: suffixes, triggertesting
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

When trigger expression contains the suffixes in the trigger expression then tester always returns FALSE.
Example: "host:test.item.last(0)}<1G"

The last time It worked correctly in the 1.8.2.
In the 1.8.3 - 1.8.9 and current trunk it always return FALSE.



 Comments   
Comment by Vjacheslav Shipillo (Inactive) [ 2011 Nov 30 ]

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

Comment by Alexey Fukalov [ 2011 Nov 30 ]

(1) [GUI]
Not all suffixes are working (http://www.zabbix.com/documentation/1.8/manual/config/suffixes)

<slava> RESOLVED

<Vedmak> as decided we need support up to Y suffix.
<SlaVa> RESOLVED
<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2011 Nov 30 ]

(3) [GUI]
I think regular expression could be simplyfied to smth like: "/([0-9\.]+)[K|M|G]?/" also case is significant, as "K" is not the same as "k"
<slava> RESOLVED
<Vedmak> in fact regexp can be simplified even more: "/[0-9\.]+[KMG]?/"
<SlaVa> RESOLVED
<Vedmak> CLOSED

Comment by Vjacheslav Shipillo (Inactive) [ 2011 Nov 30 ]

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

<zalex> dev branch tested. works as expected.

Comment by Alexander Vladishev [ 2011 Dec 15 ]

(0) is not solved

(4) a trigger expression parser on server side do not support suffixes P (Peta), E (Exa), Z (Zetta) and Y (Yotta). Please, rollback a support of these suffixes on GUI side in the trigger expressions.

<Slava> RESOLVED

sasha Has been fixed in ^/trunk r24449. CLOSED

Comment by Vjacheslav Shipillo (Inactive) [ 2011 Dec 21 ]

Fixed in 24150

Comment by Alexey Fukalov [ 2011 Dec 22 ]

(5) [GUI]
In function "convert" there is still code for converting to yotta etc.
<Slava>RESOLVED r 24185

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2011 Dec 22 ]

(6) [GUI]
Why do you use in test both "button_click" and "click" methods?
Also formatting in test file should be fixed.
<Slava>RESOLVED r 24198

<Vedmak> CLOSED

Comment by richlv [ 2011 Dec 23 ]

(7) new file, testTriggerExpressions.php, should have svn:eol-style svn property set to 'native'
<SlaVa>RESOLVED r 24236

<richlv> CLOSED

Comment by Alexey Fukalov [ 2011 Dec 27 ]

(8) [GUI]
In trunk branch all suffixes like Y, Z, etc. are still acceptable in trigger expressions, is it ok?
<SlaVa> No, it's not ok. RESOLVED r 24282

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2011 Dec 28 ]

(9) [GUI]
Suffixes are left in defines.inc.php and maybe somewhere else..
<Slava>RESOLVED

<Vedmak> CLOSED

Comment by Vjacheslav Shipillo (Inactive) [ 2011 Dec 30 ]

fixed in r 24449

Comment by Oleksii Zagorskyi [ 2011 Dec 30 ]

(10) Missing record for the trunk ChangeLog.
1.9.9 value is missing in the "Fix Version/s:"
Will be REOPENED.
<SlaVa>
Changes for 1.8.10rc1

..F....... ZBX-4391 fixed suffix support in trigger testing interface (slava)

<zalex> I've added the tag 1.9.9 to the "Fix Version/s:"
I'm closing it. ChangeLog processing will be discussed separately.
CLOSED

Comment by richlv [ 2012 Jan 08 ]

(12) added unittest has not been added to SeleniumTests.php

added unittest testTriggerExpressions.php defines it's class name as being "testPageHosts" ...
<Slava> RESOLVED in r 24608

sasha The trigger expression parser and tests to it were completely rewritten in r31649. CLOSED

Comment by richlv [ 2013 Aug 19 ]

still not closed : (4) and (12)

sasha Reviewed and CLOSED.

Generated at Tue Apr 23 10:00:30 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.