No Longer Able to Control Graph Report Order

Description

When the snmp-graph.properties.d directory was introduced, it greatly simplified upgrading. However, it removed the ability to list the order in which reports are displayed.

Previously, the order of the reports in the report= line in the properties file would also be the order in which reports were displayed in the UI.

Now there doesn't seem to be a way to order them. We've tried making the custom file come first alphabetically as well as making it the newest file, but we can't find a consistent way to insure the reports are displayed in a chosen order.

Attached please find the output of that directory for a system called push3, which works fine, and poke3, which doesn't. They look almost the same.

Could someone explain how the order is determined? Is it possible it is cached somewhere and the cache needs to be cleaned?

Acceptance / Success Criteria

None

Attachments

3
  • 25 Jun 2014, 01:40 PM
  • 25 Jun 2014, 12:04 PM
  • 25 Jun 2014, 12:04 PM

Lucidchart Diagrams

Activity

Show:

Benjamin Reed June 25, 2014 at 9:54 PM

Fixed in 1.12.

Tarus Balog June 25, 2014 at 6:05 PM

Workie! Thanks so much. Would you commit it to 1.12 and then close the issue, or do I need to do something else?

Benjamin Reed June 25, 2014 at 1:40 PM

It appears that when we load the properties files, they're in whatever order the filesystem returns them, which is nondeterministic.

I've tried changing it so that we sort them as they're loaded (alphabetically). Attached is a replacement opennms-dao jar with that change (it is otherwise identical to the 1.12.8 version).

Let me know if that helps.

Fixed

Details

Assignee

Reporter

Labels

Fix versions

Affects versions

Priority

PagerDuty

Created June 25, 2014 at 12:04 PM
Updated January 27, 2017 at 4:20 PM
Resolved June 25, 2014 at 9:54 PM

Flag notifications