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

Add rollback functionality when saving FHIR bundle with metadata #3034

Open
BobanL opened this issue Dec 10, 2024 · 0 comments
Open

Add rollback functionality when saving FHIR bundle with metadata #3034

BobanL opened this issue Dec 10, 2024 · 0 comments
Labels
Streamline eCR Issues for Streamline eCR team to work on tech debt Technical debt related work

Comments

@BobanL
Copy link
Collaborator

BobanL commented Dec 10, 2024

What needs to be done

  • Add rollback functionality to handle if either FHIR bundle or metadata save fail.

Why it needs to be done

  • Currently either the FHIR bundle save or metadata save steps could fail without rolling back the other

Acceptance Criteria

  • When saveFhirData then no metadata should be saved
  • When saveFhirMetadata then no bundle should be saved

Technical Notes

  • Consider using Promise.allSettled instead of Promise.all to check if either process failed.

Additional context

[OPTIONAL, delete if not needed]
Include any additional context or information here that doesn't fit into other parts of the template

@BobanL BobanL added tech debt Technical debt related work Streamline eCR Issues for Streamline eCR team to work on labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Streamline eCR Issues for Streamline eCR team to work on tech debt Technical debt related work
Projects
None yet
Development

No branches or pull requests

1 participant