Bug 1016833 - Alert notification sender, resource operation, relative resource type filter drop-down has not logical or usable ordering
Summary: Alert notification sender, resource operation, relative resource type filter ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Monitoring - Alerts, UI, Usability
Version: JON 3.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: DR02
: JON 3.2.1
Assignee: Jirka Kremser
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-08 19:13 UTC by Larry O'Leary
Modified: 2018-12-03 20:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-08 17:44:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1016830 0 unspecified CLOSED Alert notification sender, resource operation, relative resource type filter contains ambiguous types 2021-02-22 00:41:40 UTC

Internal Links: 1016830

Description Larry O'Leary 2013-10-08 19:13:57 UTC
Description of problem:
When defining an alert notification sender of type resource operation using a relative resource type, the type filter drop-down contains many resource types without any grouping and ordering. This makes it near impossible to find relative resource types.

Version-Release number of selected component (if applicable):
4.4.0.JON312GA

How reproducible:
Always

Steps to Reproduce:
1.  Install and start JBoss ON system and install all plug-ins.
2.  Import platform into inventory.
3.  Attempt to create a new alert definition for the platform resource:

    _General Properties_
        *Name*: `Test Alert`
        
    _Notifications_
        *Notification Sender*:  _Resource Operations_
        *Resource Selection Mode*:  _Relative Resource_ 
        *Start Search From*:    <platform>

Actual results:
*Then Filter By* contains many resource types in what appears to be a random order.

Expected results:
*Then Filter By* should present a list of resource types sorted alphabetically and possibly grouped by their parent/plug-in type.

Additional info:
This appears to be due to the map's key being a numeric value. This results in what appears to be the client (browser) sorting the list by resource type id.

This had been captured as a bug in http://code.google.com/p/smartgwt/issues/detail?id=569 however it appears that the bug may have been closed as "works as intended." The recommendation is to use a non-numeric string prefix to prevent the re-ordering as described in the short thread: http://forums.smartclient.com/showthread.php?t=16073

Comment 1 Larry O'Leary 2013-10-08 19:15:21 UTC
Adding bug 1016830 to see also list as these two bugs are tightly related. For example, depending on what happens in bug 1016830, may change what happens here.

Comment 2 Jirka Kremser 2014-01-28 16:03:26 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=d2aac70ae
time:    2014-01-28 16:03:56 +0100
commit:  d2aac70ae17ea051080a16a92a1ac666d909e520
author:  Jirka Kremser - jkremser
message: [BZ 1016833] - Alert notification sender, resource operation, relative
         resource type filter drop-down has not logical or usable
         ordering - Using the LinkedHashMap that preserves the ordering
         instead of java.util.HashMap. Also adding the plugin name to
         the drop-down list.

Comment 3 Jirka Kremser 2014-02-19 22:29:21 UTC
release branch
c2f37733be994a9237853a7f21733e2459a9f055

Comment 4 Simeon Pinder 2014-03-05 22:21:44 UTC
Moving to ON_QA as available for testing in the following brew build:
https://brewweb.devel.redhat.com//buildinfo?buildID=340294

Note: the installed version is still JON 3.2.0.GA by design and this represents part of the payload for JON 3.2.1 also known as cumulative patch 1 for 3.2.0.GA.  How this will be delivered to customers is still being discussed.

Comment 5 Mike Foley 2014-03-06 17:22:30 UTC
Verified JON 3.2.1 DR2

Comment 6 Mike Foley 2014-05-08 17:44:26 UTC
JON 3.2.1 released week of 5/5/2014


Note You need to log in before you can comment on or make changes to this bug.