OU-1472: remove incidents feature from backend and tests - #1127
OU-1472: remove incidents feature from backend and tests#1127PeterYurkovich wants to merge 2 commits into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@PeterYurkovich: This pull request references OU-1472 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 task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: PeterYurkovich 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 |
WalkthroughThe PR replaces the ChangesIncidents feature tag rename
Repository ignore configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmd/plugin-backend.go`:
- Line 20: Update all Incidents feature references consistently: inspect the
feature definitions in server.go and replace features[Incidents] usages in
plugin_handler.go with the supported feature, or restore an Incidents
compatibility alias if that is the intended contract. Apply the same decision to
the frontend incidents field so backend and frontend feature names remain
aligned and the Go package compiles.
In `@web/cypress/README.md`:
- Line 231: Align the Cypress README tag taxonomy with the TestTags declaration:
move `@cluster-health-analyzer` from “Specific Feature Tags” to the high-level
category, or update the corresponding HighLevelComponentTag declaration in
test-tags.d.ts if the documented category is intended. Ensure both sources
classify the tag consistently.
In `@web/cypress/support/test-tags.d.ts`:
- Line 10: Remove the semicolon after the `@dashboards` member in the
HighLevelComponentTag union, retain `@cluster-health-analyzer` in that union, and
ensure only the final member has the terminating semicolon.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 88abae9f-72f0-4d3a-8bb4-003654af8898
📒 Files selected for processing (19)
.claude/commands/cypress/cypress-run.md.gitignorecmd/plugin-backend.gopkg/server/server.goweb/cypress/README.mdweb/cypress/e2e/incidents/00.coo_incidents_e2e.cy.tsweb/cypress/e2e/incidents/01.incidents.cy.tsweb/cypress/e2e/incidents/02.incidents-mocking-example.cy.tsweb/cypress/e2e/incidents/performance/01.performance_benchmark.cy.tsweb/cypress/e2e/incidents/performance/02.performance_walkthrough.cy.tsweb/cypress/e2e/incidents/regression/01.reg_filtering.cy.tsweb/cypress/e2e/incidents/regression/02.reg_ui_charts_comprehensive.cy.tsweb/cypress/e2e/incidents/regression/02.reg_ui_tooltip_boundary_times.cy.tsweb/cypress/e2e/incidents/regression/03-04.reg_e2e_firing_alerts.cy.tsweb/cypress/e2e/incidents/regression/03.reg_api_calls.cy.tsweb/cypress/e2e/incidents/regression/04.reg_redux_effects.cy.tsweb/cypress/e2e/incidents/regression/05.reg_stress_testing_ui.cy.tsweb/cypress/support/test-tags.d.tsweb/package.json
💤 Files with no reviewable changes (1)
- pkg/server/server.go
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/server/plugin_handler.go`:
- Around line 45-47: Add or update unit tests for patchManifest to cover the
revised feature gates: verify monitoring-console-plugin.patch.json is enabled by
ClusterHealthAnalyzer or PersesDashboards or AcmAlerting,
acm-alerting.patch.json is enabled by AcmAlerting, and
cluster-health-analyzer.patch.json is enabled by ClusterHealthAnalyzer; also
verify each patch remains disabled when none of its controlling features is
configured.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: d7ed8219-7a63-43dc-9beb-d8ff73c48654
📒 Files selected for processing (2)
pkg/server/plugin_handler.goweb/cypress/support/test-tags.d.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- web/cypress/support/test-tags.d.ts
34b6359 to
7ec7947
Compare
|
/retest ci/prow/images |
|
/test images |
|
CI has an issue with the login token being used. This is typically fixed by the prow team, going to not attempt any more runs until it is resolved |
|
Actually I thought about this more and this may need a conversion webhook on the operators side. This may be best to wait until we create the v1alpha2 or v1 of the CR to do. Will discuss more in the tech sync |
|
Actually actually we can just change the code [here] (https://github.com/rhobs/observability-operator/blob/261b08627f290eef6f5589a52a5c301d3a9be0e3/pkg/controllers/uiplugin/monitoring.go#L169) to pass in the other feature flag instead and its fine |
|
/retest |
|
/pipeline required |
|
Scheduling required tests: |
|
@PeterYurkovich: 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. |
|
/hold for branch |
|
PR needs rebase. 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. |
Stack created with GitHub Stacks CLI • Give Feedback 💬
Summary by CodeRabbit