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:
parent
b96b81000d
commit
252ae3dcd2
|
@ -347,6 +347,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'aliases': [],
|
'aliases': [],
|
||||||
'state': 'unknown'}],
|
'state': 'unknown'}],
|
||||||
},
|
},
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'protected': None,
|
'protected': None,
|
||||||
|
@ -388,6 +389,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'aliases': [],
|
'aliases': [],
|
||||||
'state': 'unknown'}],
|
'state': 'unknown'}],
|
||||||
},
|
},
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'protected': None,
|
'protected': None,
|
||||||
|
@ -424,6 +426,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'irrelevant_files': [],
|
'irrelevant_files': [],
|
||||||
'match_on_config_updates': True,
|
'match_on_config_updates': True,
|
||||||
'name': 'test-job',
|
'name': 'test-job',
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'protected': None,
|
'protected': None,
|
||||||
|
@ -542,6 +545,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'irrelevant_files': [],
|
'irrelevant_files': [],
|
||||||
'match_on_config_updates': True,
|
'match_on_config_updates': True,
|
||||||
'name': 'project-merge',
|
'name': 'project-merge',
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'protected': None,
|
'protected': None,
|
||||||
|
@ -576,6 +580,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'irrelevant_files': [],
|
'irrelevant_files': [],
|
||||||
'match_on_config_updates': True,
|
'match_on_config_updates': True,
|
||||||
'name': 'project-test1',
|
'name': 'project-test1',
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'protected': None,
|
'protected': None,
|
||||||
|
@ -610,6 +615,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'irrelevant_files': [],
|
'irrelevant_files': [],
|
||||||
'match_on_config_updates': True,
|
'match_on_config_updates': True,
|
||||||
'name': 'project-test2',
|
'name': 'project-test2',
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'protected': None,
|
'protected': None,
|
||||||
|
@ -644,6 +650,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'irrelevant_files': [],
|
'irrelevant_files': [],
|
||||||
'match_on_config_updates': True,
|
'match_on_config_updates': True,
|
||||||
'name': 'project1-project2-integration',
|
'name': 'project1-project2-integration',
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'protected': None,
|
'protected': None,
|
||||||
|
@ -698,6 +705,7 @@ class TestWeb(BaseTestWeb):
|
||||||
'irrelevant_files': [],
|
'irrelevant_files': [],
|
||||||
'match_on_config_updates': True,
|
'match_on_config_updates': True,
|
||||||
'name': 'project-post',
|
'name': 'project-post',
|
||||||
|
'override_checkout': None,
|
||||||
'parent': 'base',
|
'parent': 'base',
|
||||||
'post_review': None,
|
'post_review': None,
|
||||||
'post_run': [],
|
'post_run': [],
|
||||||
|
|
|
@ -85,7 +85,7 @@ class JobVariant extends React.Component {
|
||||||
const jobInfos = [
|
const jobInfos = [
|
||||||
'description', 'context', 'builds', 'status',
|
'description', 'context', 'builds', 'status',
|
||||||
'parent', 'attempts', 'timeout', 'semaphore', 'implied_branch',
|
'parent', 'attempts', 'timeout', 'semaphore', 'implied_branch',
|
||||||
'nodeset', 'variables',
|
'nodeset', 'variables', 'override_checkout',
|
||||||
]
|
]
|
||||||
jobInfos.forEach(key => {
|
jobInfos.forEach(key => {
|
||||||
let label = key
|
let label = key
|
||||||
|
|
|
@ -1239,6 +1239,7 @@ class Job(ConfigObject):
|
||||||
d = {}
|
d = {}
|
||||||
d['name'] = self.name
|
d['name'] = self.name
|
||||||
d['branches'] = self._branches
|
d['branches'] = self._branches
|
||||||
|
d['override_checkout'] = self.override_checkout
|
||||||
d['files'] = self._files
|
d['files'] = self._files
|
||||||
d['irrelevant_files'] = self._irrelevant_files
|
d['irrelevant_files'] = self._irrelevant_files
|
||||||
d['variant_description'] = self.variant_description
|
d['variant_description'] = self.variant_description
|
||||||
|
|
Loading…
Reference in New Issue