-
Notifications
You must be signed in to change notification settings - Fork 518
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
Conversation
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Fixed
Show fixed
Hide fixed
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Fixed
Show fixed
Hide fixed
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Fixed
Show fixed
Hide fixed
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Fixed
Show fixed
Hide fixed
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Fixed
Show fixed
Hide fixed
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Fixed
Show fixed
Hide fixed
@@ -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); |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.
Addresses https://microsofthealth.visualstudio.com/Health/_workitems/edit/120854/