Skip to content

Fixes 34616: Grouped incidents release-testing fixes (backport 2.1 #36397) - #36450

Merged
ShaileshParmar11 merged 1 commit into
2.1from
backport/2.1/pr-36397
Oct 28, 2026
Merged

ShaileshParmar11 merged 1 commit into
2.1from
backport/2.1/pr-36397

Conversation

@ShaileshParmar11

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #34616

Backport of #36397 to 2.1. The diff is the same as #36397's: the squash commit 53671c0eb27 cherry-picked cleanly onto 2.1 with no conflicts, locale files included.

The fixes come from 2.1.0 release testing of the AI-mode grouped Incident Manager:

  1. Sort is kept in the URL. The groups' order is now sortField / sortType in the page URL, so a reload, Back/Forward or a shared link keeps it. An unknown field or direction falls back to the default on its own. Recorded in ADR:2026-10-28-incident-group-sort-lives-in-the-url.
  2. The inline status menu only offers transitions the workflow accepts. An assigned incident offers Assigned and Resolved only. New, Ack and Resolved incidents offer every status, since a resolved incident is reopened rather than transitioned. The bulk status change and TestCaseStatusModal use the same map (INCIDENT_STATUS_MENU_OPTIONS).
  3. Translations. The group rows' status breakdown, selection bar and filters use plural keys in every locale, and severity reads "Severity N" through t() instead of the raw Severity1.

The two backend issues from the same feedback, group count vs drawer and the classic view listing incidents of deleted test cases, are not in this PR.

The screen recording, screenshots, Playwright report and manual test steps are on #36397.

Type of change:

  • Bug fix

Tests:

Unit tests

On this branch, Jest over observability/IncidentManager, DataQuality/IncidentManager, DataQuality/TestCaseStatusModal and InboxPage/taskStatTiles passes 53 suites, 769 tests. ui-checkstyle on the 32 changed UI files reports 0 errors and leaves no diff.

tsc reports no errors in any file this PR changes. It does report 36 errors elsewhere: my local ui-core-components build is from main, and its API differs from the one 2.1 compiles against. None of those errors are in a file this PR touches.

Backend integration tests

  • Not applicable: UI-only change.

Ingestion integration tests

  • Not applicable: UI-only change.

Playwright (UI) tests

Manual test steps

Same as #36397.

UI screen recording:

Not applicable: this is a backport of a bug-fix PR. The recording is on #36397.

Checklist:

🤖 Generated with Claude Code

…atus menu, translations) (#36397)

* ui(incidents): keep group sort in URL, limit status menu, fix translations

- Keep the grouped view's sort in the URL as sortField/sortType so a
  reload or a shared link keeps the order.
- Offer only the transitions TestCaseResolutionTaskWorkflow allows in the
  inline status menu: an Assigned incident can be reassigned or resolved.
- Use plural keys for the group row counts and status mix, translated in
  every locale, and show severities as the translated label with its level.

* ui(incidents): share severity wording and status transitions with Inbox and status modal

* docs(decisions): record that the incident group sort lives in the URL

* ui(incidents): organise imports

* ui(incidents): share transition map with bulk, tidy sort URL handling

- Bulk status changes now skip any incident whose stage has no edge for
  the new status, using the same INCIDENT_STATUS_MENU_OPTIONS map as the
  inline menu and the status modal.
- One replaceSearch helper writes the group-by, filter and sort params.
  Group-by changes now also stringify with arrayFormat: 'repeat', so array
  filters keep round-tripping as repeated params.
- Cover the independent field/direction fallback of parseIncidentGroupSort,
  add a Playwright test for the sort surviving a reload, query the popover
  Back button by test id, and correct the decision record.

* chore(playwright): auto-refresh impact-map.generated.json

* ui(incidents): organise imports in bulk utils

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 53671c0)
@ShaileshParmar11 ShaileshParmar11 added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Oct 28, 2026
@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner October 28, 2026 11:59
@ShaileshParmar11
ShaileshParmar11 requested review from anuj-kumary and removed request for a team October 28, 2026 11:59
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Restricting incident status menus and bulk updates to workflow-defined transitions could prevent intended status changes if the transition map is incomplete.

Backports the grouped incident sort-in-URL, inline status menu transition filtering, and translation fixes from #36397 to the 2.1 branch. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ShaileshParmar11
ShaileshParmar11 merged commit ec5ea07 into 2.1 Oct 28, 2026
100 of 101 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the backport/2.1/pr-36397 branch October 28, 2026 12:08
@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.76% (131336/164657) 66.27% (46327/69896) 69.23% (26294/37976)

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant