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

Refactor last updated deduping after UTC change #3890

Merged
merged 14 commits into from
Jun 3, 2024

Conversation

SergeyGaluzo
Copy link
Contributor

@SergeyGaluzo SergeyGaluzo added Enhancement Enhancement on existing functionality. Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs Schema Version backward compatible labels May 30, 2024
@SergeyGaluzo SergeyGaluzo added this to the S138 milestone May 30, 2024
@SergeyGaluzo SergeyGaluzo requested a review from a team as a code owner May 30, 2024 23:54
@@ -276,7 +276,7 @@ public async Task GivenIncrementalLoad_MultipleImportsWithSameLastUpdatedAndImpl
ndJson = CreateTestPatient(id, baseDate.AddYears(-1));
location = (await ImportTestHelper.UploadFileAsync(ndJson, _fixture.StorageAccount)).location;
request = CreateImportRequest(location, ImportMode.IncrementalLoad, false, true);
await ImportCheckAsync(request, null, 1);
await ImportCheckAsync(request, null, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this is now considered a duplicate (and thus not an error)?

Copy link
Contributor Author

@SergeyGaluzo SergeyGaluzo May 31, 2024

Choose a reason for hiding this comment

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

The logic was faulty. Now when code sees input data that is identical to prior loaded (key is last updated only, as there is no version) it considers it already loaded, so no errors. To enable that I had to compare raw resource, hence the change in the stored procedure output.

@SergeyGaluzo SergeyGaluzo enabled auto-merge (squash) June 3, 2024 15:36
@SergeyGaluzo SergeyGaluzo merged commit f93d919 into main Jun 3, 2024
46 of 47 checks passed
@SergeyGaluzo SergeyGaluzo deleted the users/sergal/deduponlastupdatedagainstdb branch June 3, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs Enhancement Enhancement on existing functionality. Schema Version backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants