Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

feat(SCT-895): implement new user flag for auditing activity #585

Merged
merged 8 commits into from Jul 19, 2021

Conversation

chrishutchinson
Copy link
Contributor

@chrishutchinson chrishutchinson commented Jul 16, 2021

What
We're starting to implement the foundations of our audit logging functionality, which will allow us to:

  • Classify the users we want to enable Audit Logging on (currently done via a new Google Group, eventually, this will likely be everyone)
  • Pass data from the front end along to the back end to identify the current user, and whether auditing is enabled for that request (this will likely move to the backend once permissions and auth is handled on that side of the world)
  • Store events / actions in the database for reporting (this work is being done in the .NET API)

This PR introduces:

  • A new isAuditable flag on the user object
  • A method for getting the data needed to pass along for auditing purposes
  • A Implementation of that method on the getResident function which fetches a resident by ID
  • Associated tests for the above

Why
SCT-895

@chrishutchinson chrishutchinson merged commit 5d6fa0a into main Jul 19, 2021
@chrishutchinson chrishutchinson deleted the feature/add-auditing-support branch July 19, 2021 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants