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

Delete resources in the sink DB and FHIR server #1183

Merged

Conversation

chandrashekar-s
Copy link
Collaborator

@chandrashekar-s chandrashekar-s commented Sep 9, 2024

Description of what I changed

Fixes #588
Delete the FHIR resources in the Sink DB and Sink FHIR servers during export.

E2E test

Relied on e2e tests.

TESTED:

Manually tested by deleting the resources from the source FHIR server and verifying the same from the sink systems.

Checklist: I completed these to help reviewers :)

  • I have read and will follow the review process.

  • I am familiar with Google Style Guides for the language I have coded in.

    No? Please take some time and review Java and Python style guides.

  • My IDE is configured to follow the Google code styles.

    No? Unsure? -> configure your IDE.

  • I have added tests to cover my changes. (If you refactored existing code that was well tested you do not have to add tests)

  • I ran mvn clean package right before creating this pull request and added all formatting changes to my commit.

  • All new and existing tests passed.

  • My pull request is based on the latest changes of the master branch.

    No? Unsure? -> execute command git pull --rebase upstream master

@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 32.00000% with 17 lines in your changes missing coverage. Please review.

Project coverage is 51.43%. Comparing base (062cc3d) to head (b1f8ddf).

Files with missing lines Patch % Lines
.../com/google/fhir/analytics/JdbcResourceWriter.java 20.00% 7 Missing and 1 partial ⚠️
...a/com/google/fhir/analytics/ConvertResourceFn.java 12.50% 6 Missing and 1 partial ⚠️
.../java/com/google/fhir/analytics/FhirStoreUtil.java 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1183      +/-   ##
============================================
+ Coverage     51.34%   51.43%   +0.08%     
- Complexity      711      715       +4     
============================================
  Files            95       95              
  Lines          5886     5907      +21     
  Branches        781      787       +6     
============================================
+ Hits           3022     3038      +16     
- Misses         2578     2581       +3     
- Partials        286      288       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@bashir2 bashir2 left a comment

Choose a reason for hiding this comment

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

Thanks @chandrashekar-s for fixing this.

@chandrashekar-s
Copy link
Collaborator Author

@bashir2 Sorry for the delay in addressing the review comments. Please have a look at my recent changes.

@chandrashekar-s chandrashekar-s merged commit 90fd8b7 into google:master Oct 24, 2024
6 checks passed
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.

Remove deleted resources when exporting to sink FHIR store and database during incremental run
3 participants