Skip to content

Commit ad38549

Browse files
authored
Merge pull request #35 from uber/issue34
Do not use the child workflow type in the parent workflow link
2 parents 7e81d32 + 282610d commit ad38549

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

client/routes/execution/parent-workflow-link.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import shortName from '../../short-name'
2-
31
export default function (wfStartDetails) {
42
if (wfStartDetails && wfStartDetails.parentWorkflowExecution) {
53
return {
@@ -11,7 +9,7 @@ export default function (wfStartDetails) {
119
runId: wfStartDetails.parentWorkflowExecution.runId
1210
}
1311
},
14-
text: `${shortName(wfStartDetails.workflowType.name)} - ${wfStartDetails.parentWorkflowExecution.workflowId}`
12+
text: wfStartDetails.parentWorkflowExecution.workflowId
1513
}
1614
}
1715
}

client/test/execution.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describe('Execution', function() {
243243
parentWf = await summaryEl.waitUntilExists('.parent-workflow')
244244

245245
parentWf.querySelector('dd a')
246-
.should.have.text('ci-test-parent - the-parent-wfid')
246+
.should.have.text('the-parent-wfid')
247247
.and.have.attr('href', '/domain/another-domain/workflows/the-parent-wfid/1234/summary')
248248
})
249249

0 commit comments

Comments
 (0)