Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
06ab6a95
Commit
06ab6a95
authored
3 years ago
by
Mario Raciti
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-519
: Update copy ops descriptions
parent
9eb525b6
No related branches found
No related tags found
1 merge request
!458
Resolve TMSS-519
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py
+9
-9
9 additions, 9 deletions
SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py
with
9 additions
and
9 deletions
SAS/TMSS/backend/src/tmss/tmssapp/viewsets/specification.py
+
9
−
9
View file @
06ab6a95
...
...
@@ -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
s
cheduling
_u
nit
_d
raft
'
,
@swagger_auto_schema
(
responses
=
{
201
:
'
The new
S
cheduling
U
nit
D
raft
'
,
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 TaskDraft
s
copied from the TaskDraft
s
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
=
"
C
reate a copy of all
the TaskDraft
s
in this Scheduling
Unit
Set.
"
)
operation_description
=
"
C
opy
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
th
e
SchedulingUnit
Draf
t
"
,
@swagger_auto_schema
(
responses
=
{
201
:
"
The
new SchedulingUnitDraft copied from
th
is
SchedulingUnit
Blueprin
t
"
,
403
:
'
forbidden
'
},
operation_description
=
"
C
reate a
SchedulingUnit
Draft from the
SchedulingUnit
Blueprin
t
"
)
operation_description
=
"
C
opy the
SchedulingUnit
Blueprint to a new
SchedulingUnit
Draf
t
"
)
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
in
to a new TaskDraft.
"
)
def
create
(
self
,
request
,
*
args
,
**
kwargs
):
if
'
id
'
in
kwargs
:
task_blueprint
=
get_object_or_404
(
models
.
TaskBlueprint
,
pk
=
kwargs
[
'
id
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment