Commit 7a6fe8c4 authored by Matthias's avatar Matthias
Browse files

improve parameter value handling

parent ab0a0fe6
Pipeline #14206 passed with stages
in 5 minutes and 55 seconds
......@@ -15,6 +15,8 @@ class ImportProcessStart(Resource):
parser.add_argument('job-parameters', type=dict)
args = parser.parse_args()
job_parameters = args['job-parameters']
job_parameters['institutionId'] = institution_id
job_parameters['recordSetId'] = record_set_id
# add example parameters for missing ones (remove this block in production!)
if job_parameters is None:
......@@ -23,12 +25,8 @@ class ImportProcessStart(Resource):
job_parameters['drupalJobUuid'] = 'adf48fb4-16ba-40b2-a207-8ff9d5aac657'
if 'drupalJobLogResultUuid' not in job_parameters:
job_parameters['drupalJobLogResultUuid'] = 'eef31a5c-7f73-4cac-b811-8ba948aef453'
if 'recordSetId' not in job_parameters:
job_parameters['recordSetId'] = 'defaultvalue...'
if 'sessionId' not in job_parameters:
job_parameters['sessionId'] = 'drupal...'
if 'institutionId' not in job_parameters:
job_parameters['institutionId'] = 'defaultvalue...'
if 'xmlRecordTag' not in job_parameters:
job_parameters['xmlRecordTag'] = 'defaultvalue...'
if 'xmlIdentifierFieldName' not in job_parameters:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment