Skip to content
Snippets Groups Projects
Commit 03413638 authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

Merge branch 'TMS-2810-Fix-templating' into 'master'

Fix Wrong Production URLS in template

See merge request !1180
parents c2c59919 19eba59a
No related branches found
No related tags found
1 merge request!1180Fix Wrong Production URLS in template
......@@ -175,6 +175,17 @@ getTemplateFiles('../../../../install/opt/lofar/share/tmss/schemas').then(async(
strategyTemplate.type = "http://localhost:3000/api/task_type/ingest";
strategyTemplate.type_value = "ingest";
}
// Fix bad references items. These where actually pointing to production urls.
if (strategyTemplate?.schema?.properties?.station_configuration) { strategyTemplate.schema.properties.station_configuration["$ref"] = "#/definitions/station_configuration"; }
if ( strategyTemplate?.schema?.properties?.QA) strategyTemplate.schema.properties.QA["$ref"] = "#/definitions/QA";
if ( strategyTemplate?.schema?.properties?.duration) strategyTemplate.schema.properties.duration["$ref"] = "#/definitions/duration";
if ( strategyTemplate?.schema?.properties?.calibrator) strategyTemplate.schema.properties.calibrator["$ref"] = "#/definitions/calibrator";
if ( strategyTemplate?.schema?.properties?.correlator) strategyTemplate.schema.properties.correlator["$ref"] = "#/definitions/correlator";
index++;
templates.push(strategyTemplate);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment