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

feat: Add a link in the UI for WorkflowTemplate. Fixes #4760 #8208

Merged
merged 8 commits into from
Mar 28, 2022

Conversation

shubham4443
Copy link
Contributor

@shubham4443 shubham4443 commented Mar 22, 2022

Signed-off-by: Shubham Nazare shubham4443@gmail.com

Fixes #4760

If a Workflow or CronWorkflow uses a WorkflowTemplate or ClusterWorkflowTemplate as workflowTemplateRef, a link is provided to redirect to that template.

For WorkflowTemplate kind -

image

For ClusterWorkflowTemplate kind -

image

@shubham4443
Copy link
Contributor Author

I can't figure out why the tests are failing. Can anybody please help me?

@alexec
Copy link
Contributor

alexec commented Mar 27, 2022

Run “yarn lint”

Signed-off-by: Shubham Nazare <shubham4443@gmail.com>
@shubham4443 shubham4443 marked this pull request as ready for review March 27, 2022 05:39
const url: string = clusterScope ? `/cluster-workflow-templates/${templateName}` : `/workflow-templates/${cronWorkflow.metadata.namespace}/${templateName}`;

const templateLink: Link = {
name: 'Workflow Template Link',
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change to “Open Workflow Template” and use the same icon as left-hand-nav does.

const url: string = clusterScope ? `/cluster-workflow-templates/${templateName}` : `/workflow-templates/${workflow.metadata.namespace}/${templateName}`;

const templateLink: Link = {
name: 'Workflow Template Link',
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change to “Open Workflow Template” and use the same icon as left-hand-nav does.

@alexec
Copy link
Contributor

alexec commented Mar 27, 2022

thank you for changes - please can I ask you attach updated screenshots? this shows it works

@shubham4443
Copy link
Contributor Author

For WorkflowTemplate kind -

image

For ClusterWorkflowTemplate kind -

image

I've updated the first comment's screenshot as well.

@alexec alexec merged commit f48998c into argoproj:master Mar 28, 2022
@sarabala1979 sarabala1979 mentioned this pull request Apr 14, 2022
85 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants