Skip to content

Conversation

@hurricanepilot
Copy link
Contributor

JIRA link

FACT-2478

Change description

  • Added AuditController as well associated Service and Repository code.
  • Implemented AuditableCourtEntity mapped superclass for opting in to auditing
  • Added entity listener code for automatic auditing of create, update and delete database events for entities that have opted in.

Tests are in place for the currently merged entities (Court, CourtTranslation and CourtPhoto). Tests for other entities will need to be created.

Does this PR require manual testing? (check one with "x")

[x] Yes
[ ] No

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

hurricanepilot added 4 commits November 18, 2025 11:20
This ensures that in the very odd edge-case where we've somehow deleted the court or the user record prior to removal of the audit, the audit records returned still refer to the internal ids that were potentially used to filter.
This is done to ensure that during integration testing, configuration is only changed from the production setup where necessary to avoid invalidating test results.
josh-uk
josh-uk previously approved these changes Nov 18, 2025
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants