[OpenNMS/opennms] c415e6: NMS-20169: Convert Graph Collections (KSC Reports)...

joseanesONMS via opennms-cvs <[email protected]>
Newsgroups gmane.network.opennms.cvs
Message-ID <OpenNMS/opennms/push/refs/heads/jira/NMS-20169-graph-collections/[email protected]>
  Branch: refs/heads/jira/NMS-20169-graph-collections
  Home:   https://github.com/OpenNMS/opennms
  Commit: c415e63f1747e013899cbb3ef2d26eb812ae0533
      https://github.com/OpenNMS/opennms/commit/c415e63f1747e013899cbb3ef2d26eb812ae0533
  Author: Jose Anes <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M opennms-webapp-rest/src/main/java/org/opennms/web/rest/v1/KscRestService.java
    M opennms-webapp-rest/src/main/webapp/WEB-INF/menu/menu-template.json
    M opennms-webapp-rest/src/test/java/org/opennms/web/rest/v1/KscRestServiceIT.java
    A ui/src/components/Ksc/GraphCollectionEditorDialog.vue
    A ui/src/components/Ksc/KscGraphEditorDialog.vue
    A ui/src/components/Ksc/utils/kscResource.ts
    A ui/src/components/Ksc/utils/kscTimespan.ts
    A ui/src/containers/GraphCollectionView.vue
    A ui/src/containers/GraphCollections.vue
    M ui/src/main/router/index.ts
    M ui/src/services/index.ts
    A ui/src/services/kscService.ts
    A ui/src/stores/kscStore.ts
    A ui/src/types/ksc.ts
    A ui/tests/components/Ksc/kscResource.test.ts
    A ui/tests/components/Ksc/kscTimespan.test.ts
    A ui/tests/stores/kscStore.test.ts

  Log Message:
  -----------
  NMS-20169: Convert Graph Collections (KSC Reports) to Vue

Replace the legacy AngularJS/JSP KSC pages with a PrimeVue single-page
flow under /ui, reusing the resource-graph chart components verbatim so a
report's graphs render with the same visualizations and no new chart code.
Each KSC graph carries {resourceId, graphtype, timespan}, which feed the
existing Graph.vue directly; the only new rendering logic is a TypeScript
port of KSC_PerformanceReportFactory.getBeginEndTime that resolves the 25
symbolic timespans to concrete start/end times.

Add the CRUD surface the editor needs to KscRestService: DELETE a report,
replace a whole report, and let POST assign the next id server-side (and
accept JSON). The list endpoint returns full reports (not terse) so the
list shows a graph count and edits load every graph. Report editing is
reserved for administrators in the Vue UI (matching the legacy page); the
REST endpoints keep the platform ROLE_REST contract like the existing
create/add-graph endpoints. The Dashboards "Graph Collections" menu entry
now points at the Vue route; the legacy page stays reachable as "Graph
Collections (Legacy)".

- New pages: list (view/edit/duplicate/delete/create/reload) and a report
  view that lays graphs out honoring graphs_per_line.
- Report and per-graph editor dialogs; the graph editor picks a resource
  (node -> child) then a prefab graph, with inline validation. Edit and
  Duplicate load the full report by id so Save never drops graphs.
- kscStore/kscService over rest/ksc; a failed list load surfaces an error
  instead of reading as an empty configuration.
- Tests: KscRestServiceIT covers create/update/delete/list; Vitest covers
  the timespan port, resourceId decoding, and the store's CRUD paths.



To unsubscribe from these emails, change your notification settings at https://github.com/OpenNMS/opennms/settings/notifications


_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq
opennms-cvs mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.