feat(core): remove dependency between audit search and entity template - #140
Open
RVANDO12 wants to merge 4 commits into
Open
feat(core): remove dependency between audit search and entity template#140RVANDO12 wants to merge 4 commits into
RVANDO12 wants to merge 4 commits into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



PR Description
feat(database): update audit retrieval mechanism to use envers tables exclusively
What this PR Provides
Fixes
NA
Review
The reviewer must double-check these points:
!after the type/scope to identify the breakingchange in the release note and ensure we will release a major version.
How to test
The initial state:
Ensure you have an existing entity in the system.
Delete this entity (and optionally its template) so that it no longer exists in the standard database tables but remains in the Envers _aud tables.
What and how to test:
Expected results:
The request should return a 200 OK status code and successfully retrieve the list of EntityAuditDtoOut revision history (including CREATED, UPDATED, and DELETED operations) despite the entity missing from the standard tables.
Last check, recreate entity template and entity, call get audit on the couple of identifier :
[ { "modified_by": "local-developer", "revision_date": "2026-09-04T08:21:00.948Z", "revision_number": 26405, "revision_type": "CREATED", "snapshot": { "identifier": "242816059", "name": "CN-HAWKEYE-PRICE", "properties": [], "relations": [ { "name": "smax_service-supported_by-support_group", "target_entity_identifiers": [ "CS-HAWKEYE-PRICE-CN" ], "target_template_identifier": "supportgroup" } ], "template_identifier": "smax-service" } }, { "modified_by": "local-developer", "revision_date": "2026-09-04T08:14:15.755Z", "revision_number": 26302, "revision_type": "DELETED", "snapshot": { "identifier": "242816059", "name": "CN-HAWKEYE-PRICE", "properties": [], "relations": [ { "name": "smax_service-supported_by-support_group", "target_entity_identifiers": [ "CS-HAWKEYE-PRICE-CN" ], "target_template_identifier": "supportgroup" } ], "template_identifier": "smax-service" } }, { "modified_by": "local-developer", "revision_date": "2026-09-04T07:32:35.944Z", "revision_number": 9138, "revision_type": "CREATED", "snapshot": { "identifier": "242816059", "name": "CN-HAWKEYE-PRICE", "properties": [], "relations": [ { "name": "smax_service-supported_by-support_group", "target_entity_identifiers": [ "CS-HAWKEYE-PRICE-CN" ], "target_template_identifier": "supportgroup" } ], "template_identifier": "smax-service" } } ]Breaking changes (if any)