Skip to content

Commit 14151b7

Browse files
[PRMT-542] Clear unstitched table before bulk upload setup (#775)
1 parent f51126f commit 14151b7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/bulk-upload/scripts/setup_bulk_upload.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,12 @@ def upload_lg_files_to_staging():
415415
def removing_previous_uploads():
416416
dynamodb = boto3.resource("dynamodb")
417417

418-
tables_to_truncate = [BULK_UPLOAD_TABLE_NAME, LG_TABLE_NAME, LG_STITCH_TABLE_NAME]
418+
tables_to_truncate = [
419+
BULK_UPLOAD_TABLE_NAME,
420+
LG_TABLE_NAME,
421+
LG_STITCH_TABLE_NAME,
422+
LG_UNSTITCHED_TABLE_NAME,
423+
]
419424

420425
for table_name in tables_to_truncate:
421426
table = dynamodb.Table(table_name)
@@ -574,6 +579,7 @@ def get_user_input():
574579
BULK_UPLOAD_TABLE_NAME = f"{ENVIRONMENT}_BulkUploadReport"
575580
LG_TABLE_NAME = f"{ENVIRONMENT}_LloydGeorgeReferenceMetadata"
576581
LG_STITCH_TABLE_NAME = f"{ENVIRONMENT}_LloydGeorgeStitchJobMetadata"
582+
LG_UNSTITCHED_TABLE_NAME = f"{ENVIRONMENT}_UnstitchedLloydGeorgeReferenceMetadata"
577583

578584
if not args.environment:
579585
env_confirmation = input(

0 commit comments

Comments
 (0)