Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): show container logs when using templateRef #12973

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

agilgur5
Copy link
Member

@agilgur5 agilgur5 commented Apr 24, 2024

Fixes #9938
Related to #12970 -- that's for the back-end, this is the one remaining place in the front-end

Motivation

  • the component was incorrectly assuming that node.templateName exists, which it doesn't in the case of a templateRef

Modifications

  • use the existing getTemplateNameFromNode function to properly handle that instead

Verification

Used the WorkflowTemplate and Workflow from the issue repro, can see all containers and logs.

Screenshot:

Screenshot 2024-04-23 at 9 11 37 PM

@agilgur5
Copy link
Member Author

This should be backported to 3.4.x as well, since the bug has been around for a while

@agilgur5 agilgur5 added this to the v3.5.x patches milestone Apr 24, 2024
- the component was incorrectly assuming that `node.templateName` exists, which it doesn't in the case of a `templateRef`
  - use the existing `getTemplateNameFromNode` function to properly handle that instead

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
- it breaks on build and lint, but `git` wouldn't detect it as it's not part of the diff

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
@agilgur5 agilgur5 force-pushed the fix-ui-log-viewer-templateRef branch from 71f4f51 to dc40905 Compare April 24, 2024 02:56
@ryancurrah
Copy link
Contributor

This explains why I'm not seeing anything when viewing all logs.

@agilgur5
Copy link
Member Author

agilgur5 commented Apr 26, 2024

This explains why I'm not seeing anything when viewing all logs.

This makes you able to use the template combobox in the logs viewer per #9938, to clarify. Not sure if that's what you meant.

@ryancurrah
Copy link
Contributor

It is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log Viewer Container list broken for workflows using templateRef
3 participants