Skip to content

Conversation

@mwajahatabbasi
Copy link
Contributor

@mwajahatabbasi mwajahatabbasi changed the base branch from develop to mwa/jira/NMS-19092 December 19, 2025 13:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR transitions the event configuration system from XML-based content storage to JSON-based content storage, while maintaining backward compatibility by keeping the XML content field populated alongside the new JSON content field.

  • Changed event parsing and serialization from JaxbUtils to JsonUtils
  • Updated database access methods from getXmlContent() to getContent()
  • Modified log messages to reflect JSON parsing instead of XML parsing

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
EventConfRestService.java Updated event download endpoint to parse JSON content instead of XML
DefaultEventConfDao.java Changed event configuration DAO to use JSON parsing for database events
EventConfExtensionManager.java Modified extension manager to use JSON for event comparison and updates while maintaining XML content

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mwajahatabbasi and others added 5 commits December 19, 2025 19:48
# Conflicts:
#	opennms-model/src/main/java/org/opennms/netmgt/model/EventConfEventDto.java
#	opennms-webapp-rest/src/test/java/org/opennms/web/rest/v2/EventConfPersistenceServiceIT.java
@mwajahatabbasi mwajahatabbasi changed the base branch from mwa/jira/NMS-19092 to features/eventconf-json December 22, 2025 15:59
Copy link
Contributor

@cgorantla cgorantla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build is still failing

… for Event Conf (#8120)

* NMS-19227: Fixed Integration Test issues.

* NMS-19092: Fixed Integration Test issues.

* NMS-19092: Added Severity value while preparing eventConfEventList in EventConfTestUtil.

* NMS-19092: Handle PR Review Changes.

* Update core/schema/src/main/java/liquibase/ext/opennms/eventconf/EventConfSqlGenerator.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* NMS-19092: Handle PR Review Changes.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 24 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mwajahatabbasi mwajahatabbasi requested review from cgorantla and removed request for cgorantla December 24, 2025 12:50
NMS-19094: Replace xml with JSON when creating and updating an event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants