Skip to content
Snippets Groups Projects
Commit 974af8a2 authored by goei's avatar goei
Browse files

TMSS-166: Disable obsolete correlator and station schema populate and task...

TMSS-166: Disable obsolete correlator and station schema populate and task connector of these templates
parent 80bc7fb3
No related branches found
No related tags found
1 merge request!176Resolve TMSS-166 and TMSS-209
......@@ -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),
......
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