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 ability to switch off/on generation of Parquet Files #1074

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

mozzy11
Copy link
Collaborator

@mozzy11 mozzy11 commented May 29, 2024

Fixes #1073

Add ability to switch of creation of a parquet DWH in case of syncying betwen FHIR servers

Added a flag to the createParquetDwh to the controller to switch off/on creation of parquet DWH

E2E test

Adedd e2e tests for synching from a hapi fhir sever to another using the pipeline controller for both FULL and INCREMENTAL modes while swtching on/off creation of parquet DWH

TESTED:
Testes Locally syncying between FHIR server while the parquet DWH is switched off/on

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 May 29, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.

Project coverage is 51.47%. Comparing base (a11b712) to head (1f0acf3).

Files with missing lines Patch % Lines
...java/com/google/fhir/analytics/DataProperties.java 33.33% 1 Missing and 3 partials ⚠️
...a/com/google/fhir/analytics/ConvertResourceFn.java 0.00% 0 Missing and 1 partial ⚠️
...a/com/google/fhir/analytics/FetchSearchPageFn.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1074      +/-   ##
============================================
- Coverage     51.49%   51.47%   -0.03%     
+ Complexity      717      716       -1     
============================================
  Files            95       95              
  Lines          5909     5916       +7     
  Branches        787      790       +3     
============================================
+ Hits           3043     3045       +2     
- Misses         2578     2579       +1     
- Partials        288      292       +4     

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

@mozzy11 mozzy11 force-pushed the isolate_fhir_sync branch from 2f13701 to 9ffab3a Compare May 29, 2024 22:46
@mozzy11
Copy link
Collaborator Author

mozzy11 commented May 30, 2024

cc @bashir2

@mozzy11
Copy link
Collaborator Author

mozzy11 commented Jul 8, 2024

cc @bashir2

@bashir2
Copy link
Collaborator

bashir2 commented Jul 9, 2024

cc @bashir2

Sorry @mozzy11 this fell off my radar (perhaps due to DevDays); thanks for the reminder. I'll provide some feedback by tomorrow.

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 @mozzy11 for this change. I had a look and made some comments but in general I feel we need to think deeper about the implications of skipping Parquet file generation; I feel there are still scenarios not covered in your change (beyond what I have commented below) but need to think more about this.

pipelines/controller/config/application.yaml Outdated Show resolved Hide resolved
docker/config/application.yaml Outdated Show resolved Hide resolved
docker/config_fhir_sink/application.yaml Outdated Show resolved Hide resolved
cloudbuild.yaml Outdated Show resolved Hide resolved
mozzy11 and others added 3 commits January 2, 2025 19:14
@mozzy11 mozzy11 changed the title add ability to switch off/on creation of parquet dwh add ability to switch off/on generation of Parquet Files Jan 5, 2025
@mozzy11 mozzy11 force-pushed the isolate_fhir_sync branch 6 times, most recently from fab000c to ac3c1ff Compare January 6, 2025 08:56
@mozzy11 mozzy11 force-pushed the isolate_fhir_sync branch from 72c160f to 345d321 Compare January 6, 2025 09:35
@mozzy11
Copy link
Collaborator Author

mozzy11 commented Jan 6, 2025

cc @bashir2 . i have worked on the review comments

@mozzy11
Copy link
Collaborator Author

mozzy11 commented Jan 7, 2025

Hello @bashir2 . I addresed the comments above

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.

Add ability to turn on /off parquet file generation in case of syncying fhir to fhir server
3 participants