Skip to content

Commit

Permalink
feature(cf): server group details creation timestamp links to pipeline (
Browse files Browse the repository at this point in the history
#7062)

If a server group is created by a pipeline, sometimes it would be nice to know which one did it. If a server group was created by a pipeline, the timestamp will now become a link to it.
  • Loading branch information
claymccoy authored and Jon Schneider committed May 28, 2019
1 parent 89e4e78 commit 7cbf241
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface ICloudFoundryServerGroup extends IServerGroup {
env: ICloudFoundryEnvVar[];
ciBuild: ICloudFoundryBuildInfo;
appArtifact: ICloudFoundryArtifactInfo;
pipelineId: String;
}

export interface ICloudFoundryServiceInstance {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ export class ServerGroupInformationSection extends React.Component<ICloudFoundry
<CollapsibleSection heading="Server Group Information" defaultExpanded={true}>
<dl className="dl-horizontal dl-flex">
<dt>Created</dt>
<dd>{timestamp(serverGroup.createdTime)}</dd>
{serverGroup.pipelineId ? (
<dd>
<a target="_blank" href={'/#/applications/' + serverGroup.app + '/executions/' + serverGroup.pipelineId}>
{timestamp(serverGroup.createdTime)}
</a>
</dd>
) : (
<dd>{timestamp(serverGroup.createdTime)}</dd>
)}
<dt>Account</dt>
<dd>
<AccountTag account={serverGroup.account} />
Expand Down

0 comments on commit 7cbf241

Please sign in to comment.