fix: show Helm tab when APIs are available but no instances exist - #17145
fix: show Helm tab when APIs are available but no instances exist#17145sowmya-sl wants to merge 1 commit into
Conversation
The useDetectHelmChartRepositories hook incorrectly set the OPENSHIFT_HELM feature flag to false when both HelmChartRepository and ProjectHelmChartRepository API calls succeeded but returned empty lists. This hid the Helm tab on clusters where the CRDs are installed but no repository instances exist. Changed the else branch to set the flag to true, correctly distinguishing between CRDs not installed (404 response, hide) and CRDs installed but no instances (success with empty list, show). Removed the dead hasEnabledHelmCharts helper and simplified the detection logic. Updated unit tests accordingly.
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sowmya-sl The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughHelm detection now enables the Helm feature flag when repository discovery returns empty, disabled, or partial results. It handles complete request failure separately and removes the unused repository-content helper and its tests. ChangesHelm detection
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Helm visibility is now enabled when repository APIs are available but return no instances, while complete API-failure handling remains unchanged. The change is ready to merge. Suggested reviewers: 🚥 Pre-merge checks | ✅ 13 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (13 passed)
Full details: Description checkExplanation The description explains the root cause and solution, but it does not complete the required template sections. Test cases, test setup, browser conformance, additional information, and reviewer details are missing.
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@sowmya-sl: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
The useDetectHelmChartRepositories hook incorrectly set the OPENSHIFT_HELM feature flag to false when both HelmChartRepository and ProjectHelmChartRepository API calls succeeded but returned empty lists. This hid the Helm tab on clusters where the CRDs are installed but no repository instances exist.
Changed the else branch to set the flag to true, correctly distinguishing between CRDs not installed (404 response, hide) and CRDs installed but no instances (success with empty list, show). Removed the dead hasEnabledHelmCharts helper and simplified the detection logic. Updated unit tests accordingly.
Analysis / Root cause:
Solution description:
Screenshots / screen recording:
Test setup:
Test cases:
Browser conformance:
Additional info:
Reviewers and assignees:
Summary by CodeRabbit