[ZBX-14861] Trigger expression tester does not handle long expressions well Created: 2018 Sep 17 Updated: 2024 Apr 10 Resolved: 2018 Oct 09 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 4.0.0beta2 |
Fix Version/s: | 4.0.1rc1, 4.2.0alpha1, 4.2 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Ingus Vilnis | Assignee: | Andrejs Griščenko |
Resolution: | Fixed | Votes: | 0 |
Labels: | css | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | Selection_065.png image-2018-09-17-16-10-13-763.png |
Team: | Team D |
Team: | Team D |
Sprint: | Sprint 43, Sprint 44 |
Story Points: | 0.5 |
Description |
Steps to reproduce: Create a rather complex trigger with very long expression. This is used as example. ({TRIGGER.VALUE}=0 and (((({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}/ ({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}+ {Template Expression Test:log[test.log,test,,,skip].count(#10,PARSED,like)})) *100) + (({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}/ ({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}+ {Template Expression Test:log[test2.log,test,,,skip].count(#10,PARSED,like)})) *100))/2) >49) or ({TRIGGER.VALUE}=1 and (((({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}/ ({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}+ {Template Expression Test:log[test.log,test,,,skip].count(#10,PARSED,like)})) *100) + (({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}/ ({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}+ {Template Expression Test:log[test2.log,test,,,skip].count(#10,PARSED,like)})) *100))/2) >0) Open the Expression constructor and click Test Result: The long arithmetical parts of the trigger remain in a single line and the trigger evaluation result is not visible.
The evaluation results (TRUE, FALSE) are visible in the Inspect element section of the browser though. Expected: Might be caused by this: |
Comments |
Comment by Andrejs Griščenko [ 2018 Sep 28 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-14861 |
Comment by Andrejs Griščenko [ 2018 Oct 04 ] |
Fixed in:
|