emergency fix - reverting changes introduced in 6092 to get pipeline running. (#6101)

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
This commit is contained in:
Etienne Poirier 2024-07-11 17:26:39 -04:00 committed by GitHub
parent 6c446277e3
commit bd31bcb290
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -11,6 +11,7 @@ import org.hl7.fhir.r4.model.ConceptMap;
import org.hl7.fhir.r4.model.IdType;
import org.hl7.fhir.r4.model.Patient;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;
@ -54,6 +55,8 @@ class RequestPartitionHelperSvcTest extends BaseJpaR4Test {
myPatient.setId(new IdType("Patient", "123", "1"));
}
// TODO EHP: re-enable this test
@Disabled
@Test
public void testDetermineReadPartitionForSystemRequest_whenResourceIsNonPartitionable_returnsDefaultPartition() {
// setup

View File

@ -235,8 +235,13 @@ public abstract class BaseRequestPartitionHelperSvc implements IRequestPartition
// TODO GGG eventually, theRequest will not be allowed to be null here, and we will pass through
// SystemRequestDetails instead.
if ((theRequest == null || theRequest instanceof SystemRequestDetails) && nonPartitionableResource) {
return RequestPartitionId.defaultPartition();
// TODO EHP: temporarely commenting out to fix build pipeline.
// if ((theRequest == null || theRequest instanceof SystemRequestDetails) && nonPartitionableResource) {
// return RequestPartitionId.defaultPartition();
// }
if (theRequest == null) {
requestDetails = new SystemRequestDetails();
}
RequestPartitionId requestPartitionId = null;