Skip to content
Snippets Groups Projects
Commit 06ab6a95 authored by Mario Raciti's avatar Mario Raciti
Browse files

TMSS-519: Update copy ops descriptions

parent 9eb525b6
No related branches found
No related tags found
1 merge request!458Resolve TMSS-519
......@@ -561,7 +561,7 @@ class TaskDraftCopyViewSet(LOFARCopyViewSet):
@swagger_auto_schema(responses={201: 'The new Task Draft',
403: 'forbidden'},
operation_description="Copy a Task Draft to a new Task Draft")
operation_description="Copy this Task Draft to a new Task Draft")
def create(self, request, *args, **kwargs):
if 'id' in kwargs:
task_draft = get_object_or_404(models.TaskDraft, pk=kwargs["id"])
......@@ -600,9 +600,9 @@ class SchedulingUnitDraftCopyViewSet(LOFARCopyViewSet):
queryset = models.SchedulingUnitDraft.objects.all()
serializer_class = serializers.SchedulingUnitDraftCopySerializer
@swagger_auto_schema(responses={201: 'The new scheduling_unit_draft',
@swagger_auto_schema(responses={201: 'The new SchedulingUnitDraft',
403: 'forbidden'},
operation_description="Copy a Scheduling Unit Draft to a new Scheduling Unit Draft")
operation_description="Copy a SchedulingUnitDraft to a new SchedulingUnitDraft")
def create(self, request, *args, **kwargs):
if 'id' in kwargs:
scheduling_unit_draft = get_object_or_404(models.SchedulingUnitDraft, pk=kwargs['id'])
......@@ -654,9 +654,9 @@ class SchedulingUnitDraftCopyFromSchedulingSetViewSet(LOFARCopyViewSet):
else:
return models.SchedulingUnitDraft.objects.all()
@swagger_auto_schema(responses={201: "The TaskDrafts copied from the TaskDrafts in this Scheduling Unit Set",
@swagger_auto_schema(responses={201: "The new TaskDraft(s) copied from the TaskDraft(s) in this SchedulingUnitSet",
403: 'forbidden'},
operation_description="Create a copy of all the TaskDrafts in this Scheduling Unit Set.")
operation_description="Copy the TaskDraft(s) in this SchedulingUnitSet to new TaskDraft(s).")
def create(self, request, *args, **kwargs):
if 'id' in kwargs:
scheduling_set = get_object_or_404(models.SchedulingSet, pk=kwargs['id'])
......@@ -693,9 +693,9 @@ class SchedulingUnitBlueprintCopyToSchedulingUnitDraftViewSet(LOFARCopyViewSet):
queryset = models.SchedulingUnitBlueprint.objects.all()
serializer_class = serializers.SchedulingUnitBlueprintCopyToSchedulingUnitDraftSerializer
@swagger_auto_schema(responses={201: "The copy of the SchedulingUnitDraft",
@swagger_auto_schema(responses={201: "The new SchedulingUnitDraft copied from this SchedulingUnitBlueprint",
403: 'forbidden'},
operation_description="Create a SchedulingUnitDraft from the SchedulingUnitBlueprint")
operation_description="Copy the SchedulingUnitBlueprint to a new SchedulingUnitDraft")
def create(self, request, *args, **kwargs):
if 'id' in kwargs:
......@@ -728,9 +728,9 @@ class TaskBlueprintCopyToTaskDraftViewSet(LOFARCopyViewSet):
queryset = models.SchedulingUnitBlueprint.objects.all()
serializer_class = serializers.SchedulingUnitBlueprintCopyToSchedulingUnitDraftSerializer
@swagger_auto_schema(responses={201: "The TaskDraft created from this TaskBlueprint",
@swagger_auto_schema(responses={201: "The new TaskDraft created from this TaskBlueprint",
403: 'forbidden'},
operation_description="Copy this TaskBlueprint to a new TaskDraft.")
operation_description="Copy this TaskBlueprint into a new TaskDraft.")
def create(self, request, *args, **kwargs):
if 'id' in kwargs:
task_blueprint = get_object_or_404(models.TaskBlueprint, pk=kwargs['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