console icon indicating copy to clipboard operation
console copied to clipboard

OCPBUGS-42298: Remove ClusterTask dependency in console from Pipelines 1.17

Open lokanandaprabhu opened this issue 4 months ago • 16 comments

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

Solution Description: ClusterTask has been deprecated and will be removed in Pipelines Operator 1.17

So to support this,

  1. Removed ClusterTask list page in search menu if Pipelines Operator >= 1.17
  2. Removed ClusterTask list page tab in Tasks navigation menu if Pipelines Operator >= 1.17
  3. ClusterTask is removed from quick search in Pipelines builder if Pipelines Operator >= 1.17

Unit test coverage report: Screenshot 2024-10-01 at 4 33 49 PM

Test setup:

1. Install Pipelines operator
2. If Pipeline operator is 1.16 or lower, then it should work as existing behaviour, used should see ClusterTask in Task navigation menu and Pipeline builder page
3. Since Pipelines 1.17 is not installed, for testing purpose, make the below changes to test in `useIsPipelineOperatorVersion_1_17` function in `pipeline-operator.ts` file,
    const IS_PIPELINE_OPERATOR_VERSION_1_17 =
    operatorVersion?.major === 1 && operatorVersion?.minor >= 17;

to

    const IS_PIPELINE_OPERATOR_VERSION_1_17 =
    operatorVersion?.major === 1 && operatorVersion?.minor >= 15;

Browser conformance:

  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Edge

lokanandaprabhu avatar Sep 30 '24 13:09 lokanandaprabhu