Skip to content
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

feat: add audit trailing to facility service actions create, update and delete #670

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

Anissa3005
Copy link
Contributor

@Anissa3005 Anissa3005 commented Dec 24, 2024

Resolves ##274

Description

This PR adds audit trailing to the facility service actions: create, update, and delete. It also includes some refactoring to improve functionality and address related issues, such as converting batch writes to transactions.

What changed

  1. Added audit trailing to the following actions:
  • createFacility
  • updateFacility
  • deleteFacility
  1. Fixed a missing parameter in the approveSubmission logic when calling the createFacility function.
  2. Refactored updateHealthcareProfessionalsWithFacilityIdChanges to use transactions instead of batch writes.

@Anissa3005 Anissa3005 self-assigned this Dec 24, 2024
@Anissa3005 Anissa3005 added the enhancement New feature or request label Dec 24, 2024
@Anissa3005 Anissa3005 changed the title feat: add audit trailing to createFacility and updateFacility feat: add audit trailing to facility service actions create, update and delete Dec 25, 2024
@Anissa3005 Anissa3005 marked this pull request as ready for review December 25, 2024 05:41
@@ -19,7 +19,7 @@ export const seedDatabase = async () => {
const facilityIds: string[] = []

for await (const facility of facilities) {
const createdFacilityResult = await createFacility(facility)
const createdFacilityResult = await createFacility(facility, 'userId')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's pass in something like db Seed tool so we know where it was created

Copy link
Collaborator

@ermish ermish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! looks good @Anissa3005 ! There's one comment to check first

@Anissa3005 Anissa3005 merged commit b0a2be2 into main Jan 6, 2025
4 checks passed
@Anissa3005 Anissa3005 deleted the anissa/add-audit-trailing-facilityService branch January 6, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants