From 1efc4997d7ff21f6cd35467d8b55cd5fabff96da Mon Sep 17 00:00:00 2001 From: kraaij <kraaij@astron.nl> Date: Fri, 13 Oct 2023 21:10:30 +0200 Subject: [PATCH] determine Total Test Failures without this fix. --- .../frontend/tmss_webapp/prepareTemplateSchemas.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SAS/TMSS/frontend/tmss_webapp/prepareTemplateSchemas.js b/SAS/TMSS/frontend/tmss_webapp/prepareTemplateSchemas.js index 4c72cc658da..bda77a7f159 100644 --- a/SAS/TMSS/frontend/tmss_webapp/prepareTemplateSchemas.js +++ b/SAS/TMSS/frontend/tmss_webapp/prepareTemplateSchemas.js @@ -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"; } + + + // commented out on purpose to determine Total Test Failures without this fix. + /* + if (taskTemplate?.schema?.properties?.station_configuration) { taskTemplate.schema.properties.station_configuration["$ref"] = "#/definitions/station_configuration"; } + if ( taskTemplate?.schema?.properties?.QA) taskTemplate.schema.properties.QA["$ref"] = "#/definitions/QA"; + if ( taskTemplate?.schema?.properties?.duration) taskTemplate.schema.properties.duration["$ref"] = "#/definitions/duration"; + if ( taskTemplate?.schema?.properties?.calibrator) taskTemplate.schema.properties.calibrator["$ref"] = "#/definitions/calibrator"; + if ( taskTemplate?.schema?.properties?.correlator) taskTemplate.schema.properties.correlator["$ref"] = "#/definitions/correlator"; + */ + index++; templates.push(strategyTemplate); } -- GitLab