Bug 1318747

Summary: When editing already created alert condition Measurement Absolute Value Threshold the base units are incorrect
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: UIAssignee: Josejulio Martínez <jmartine>
Status: CLOSED ERRATA QA Contact: Prachi <pyadav>
Severity: low Docs Contact:
Priority: medium    
Version: JON 3.3.5CC: jmartine, pyadav, spinder
Target Milestone: ER01Keywords: Triaged
Target Release: JON 3.3.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-16 18:44:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screen shot
none
Alert screen-shot none

Description Filip Brychta 2016-03-17 16:33:19 UTC
Created attachment 1137444 [details]
screen shot

Description of problem:
See attached picture, the condition should use % as base unit but it's showing B as base unit.

Version-Release number of selected component (if applicable):
Version :	
3.3.0.GA Update 05
Build Number :	
4242930:1c9f74b

How reproducible:
Always

Steps to Reproduce:
1. go to some platform resource -> Alerts -> Definition -> New
2. file name, add Measurement Absolute Value Threshold condition, set metric to System Load, set some value e.g.4, save it 
3. edit created condition

Actual results:
Metric Value: 4%
Base units: B

Expected results:
Base units should be correct

Additional info:
Alerts work correctly it seems to be just UI issue.

Comment 2 Josejulio Martínez 2016-12-07 20:31:46 UTC
PR 277 [1] should fix this.

[1] https://github.com/rhq-project/rhq/pull/277

Comment 3 Josejulio Martínez 2016-12-27 18:29:31 UTC
commit eed7a631b41bfdf8b6256aba9308ea629d2d9222
Merge: 8038182 e2a02b5
Author: Michael Burman <yak>
Date:   Wed Dec 21 15:18:16 2016 +0200

    Merge pull request #277 from josejulio/bugs/1318747
    
    Bug 1318747 - Loads the current unit when editing.


commit e2a02b57f5c946f9a45436f5423c5e999066d81c
Author: Josejulio Martínez <jmartine>
Date:   Wed Dec 7 11:20:15 2016 -0600

    Bug 1318747 - Loads the current unit when editing.
    
    It was loading the unit of the first available entry and not taking into account the one being edited.

Comment 6 Prachi 2017-01-24 14:45:13 UTC
This Issue is resolved in JON 3.3.8 ER01.

Please find attached screen-shot.

Comment 7 Prachi 2017-01-24 14:46:51 UTC
Created attachment 1243945 [details]
Alert screen-shot

Comment 8 errata-xmlrpc 2017-02-16 18:44:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2017-0285.html