Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

fix(deck): Fix RunJob external logs when component is not mounted and interpolation is needed#10188

Closed
christosarvanitis wants to merge 1 commit intospinnaker:masterfrom
armory-io:fixRunJobsLogsWithInterpolation
Closed

fix(deck): Fix RunJob external logs when component is not mounted and interpolation is needed#10188
christosarvanitis wants to merge 1 commit intospinnaker:masterfrom
armory-io:fixRunJobsLogsWithInterpolation

Conversation

@christosarvanitis
Copy link
Member

Deck is failing to render the external logs link when interpolation is needed but the async operation to Clouddriver to mount the manifest. This PR fixes this issue but keeps the ExternalLog link when interpolation is not needed

const { externalLink, podNamesProviders, location, account } = this.props;
// prefer links to external logging platforms
if (externalLink) {
if (externalLink && (!externalLink.includes('{{') || !isEmpty(manifest))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a rewrite or rethink on this... too complicated of logic. I could see passing all of this down a bit and being a bit smarter on the checks internally.

ALSO ideally would have a test on these... spec test that checks the render logic maybe

@dbyron-sf dbyron-sf closed this Oct 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants