openshift / console

OpenShift Cluster Console UI
https://www.openshift.org
Apache License 2.0
401 stars 613 forks source link

OCPBUGS-44305: Unable to remove finally tasks in pipeline builder mode #14472

Closed lokanandaprabhu closed 1 day ago

lokanandaprabhu commented 2 weeks ago

Fixes: https://issues.redhat.com/browse/OCPBUGS-44305

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 2 weeks ago

@lokanandaprabhu: This pull request references Jira Issue OCPBUGS-44305, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug * bug is open, matching expected state (open) * bug target version (4.18.0) matches configured target version for branch (4.18.0) * bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact: /cc @sanketpathak

The bug has been updated to refer to the pull request using the external bug tracker.

In response to [this](https://github.com/openshift/console/pull/14472): >**Fixes**: >https://issues.redhat.com/browse/OCPBUGS-44305 > >**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%2Fconsole). 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.
lokanandaprabhu commented 2 weeks ago

/retest

openshift-ci[bot] commented 1 day ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: logonoff, 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: - ~~[frontend/packages/pipelines-plugin/OWNERS](https://github.com/openshift/console/blob/master/frontend/packages/pipelines-plugin/OWNERS)~~ [lokanandaprabhu] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
logonoff commented 1 day ago

/label acknowledge-critical-fixes-only

openshift-ci-robot commented 1 day ago

/retest-required

Remaining retests: 0 against base HEAD c81de7974fd6c0784232f6aa409a12b679bb8361 and 2 for PR HEAD 9af8591ec584c4e3453e399e946f72fe0432638b in total

logonoff commented 1 day ago

/retest

openshift-ci[bot] commented 1 day ago

@lokanandaprabhu: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
openshift-ci-robot commented 1 day ago

@lokanandaprabhu: Jira Issue OCPBUGS-44305: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-44305 has been moved to the MODIFIED state.

In response to [this](https://github.com/openshift/console/pull/14472): >**Fixes**: >https://issues.redhat.com/browse/OCPBUGS-44305 > >**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%2Fconsole). 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-bot commented 21 hours ago

[ART PR BUILD NOTIFIER]

Distgit: openshift-enterprise-console This PR has been included in build openshift-enterprise-console-container-v4.19.0-202411212037.p0.gea76ee6.assembly.stream.el9. All builds following this will include this PR.

lokanandaprabhu commented 15 hours ago

/cherrypick release-4.17

openshift-cherrypick-robot commented 15 hours ago

@lokanandaprabhu: new pull request created: #14527

In response to [this](https://github.com/openshift/console/pull/14472#issuecomment-2492875848): >/cherrypick release-4.17 Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.