Skip to content

feat: audit enhancement#258

Closed
paymonsattar wants to merge 1 commit intomainfrom
feat/hrp-296-audit-enhancement
Closed

feat: audit enhancement#258
paymonsattar wants to merge 1 commit intomainfrom
feat/hrp-296-audit-enhancement

Conversation

@paymonsattar
Copy link
Copy Markdown
Collaborator

@paymonsattar paymonsattar commented Mar 31, 2026

Describe your changes

Enhances the case history audit trail to capture granular, field-level change details across all case entities.

  • audit entries now record old and new values, file names, folder names, and entity context instead of generic "X was updated" messages. Templates use metadata placeholders resolved at display time.
  • New resolver layer — added dedicated resolvers for diffing complex entity types (contacts, inspectors, procedures, outcomes, related/linked cases) that compare old and new state by ID and produce specific audit entries for each added, updated, or deleted item and sub-field.
  • Moved audit recording to the right lifecycle point — file upload auditing moved from individual upload to commit time so only finalised files are audited. File move auditing moved from the selection view to the save controller. Both now distinguish single vs bulk actions.
  • Previous state capture — updateCaseData now fetches the full case (with relations) before updating so resolvers can compare old vs new values. Entra group members are loaded for user display name resolution.
image image

Issue ticket number and link

https://pins-ds.atlassian.net/browse/HRP-296

@paymonsattar paymonsattar force-pushed the feat/hrp-296-audit-enhancement branch from b83f72a to 19d60fe Compare April 1, 2026 16:04
@paymonsattar paymonsattar marked this pull request as ready for review April 1, 2026 16:07
@paymonsattar paymonsattar force-pushed the feat/hrp-296-audit-enhancement branch from 19d60fe to d98b7fc Compare April 1, 2026 16:08
feat: audit enhancement

fix: tsc error
@paymonsattar paymonsattar force-pushed the feat/hrp-296-audit-enhancement branch from 589855d to 8d04b4c Compare April 1, 2026 16:15
@paymonsattar
Copy link
Copy Markdown
Collaborator Author

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.

1 participant