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

Support Uploading Individual requests - Not exposed yet #2121

Merged
merged 12 commits into from
Aug 22, 2023
Merged

Support Uploading Individual requests - Not exposed yet #2121

merged 12 commits into from
Aug 22, 2023

Conversation

omarismail94
Copy link
Contributor

@omarismail94 omarismail94 commented Aug 8, 2023

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Fixes #2110 #2112

Description
Clear and concise code change description.

Support uploading individual upload requests to the server:

  • Add endpoints for individual PUT, DELETE, and PATCH requests
  • Wrote an individual request generator
  • Refactored TransactionBundleGenerator to follow how the IndividualRequestGenerator is written as it's easier to add support for different create/update mappings
  • Added unit tests for FhirHttpDataSource class
  • Tested creating and updating on HAPI FHIR server using individual requests and it worked

Note: This is not exposed yet for use. TransactionBundleGenerator is currently hardcoded for use int he SquashChangesUploadManager. IndividualRequestGenerator to be exposed in a follow-up PR as part of the upload re-design

Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type
Choose one: (Bug fix | Feature | Documentation | Testing | Code health | Builds | Releases | Other)

Screenshots (if applicable)

Checklist

  • I have read and acknowledged the Code of conduct.
  • I have read the Contributing page.
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
  • I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

@omarismail94 omarismail94 changed the title Create IndividualRequestGenerator Support Uploading Individual requests Aug 11, 2023
@omarismail94 omarismail94 marked this pull request as ready for review August 11, 2023 13:48
@omarismail94 omarismail94 requested review from santosh-pingle and a team as code owners August 11, 2023 13:48
@omarismail94 omarismail94 requested a review from aditya-07 August 11, 2023 13:48
@jingtang10 jingtang10 self-assigned this Aug 21, 2023
Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

  1. What's IRG in the description? Is it IG?
  2. This is not wired up yet right? can you make this clear in the PR name and description?

@omarismail94 omarismail94 changed the title Support Uploading Individual requests Support Uploading Individual requests - Not exposed yet Aug 22, 2023
@omarismail94
Copy link
Contributor Author

@jingtang10

For 1, IRG Is IndividualRequestGenerator. I replace the acronym with the full name in the description.
For 2, done!

  1. What's IRG in the description? Is it IG?
  2. This is not wired up yet right? can you make this clear in the PR name and description?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Complete
3 participants