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(frontend): Display loop UI for pipelines page #489

Closed
wants to merge 1 commit into from

Conversation

fenglixa
Copy link
Member

@fenglixa fenglixa commented Mar 8, 2021

Which issue is resolved by this Pull Request:
Resolves #

Description of your changes:
Address the loops UI dispaly in static pipelines page.
Run page was blocked by issue #488 now.

Environment tested:
image

  • Python Version (use python --version):
  • Tekton Version (use tkn version):
  • Kubernetes Version (use kubectl version):
  • OS (e.g. from /etc/os-release):

Checklist:

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fenglixa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@drewbutlerbb4 drewbutlerbb4 left a comment

Choose a reason for hiding this comment

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

Thanks @fenglixa, couple comments.

if (
pipeline['metadata'] &&
pipeline['metadata']['annotations'] &&
pipeline['metadata']['annotations']['tekton.dev/' + loopPipelineName]
Copy link
Member

Choose a reason for hiding this comment

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

Do we have any sample pipelines using this annotation?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @drewbutlerbb4 , yes, I will modify sdk part test examples for it, but seems I have to suspend this PR due to this logic should be removed after custom task could be defined as taskSpec

@@ -97,7 +103,8 @@ function buildTektonDag(graph: dagre.graphlib.Graph, template: any): void {
(pipeline['spec']['pipelineSpec']['finally'] || []).map((element: any) => {
return element['name'];
}) || [];
// Collect the anyConditions from 'metadata.annotations.anyConditions'
let loopNumber = 1;
Copy link
Member

Choose a reason for hiding this comment

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

loopNumber is always 1. It should be incremented somewhere

@fenglixa
Copy link
Member Author

fenglixa commented Mar 9, 2021

/hold

Since the code need to be modified after tektoncd/pipeline#3682 addressed

@stale
Copy link

stale bot commented Jun 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Mar 2, 2022

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

@stale stale bot closed this Mar 2, 2022
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.

3 participants