diff options
author | Tristan Cacqueray <tdecacqu@redhat.com> | 2019-08-08 22:37:25 +0000 |
---|---|---|
committer | Tristan Cacqueray <tdecacqu@redhat.com> | 2019-08-15 15:57:09 +0000 |
commit | 0ff5bf9e62b7fd1d0268c2c73a14e3c6924dc391 (patch) | |
tree | b2d2e7676f720bfa4d652b20d0e005b773f45214 /web | |
parent | 3aa36dd2d141a018ad5ba26146d979d4ac0d3eea (diff) | |
download | zuul-0ff5bf9e62b7fd1d0268c2c73a14e3c6924dc391.tar.gz |
web: link the buildset page from the build
This change adds a new buildset row to the build summary with
a link to the related buildset.
Change-Id: I07cdf6fc73746e0cd68d9bdd5d9df5a7822abcd7
Diffstat (limited to 'web')
-rw-r--r-- | web/src/containers/build/Summary.jsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/web/src/containers/build/Summary.jsx b/web/src/containers/build/Summary.jsx index f1830def9..c2ce558d7 100644 --- a/web/src/containers/build/Summary.jsx +++ b/web/src/containers/build/Summary.jsx @@ -31,11 +31,16 @@ class Summary extends React.Component { const { build } = this.props const rows = [] const myColumns = [ - 'job_name', 'result', 'voting', + 'job_name', 'result', 'buildset', 'voting', 'pipeline', 'start_time', 'end_time', 'duration', 'project', 'branch', 'change', 'patchset', 'oldrev', 'newrev', 'ref', 'new_rev', 'ref_url', 'log_url'] + if (!build.buildset) { + // Safely handle missing buildset information + myColumns.splice(myColumns.indexOf('buildset'), 1) + } + myColumns.forEach(column => { let label = column let value = build[column] @@ -47,6 +52,13 @@ class Summary extends React.Component { </Link> ) } + if (column === 'buildset') { + value = ( + <Link to={this.props.tenant.linkPrefix + '/buildset/' + value.uuid}> + {value.uuid} + </Link> + ) + } if (column === 'voting') { if (value) { value = 'true' |