Add job.override-checkout to rest api

The override-checkout property of a job is currently not exposed via
the rest api. Add that to the job serialization and display it in the
job tab in the ui.

Change-Id: Ia7b7d85095c771f94cddcbb360f1028f77892e0c
Story: 2005518
Task: 30637
This commit is contained in:
Tobias Henkel 2020-01-18 13:55:10 +01:00
parent b96b81000d
commit 252ae3dcd2
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
3 changed files with 10 additions and 1 deletions

View File

@ -347,6 +347,7 @@ class TestWeb(BaseTestWeb):
'aliases': [],
'state': 'unknown'}],
},
'override_checkout': None,
'parent': 'base',
'post_review': None,
'protected': None,
@ -388,6 +389,7 @@ class TestWeb(BaseTestWeb):
'aliases': [],
'state': 'unknown'}],
},
'override_checkout': None,
'parent': 'base',
'post_review': None,
'protected': None,
@ -424,6 +426,7 @@ class TestWeb(BaseTestWeb):
'irrelevant_files': [],
'match_on_config_updates': True,
'name': 'test-job',
'override_checkout': None,
'parent': 'base',
'post_review': None,
'protected': None,
@ -542,6 +545,7 @@ class TestWeb(BaseTestWeb):
'irrelevant_files': [],
'match_on_config_updates': True,
'name': 'project-merge',
'override_checkout': None,
'parent': 'base',
'post_review': None,
'protected': None,
@ -576,6 +580,7 @@ class TestWeb(BaseTestWeb):
'irrelevant_files': [],
'match_on_config_updates': True,
'name': 'project-test1',
'override_checkout': None,
'parent': 'base',
'post_review': None,
'protected': None,
@ -610,6 +615,7 @@ class TestWeb(BaseTestWeb):
'irrelevant_files': [],
'match_on_config_updates': True,
'name': 'project-test2',
'override_checkout': None,
'parent': 'base',
'post_review': None,
'protected': None,
@ -644,6 +650,7 @@ class TestWeb(BaseTestWeb):
'irrelevant_files': [],
'match_on_config_updates': True,
'name': 'project1-project2-integration',
'override_checkout': None,
'parent': 'base',
'post_review': None,
'protected': None,
@ -698,6 +705,7 @@ class TestWeb(BaseTestWeb):
'irrelevant_files': [],
'match_on_config_updates': True,
'name': 'project-post',
'override_checkout': None,
'parent': 'base',
'post_review': None,
'post_run': [],

View File

@ -85,7 +85,7 @@ class JobVariant extends React.Component {
const jobInfos = [
'description', 'context', 'builds', 'status',
'parent', 'attempts', 'timeout', 'semaphore', 'implied_branch',
'nodeset', 'variables',
'nodeset', 'variables', 'override_checkout',
]
jobInfos.forEach(key => {
let label = key

View File

@ -1239,6 +1239,7 @@ class Job(ConfigObject):
d = {}
d['name'] = self.name
d['branches'] = self._branches
d['override_checkout'] = self.override_checkout
d['files'] = self._files
d['irrelevant_files'] = self._irrelevant_files
d['variant_description'] = self.variant_description