-
Notifications
You must be signed in to change notification settings - Fork 614
NMS-19227: Extend JSON-Based EventConf Loading and Processing Across All Functionalities. #8208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: features/eventconf-json
Are you sure you want to change the base?
Conversation
… for Event Configuration Handling
# Conflicts: # opennms-webapp-rest/src/main/java/org/opennms/web/rest/v2/EventConfPersistenceService.java
…nts to eliminate manual changes.
…All Functionalities.
There was a problem hiding this 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
JaxbUtilstoJsonUtils - Updated database access methods from
getXmlContent()togetContent() - 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.
...layer/core/src/main/java/org/opennms/features/apilayer/config/EventConfExtensionManager.java
Show resolved
Hide resolved
# 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
…-19094-json-implementation
cgorantla
left a comment
There was a problem hiding this 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>
There was a problem hiding this 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.
opennms-model/src/main/java/org/opennms/netmgt/model/EventConfEvent.java
Outdated
Show resolved
Hide resolved
opennms-webapp-rest/src/test/java/org/opennms/web/rest/v2/EventConfPersistenceServiceIT.java
Show resolved
Hide resolved
core/schema/src/main/java/liquibase/ext/opennms/eventconf/EventConfSqlGenerator.java
Show resolved
Hide resolved
NMS-19094: Replace xml with JSON when creating and updating an event
Jira (Issue Tracker): https://opennms.atlassian.net/browse/NMS-19227