console
console copied to clipboard
OCPBUGS-42298: Remove ClusterTask dependency in console from Pipelines 1.17
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,
- Removed ClusterTask list page in search menu if Pipelines Operator >= 1.17
- Removed ClusterTask list page tab in Tasks navigation menu if Pipelines Operator >= 1.17
- ClusterTask is removed from quick search in Pipelines builder if Pipelines Operator >= 1.17
Unit test coverage report:
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