From 974af8a23a5e6d3a39b1d0dceb4cf72fb027f20a Mon Sep 17 00:00:00 2001 From: goei <JsXLRu> Date: Wed, 24 Jun 2020 07:49:21 +0200 Subject: [PATCH] TMSS-166: Disable obsolete correlator and station schema populate and task connector of these templates --- SAS/TMSS/src/tmss/tmssapp/populate.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/SAS/TMSS/src/tmss/tmssapp/populate.py b/SAS/TMSS/src/tmss/tmssapp/populate.py index fce87bb021b..343fdb66cd6 100644 --- a/SAS/TMSS/src/tmss/tmssapp/populate.py +++ b/SAS/TMSS/src/tmss/tmssapp/populate.py @@ -43,9 +43,9 @@ def populate_lofar_json_schemas(apps, schema_editor): _populate_scheduling_unit_schema() # populate task schema's - _populate_stations_schema() # obsolete to be removed soon + #_populate_stations_schema() # obsolete to be removed soon _populate_preprocessing_schema() - _populate_correlator_calibrator_schema() # obsolete to be removed soon + #_populate_correlator_calibrator_schema() # obsolete to be removed soon _populate_observation_with_stations_schema() _populate_calibrator_addon_schema() @@ -890,15 +890,16 @@ def _populate_pipelinecontrol_schema(): def _populate_connectors(): # the TaskConnector's define how the Task[Draft/Blueprint] *can* be connected. - TaskConnector.objects.create(role=Role.objects.get(value=Role.Choices.CALIBRATOR.value), - datatype=Datatype.objects.get(value=Datatype.Choices.VISIBILITIES.value), - output_of=TaskTemplate.objects.get(name='correlator schema'), - input_of=TaskTemplate.objects.get(name='preprocessing schema')) - - TaskConnector.objects.create(role=Role.objects.get(value=Role.Choices.TARGET.value), - datatype=Datatype.objects.get(value=Datatype.Choices.VISIBILITIES.value), - output_of=TaskTemplate.objects.get(name='correlator schema'), - input_of=TaskTemplate.objects.get(name='preprocessing schema')) + # TODO Need overview which we do actually need + # TaskConnector.objects.create(role=Role.objects.get(value=Role.Choices.CALIBRATOR.value), + # datatype=Datatype.objects.get(value=Datatype.Choices.VISIBILITIES.value), + # output_of=TaskTemplate.objects.get(name='correlator schema'), + # input_of=TaskTemplate.objects.get(name='preprocessing schema')) + # + # TaskConnector.objects.create(role=Role.objects.get(value=Role.Choices.TARGET.value), + # datatype=Datatype.objects.get(value=Datatype.Choices.VISIBILITIES.value), + # output_of=TaskTemplate.objects.get(name='correlator schema'), + # input_of=TaskTemplate.objects.get(name='preprocessing schema')) TaskConnector.objects.create(role=Role.objects.get(value=Role.Choices.INPUT.value), datatype=Datatype.objects.get(value=Datatype.Choices.VISIBILITIES.value), -- GitLab