Merge pull request #2752 from hapifhir/2751-jv-bump-bulk-export-job-request-length

Increase bulk export job request length
This commit is contained in:
Tadgh 2021-06-25 09:03:35 -04:00 committed by GitHub
commit c64269054b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
type: change
issue: 2751
title: "The bulk export request length limit has been increased to 1024 characters."

View File

@ -57,7 +57,7 @@ import static org.apache.commons.lang3.StringUtils.left;
})
public class BulkExportJobEntity implements Serializable {
public static final int REQUEST_LENGTH = 500;
public static final int REQUEST_LENGTH = 1024;
public static final int STATUS_MESSAGE_LEN = 500;
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_BLKEXJOB_PID")

View File

@ -39,6 +39,7 @@ import ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamToken;
import ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamUri;
import ca.uhn.fhir.jpa.model.entity.SearchParamPresent;
import ca.uhn.fhir.util.VersionEnum;
import org.checkerframework.checker.units.qual.C;
import java.util.Arrays;
import java.util.List;
@ -95,6 +96,9 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
.modifyColumn("20210617.1","TARGET_DISPLAY").nullable().withType(ColumnTypeEnum.STRING, 500);
version.onTable("TRM_CONCEPT_MAP_GRP_ELEMENT")
.modifyColumn("20210617.2", "SOURCE_DISPLAY").nullable().withType(ColumnTypeEnum.STRING, 500);
version.onTable("HFJ_BLK_EXPORT_JOB")
.modifyColumn("20210624.1","REQUEST").nonNullable().withType(ColumnTypeEnum.STRING, 1024);
}
private void init540() {