Repository navigation
Change an incident's status and severity from its row in a group (superseded by #34599) - #34597
ShaileshParmar11 wants to merge 12 commits into
Conversation
Retiring the flat list took away the only place an incident could be changed without opening its test case. The drawer and the drill-down rows now carry the same core status and severity chips the incident table used — the status chip also assigns and reassigns — for whoever may edit the incident's test case (`EditStatus`, read per row). Everyone else, and every row while its permission loads, keeps the read-only badges. A change re-reads the incidents in view and the groups, so the drawer header, the drill-down summary and the group row all follow it; a resolved incident leaves the list. The E2E changes one incident's severity from the drawer.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
…eshParmar11/incident-inline-actions
…eshParmar11/incident-inline-actions
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
…eshParmar11/incident-inline-actions # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/observability/IncidentManager/IncidentGroups/IncidentGroupDetail.tsx # openmetadata-ui/src/main/resources/ui/src/components/observability/IncidentManager/IncidentGroups/IncidentGroupDrawer.tsx # openmetadata-ui/src/main/resources/ui/src/components/observability/IncidentManager/IncidentGroups/IncidentGroupsView.test.tsx # openmetadata-ui/src/main/resources/ui/src/components/observability/IncidentManager/IncidentGroups/useIncidentGroupIncidents.ts
…t table The group rows sent a severity change and decided who may edit a row with their own copies of what the incident table already does. Both now go through shared helpers: one sends the severity patch and toasts a failure, the other reads EditStatus on the row's test case.
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
|
| Count | Rule |
|---|---|
| 2 | openmetadata-imports/no-lower-layer-page-imports |
| 1 | openmetadata-imports/review-sequential-api-calls |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/IncidentManager/IncidentManagerTable.component.tsx:34:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/IncidentManager/useIncidentActions.ts:21:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/IncidentManager/useIncidentActions.ts:89:27 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed…eshParmar11/incident-inline-actions
…eshParmar11/incident-inline-actions
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Group rows add permission-gated status transitions and severity updates. Enables editing incident status and severity directly from incident rows in the drawer and drill-down, with inline status and severity chips for authorized users. Resolving the last incident on a page now steps back to the previous page. High test coverage (99.63% statements) and Playwright tests included. ✅ 1 closed✅ Edge Case: Resolving the last incident on a page leaves an empty page
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
Combined into #34599, which carries the whole grouped incident manager (backend and frontend) as one PR against |



Describe your changes:
Was for #34594 — superseded by #34599
Incidents can be changed from their rows in the group drawer and drill-down again.
Retiring the flat list (#30420) removed the only place an incident could be changed without opening its test case. Incident rows in the drawer and the drill-down now carry the same core chips the incident table uses:
Who sees them:
EditStatuson the incident's test case.After a change:
Type of change:
High-level design:
IncidentListreads each row's test case permission with the existinguseIncidentRowPermissions, under the same rule the incident table uses (EditStatus, falling back toEditAll).InlineTestCaseIncidentStatus(core) andInlineSeverity(core). A severity change is a JSON patch on the incident record.onIncidentChangegoes up through the drawer and the drill-down to the view'srefresh.useIncidentGroupIncidentsgains arefresh.Tests:
Use cases covered
Unit tests
IncidentList.test.tsx,IncidentGroupDrawer.test.tsx,IncidentGroupDetail.test.tsx,IncidentGroupsView.test.tsx.jest --coverage, limited to this PR's files):Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/AIMode/IncidentGroups.spec.ts: change one incident's severity from the drawer and check the record through the API. The four incident specs pass 19/19 against a server built from this branch.Manual testing performed
/observability/incident-manager.UI screen recording / screenshots:
TODO: attach a recording (opened as draft until it is added).
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.