openshift-pipelines / console-plugin

OpenShift Pipelines (and Tekton) OpenShift console dynamic plugin
Apache License 2.0
2 stars 16 forks source link

SRVKP-6739: Unable to remove finally tasks in pipeline builder mode #183

Open lokanandaprabhu opened 1 day ago

lokanandaprabhu commented 1 day ago

Fixes: https://issues.redhat.com/browse/SRVKP-6739

Analysis / Root cause: If all Finally tasks are removed, existing Pipeline Finally task was considered, so user was not able to remove all the Finally tasks

Solution Description: Used finallyTasks from formData

Screen shots / Gifs for design review:

----BEFORE---

https://github.com/user-attachments/assets/2fb44ca2-1be6-44a9-9bad-b5337c151fed

---AFTER----

https://github.com/user-attachments/assets/07f9fda8-dfff-4942-be3a-b91dd1f474da

Unit test coverage report: NA

Test setup:

  1. Create a finally task in a pipeline in pipeline builder
  2. Save pipeline
  3. Edit pipeline and remove finally task in pipeline builder
  4. Save pipeline
  5. Observe that the finally task has not been removed

Browser conformance:

openshift-ci-robot commented 1 day ago

@lokanandaprabhu: This pull request references SRVKP-6739 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.18.0" version, but no target version was set.

In response to [this](https://github.com/openshift-pipelines/console-plugin/pull/183): >**Fixes**: >https://issues.redhat.com/browse/SRVKP-6739 > >**Analysis / Root cause**: >If all Finally tasks are removed, existing Pipeline Finally task was considered, so user was not able to remove all the Finally tasks > >**Solution Description**: >Used finallyTasks from formData > >**Screen shots / Gifs for design review**: > >----BEFORE--- > > >https://github.com/user-attachments/assets/2fb44ca2-1be6-44a9-9bad-b5337c151fed > > > > > > > > >---AFTER---- > > > > > >https://github.com/user-attachments/assets/07f9fda8-dfff-4942-be3a-b91dd1f474da > > > > > > > > > >**Unit test coverage report**: >NA > >**Test setup:** > >1. Create a finally task in a pipeline in pipeline builder >2. Save pipeline >3. Edit pipeline and remove finally task in pipeline builder >4. Save pipeline >5. Observe that the finally task has not been removed > > >**Browser conformance**: > >- [x] Chrome >- [ ] Firefox >- [ ] Safari >- [ ] Edge > > > > > Instructions for interacting with me using PR comments are available [here](https://prow.ci.openshift.org/command-help?repo=openshift-pipelines%2Fconsole-plugin). If you have questions or suggestions related to my behavior, please file an issue against the [openshift-eng/jira-lifecycle-plugin](https://github.com/openshift-eng/jira-lifecycle-plugin/issues/new) repository.
openshift-ci[bot] commented 1 day ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lokanandaprabhu

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: - ~~[OWNERS](https://github.com/openshift-pipelines/console-plugin/blob/main/OWNERS)~~ [lokanandaprabhu] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
lokanandaprabhu commented 1 day ago

/uncc @saumeya /cc @Lucifergene