Skip to content

Commit

Permalink
Adding is_system to jobtype base serializer (#1844)
Browse files Browse the repository at this point in the history
Closes #1843
  • Loading branch information
emimaesmith authored Jan 29, 2020
1 parent 738f9d1 commit 9a6714a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scale/docs/rest/v6/job.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Response: 200 OK
"title": "Scale Ingest",
"description": "Ingests a source file into a workspace",
"is_active": true,
"is_system": true,
"is_paused": false,
"is_published": false,
"icon_code": "f013",
Expand Down Expand Up @@ -284,6 +285,7 @@ Location http://.../v6/job/1/
"description": null,
"is_active": true,
"is_paused": false,
"is_system": true,
"is_published": false,
"icon_code": null,
"unmet_resources": "chocolate,vanilla"
Expand All @@ -299,6 +301,7 @@ Location http://.../v6/job/1/
"description": null,
"is_active": true,
"is_paused": false,
"is_system": true,
"is_published": false,
"icon_code": null,
"unmet_resources": "chocolate,vanilla"
Expand Down Expand Up @@ -440,6 +443,7 @@ Response: 200 OK
"description": "Ingests a source file into a workspace",
"is_active": true,
"is_paused": false,
"is_system": true,
"is_published": false,
"icon_code": "f013",
"unmet_resources": "chocolate,vanilla"
Expand Down Expand Up @@ -530,6 +534,7 @@ Response: 200 OK
"description": "Ingests a source file into a workspace",
"is_active": true,
"is_paused": false,
"is_system": true,
"is_published": false,
"icon_code": "f013",
"unmet_resources": "chocolate,vanilla"
Expand Down Expand Up @@ -798,6 +803,7 @@ Response: 200 OK
"description": "Ingests a source file into a workspace",
"is_active": true,
"is_paused": false,
"is_system": true,
"is_published": false,
"icon_code": "f013",
"unmet_resources": "chocolate,vanilla"
Expand Down Expand Up @@ -926,6 +932,7 @@ Response: 200 OK
"description": "Ingests a source file into a workspace",
"is_active": true,
"is_paused": false,
"is_system": true,
"is_published": false,
"icon_code": "f013",
"unmet_resources": "chocolate,vanilla"
Expand Down
2 changes: 1 addition & 1 deletion scale/job/job_type_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class JobTypeBaseSerializerV6(ModelIdSerializer):
title = serializers.CharField(source='get_title')
description = serializers.CharField(source='get_description')
is_active = serializers.BooleanField()
is_system = serializers.BooleanField()
is_paused = serializers.BooleanField()
is_published = serializers.BooleanField()
icon_code = serializers.CharField()
Expand All @@ -36,7 +37,6 @@ class JobTypeSerializerV6(JobTypeBaseSerializerV6):

is_active = serializers.BooleanField()
is_paused = serializers.BooleanField()
is_system = serializers.BooleanField()
max_scheduled = serializers.IntegerField()
max_tries = serializers.IntegerField()
revision_num = serializers.IntegerField()
Expand Down

0 comments on commit 9a6714a

Please # to comment.