Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-sheldon committed May 18, 2022
1 parent 4a0e9c9 commit c70abf9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions data-serving/scripts/prune-uploads/hooks/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

AWS_REGION = os.getenv("GDH_AGGREGATE_AWS_REGION", "eu-central-1")
# Job definition names are of the form PREFIX-<env>
PREFIX = "gdh-map-aggregation"
JOB_QUEUE = "gdh-map-aggregation"
PREFIX = os.getenv("JOB_DEF_PREFIX", "gdh-map-aggregation")
JOB_QUEUE = os.getenv("AGG_JOB_QUEUE", "gdh-map-aggregation-fargate")


def run(sources: list[dict[str, Any]], env: str, dry_run: bool = False):
Expand Down
6 changes: 5 additions & 1 deletion data-serving/scripts/prune-uploads/hooks/country_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@

from functools import cache
import logging
import os
from typing import Any
import unicodedata

import boto3
import pycountry


JOB_QUEUE = os.getenv("EXP_JOB_QUEUE", "export-queue")


# We do not always use the pycountry names, here's a list of exceptions
_QUIRKS = {
"DEMOCRATIC REPUBLIC OF THE CONGO": "CD",
Expand Down Expand Up @@ -84,7 +88,7 @@ def run(sources: list[dict[str, Any]], env: str, dry_run: bool = False):
logging.info(f"Submitting job for {jobdef} ...")
if not dry_run:
batch.submit_job(
jobName=jobdef, jobDefinition=jobdef, jobQueue="export-queue"
jobName=jobdef, jobDefinition=jobdef, jobQueue=JOB_QUEUE
)
except Exception as e:
logging.exception(f"Error occurred while trying to submit {jobdef}")
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe('Bulk upload form', function () {

// Case data
cy.contains('www.bulksource.com');
cy.contains('sourceEntryId');
cy.contains('superuser@test.com');
cy.contains('Data upload IDs')
.parent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ describe('Curator', function () {
'www.example.com',
);
});
cy.get('input[name="caseReference.sourceEntryId"]').should(
'have.value',
'testSourceEntryID123',
);

// Demographics.
cy.get('input[name="gender"]').should('have.value', 'Female');
Expand Down

0 comments on commit c70abf9

Please sign in to comment.