Add some documentation and fix build in the pipeline.

This commit is contained in:
Martha 2024-06-27 16:08:15 -07:00
parent ec8aad3e78
commit 58b23992df
3 changed files with 6 additions and 4 deletions

View File

@ -69,7 +69,9 @@ public class RequestTenantPartitionInterceptor {
throw new InternalErrorException(Msg.code(343) + "No partition ID has been specified");
}
if (tenantId.equals(ProviderConstants.ALL_PARTITIONS_NAME)) {
// for REQUEST_TENANT partition selection mode, allPartitions is supported when URL includes _ALL as the tenant
// else if no tenant is provided in the URL, DEFAULT will be used as per UrlBaseTenantIdentificationStrategy
if (tenantId.equals(ProviderConstants.ALL_PARTITIONS_TENANT_NAME)) {
return RequestPartitionId.allPartitions();
}
return RequestPartitionId.fromPartitionName(tenantId);

View File

@ -53,7 +53,7 @@ public class ProviderConstants {
public static final String PARTITION_MANAGEMENT_PARTITION_DESC = "description";
public static final String DEFAULT_PARTITION_NAME = "DEFAULT";
public static final String ALL_PARTITIONS_NAME = "_ALL";
public static final String ALL_PARTITIONS_TENANT_NAME = "_ALL";
/**
* Operation name: diff

View File

@ -26,10 +26,10 @@ import ca.uhn.fhir.jpa.api.svc.IDeleteExpungeSvc;
import ca.uhn.fhir.jpa.partition.IRequestPartitionHelperSvc;
import ca.uhn.fhir.rest.api.server.RequestDetails;
import ca.uhn.fhir.util.ValidateUtil;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class DeleteExpungeJobParametersValidator implements IJobParametersValidator<DeleteExpungeJobParameters> {
private final IUrlListValidator myUrlListValidator;