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
f396dc98
Commit
f396dc98
authored
4 years ago
by
Fabio Vitello
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-419
: Fixed Serializer for Scheduling Unit Process
parent
775ec5fb
No related branches found
No related tags found
1 merge request
!292
TMSS-419: Fixed Serializer for Scheduling Unit Process
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SAS/TMSS/src/tmss/tmssapp/migrations/0001_initial.py
+29
-1
29 additions, 1 deletion
SAS/TMSS/src/tmss/tmssapp/migrations/0001_initial.py
SAS/TMSS/src/tmss/workflowapp/serializers/schedulingunitflow.py
+2
-2
2 additions, 2 deletions
...SS/src/tmss/workflowapp/serializers/schedulingunitflow.py
with
31 additions
and
3 deletions
SAS/TMSS/src/tmss/tmssapp/migrations/0001_initial.py
+
29
−
1
View file @
f396dc98
# Generated by Django 3.0.9 on 2020-12-0
2 20:16
# Generated by Django 3.0.9 on 2020-12-0
3 08:32
from
django.conf
import
settings
import
django.contrib.postgres.fields
...
...
@@ -17,6 +17,34 @@ class Migration(migrations.Migration):
]
operations
=
[
migrations
.
CreateModel
(
name
=
'
SchedulingUnitBlueprintSummary
'
,
fields
=
[
(
'
id
'
,
models
.
IntegerField
(
primary_key
=
True
,
serialize
=
False
)),
(
'
sub_id
'
,
models
.
IntegerField
()),
(
'
taskblueprint_id
'
,
models
.
IntegerField
()),
(
'
task_type
'
,
models
.
CharField
(
max_length
=
128
)),
(
'
derived_task_status
'
,
models
.
CharField
(
max_length
=
128
)),
],
options
=
{
'
db_table
'
:
'
tmssapp_schedulingunitblueprintsummary
'
,
'
managed
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
TaskBlueprintSummary
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
taskblueprint_id
'
,
models
.
IntegerField
()),
(
'
subtask_id
'
,
models
.
IntegerField
()),
(
'
substate
'
,
models
.
CharField
(
max_length
=
128
)),
(
'
subtask_type
'
,
models
.
CharField
(
max_length
=
128
)),
],
options
=
{
'
db_table
'
:
'
tmssapp_taskblueprintsummary
'
,
'
managed
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
Algorithm
'
,
fields
=
[
...
...
This diff is collapsed.
Click to expand it.
SAS/TMSS/src/tmss/workflowapp/serializers/schedulingunitflow.py
+
2
−
2
View file @
f396dc98
...
...
@@ -34,8 +34,8 @@ class DecideAcceptanceSerializer(ModelSerializer):
class
SchedulingUnitProcessSerializer
(
ModelSerializer
):
class
Meta
:
model
=
models
.
SchedulingUnitProcess
fields
=
[
'
su
'
,
'
active_task
'
,
'
qa_reporting_to
'
,
'
qa_reporting_sos
'
,
'
pi_verification
'
,
'
decide_acceptance
'
,
'
can_delete
'
,
'
results_accepted
'
,
'
created
'
,
'
finished
'
]
fields
=
'
__all__
'
class
SchedulingUnitTaskSerializer
(
ModelSerializer
):
class
Meta
:
model
=
Task
...
...
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