Skip to content
Snippets Groups Projects
Commit 3bfc4f0a authored by Nico Vermaas's avatar Nico Vermaas
Browse files

fix serializer to accept joined_output_task

parent d7ce98bd
No related branches found
No related tags found
1 merge request!313fix serializer to accept joined_output_task
Pipeline #53153 passed
...@@ -38,7 +38,7 @@ class TaskWriteSerializer(serializers.ModelSerializer): ...@@ -38,7 +38,7 @@ class TaskWriteSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = Task model = Task
fields = ('id','task_type','filter','predecessor','successors', fields = ('id','task_type','filter','predecessor','successors',
#'joined_input_tasks','joined_output_task', 'joined_output_task',
'project','sas_id','priority','purge_policy','cleanup_policy','resume', 'project','sas_id','priority','purge_policy','cleanup_policy','resume',
'new_workflow_id','new_workflow_uri','workflow', 'new_workflow_id','new_workflow_uri','workflow',
'stage_request_id', 'stage_request_id',
...@@ -93,7 +93,7 @@ class TaskReadSerializer(serializers.ModelSerializer): ...@@ -93,7 +93,7 @@ class TaskReadSerializer(serializers.ModelSerializer):
model = Task model = Task
fields = ['id','task_type','creationTime','filter', fields = ['id','task_type','creationTime','filter',
'predecessor','predecessor_status','successors', 'predecessor','predecessor_status','successors',
#'joined_input_tasks','joined_output_task','joined_status', 'joined_input_tasks','joined_output_task','joined_status',
'project','sas_id','priority','purge_policy','cleanup_policy','resume', 'project','sas_id','priority','purge_policy','cleanup_policy','resume',
'workflow', 'workflow',
'stage_request_id', 'stage_request_id',
...@@ -105,6 +105,7 @@ class TaskReadSerializer(serializers.ModelSerializer): ...@@ -105,6 +105,7 @@ class TaskReadSerializer(serializers.ModelSerializer):
read_only_fields = fields read_only_fields = fields
#/atdb/tasks-fast/
class TaskReadSerializerFast(serializers.ModelSerializer): class TaskReadSerializerFast(serializers.ModelSerializer):
""" """
status_history = serializers.StringRelatedField( status_history = serializers.StringRelatedField(
...@@ -125,7 +126,7 @@ class TaskReadSerializerFast(serializers.ModelSerializer): ...@@ -125,7 +126,7 @@ class TaskReadSerializerFast(serializers.ModelSerializer):
class Meta: class Meta:
model = Task model = Task
fields = ['id','task_type','creationTime','filter','predecessor','predecessor_status', fields = ['id','task_type','creationTime','filter','predecessor','predecessor_status',
#'joined_input_tasks', 'joined_output_task', 'joined_status' #'joined_input_tasks', 'joined_output_task', 'joined_status',
'project','sas_id','priority','purge_policy','cleanup_policy','resume', 'project','sas_id','priority','purge_policy','cleanup_policy','resume',
'workflow', 'workflow',
'stage_request_id', 'stage_request_id',
......
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