From 56455b66d6be769ab71b76ef32c7f5364f10867b Mon Sep 17 00:00:00 2001 From: Aditya Khajuria Date: Tue, 6 Feb 2024 16:49:30 +0530 Subject: [PATCH] As per the rules a Bundle transaction with multiple operations on the same resource can be rejected by the FHIR server. So removing the UploadStrategy.AllChangesBundlePut option. --- .../google/android/fhir/sync/upload/UploadStrategy.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/engine/src/main/java/com/google/android/fhir/sync/upload/UploadStrategy.kt b/engine/src/main/java/com/google/android/fhir/sync/upload/UploadStrategy.kt index bc97f6e860..a2e42e8544 100644 --- a/engine/src/main/java/com/google/android/fhir/sync/upload/UploadStrategy.kt +++ b/engine/src/main/java/com/google/android/fhir/sync/upload/UploadStrategy.kt @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2023-2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,13 +36,6 @@ private constructor( internal val requestGeneratorMode: UploadRequestGeneratorMode, ) { - object AllChangesBundlePut : - UploadStrategy( - LocalChangesFetchMode.AllChanges, - PatchGeneratorMode.PerChange, - UploadRequestGeneratorMode.BundleRequest(Bundle.HTTPVerb.PUT, Bundle.HTTPVerb.PATCH), - ) - object AllChangesSquashedBundlePut : UploadStrategy( LocalChangesFetchMode.AllChanges,