Repository navigation
Incident groups related-entity column, sub-line and table cells (superseded by #34599) - #34590
ShaileshParmar11 wants to merge 34 commits into
Conversation
Add the filter row of the design above the incident groups (test case, assignee, open statuses, date field and date range) and page the groups on the endpoint's opaque cursors. - Filters persist in the query string under the params the incident listing on the same page already reads, so one filter set drives both; the listing's own FilterBar is removed. - Any change to the filters, dimension, ordering or page size starts over from the first page; a background refresh keeps the current page. - Cursors are passed back verbatim as `offset`, never decoded. - Empty and error states move to the core EmptyPlaceholder. - DqDateRangeFilter gains an opt-in `fullWidth` so the range trigger spans its field like the inputs beside it.
- The pager jumps to the page picked, through the new `page` parameter, instead of stepping one page towards it. - The assignee filter searches users and teams, lists them on open, and names a selected assignee by display name, also after a reload. The test case search waits for a pause in typing. - Filters that match nothing say so and offer to clear them, instead of the "no active incidents" placeholder. - A failed read offers Retry, and raises a toast only when the rows stay on screen. - The loader keeps the section's height, so the page does not jump.
…lk severity - Group rows carry `tableCount`/`tables` and `testDefinitionCount`/ `testDefinitions`: the related entities the group's open incidents span, ranked by how many incidents carry them and capped at five, with exact counts. - The flat incident listing takes `unowned=true` to list the "No Owner" group's incidents, and `dateField` (createdAt|updatedAt) to apply the range to the incidents themselves, as the groups do, so a drill-down lists exactly what its group counted. - A bulk entry that keeps an open incident's status now only updates its severity instead of being silently skipped; an entry that changes nothing, or sends an open incident back to New, is reported as a failure rather than counted as applied. - A severity PATCHed on an incident's latest record now reaches the denormalized incident row the groups read their severity from.
A bulk entry that keeps an assigned incident with the same assignee only edits its severity, but the assignee was compared by name. An entry naming the assignee by id alone fell through to a reassign the workflow treats as a no-op, so the severity was dropped while the entry was reported as applied.
An Assigned request may name its assignee by id or name alone, and the record kept that partial reference. The incident lists then had no name to show, and the incident groups, which count assignees by name, left the assignee out. The mapper now resolves the reference before the record is written.
A test case is in its table's domain, but that domain is resolved at read time and leaves no relationship on the test case. The incident groups only matched a domain set on the test case itself, so in a domain scope they listed nothing for the usual test case. The flat listing ignored the domain parameter altogether, so a drill-down from a domain-scoped group listed incidents from every domain. Both now match the domain on the test case or on its table, found by the table's fqnHash prefix of the test case's.
The latest-record listing filters status and assignee on each incident's latest record, but its count filtered them before ranking. An incident resolved since still counted through its earlier open record, so the drill-down pager reported more incidents, and pages, than it listed. The count now applies the same outer filter, on a copy of the filter the listing reads afterwards.
The groups and the incident listing only handed out next and previous cursors, so a pager could not jump to a page or reach the last one. Both take a 1-based `page` now, turned into the cursor's offset on the server. Groups named their assignees by name only, which leaves a client unable to tell a user from a team, or to show a display name. They now also carry assigneeReferences, resolved in one lookup per page.
A drill-down link carries its group's key and nothing else, and the group may sit on any page of the listing. The groups endpoint now takes `group` to return just that group, matched on the key the dimension groups by — the table FQN, the test definition or owner id, or empty for the unowned bucket — so it counts exactly what the full listing counts.
Replace the per-row dimension badge, which read the same on every row,
with the design's related-entity column and sub-line:
- Test definition groups count their tables ("3 tables") and list them
under the group name.
- Table and owner groups count their check types ("3 types"), or name the
only one; table groups list their check types, owner groups their tables.
- Counts come from the server's exact `*Count` fields, never from the
capped arrays.
Header stats follow the design too: a bold count over a plural-aware
"groups" label, and a red trend icon next to the recurring count. The
`label.group-count`/`label.recurring-count` keys they replace are removed.
The groups ignored the domain picked in the app nav while the incident listing below them honoured it. Pass it as the endpoint's `domain` filter; a domain change starts over from the first page.
…nents The related sub-line had no bound, so a group spanning many tables widened the table to twice the screen and pushed every column after the name off it. The name cell is now capped and both lines truncate, with the full name and the FQN of each related entity on hover, which also tells same-named tables in two services apart. Assignees use the core owner stack on the resolved references: a hover card per avatar, a +N that lists the rest, and no profile lookup by name, which 404'd for every team. Severity is a read-only badge instead of a disabled button, the count is a round pill, the status bar is one continuous track with a caption that does not wrap, and the last-seen date no longer competes with the group name.
❌ 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 |
A background refresh that came back empty stepped back a page, but the read of that page ran in the foreground: had it failed, the rows on screen were wiped for the error state instead of staying with a toast. The step-back now reads the earlier page the way the refresh was read.
…mar11/34549-incident-groups-backend
…aileshParmar11/34550-related-entities-ui
Hand the navigation back from the filter change instead of leaving it floating, test the status against its options with includes, and dedupe it with a Set.
…mar11/34549-incident-groups-backend
…aileshParmar11/34550-related-entities-ui
The test case filter searched through a debounced call whose responses landed in whatever order they came back, so an older, slower search could replace the results of a newer one. The search now runs as one query per debounced text, as the assignee picker does, and closing the menu drops the pending text. Each filter caption now labels the group its control sits in, so a trigger that shows only the picked value is still announced with its field.
…mar11/34550-related-entities-ui
The groups count, the recurring count and the related tables and check types badge were built as a number followed by a singular or plural word. That only fits languages with two forms: Russian reads "2 групп" where it needs "2 группы", and Arabic has its own dual. They now use i18next plural keys with the count inside the message, translated per locale, and the number keeps its emphasis through Trans. Every locale carries all six plural forms, since the locale sync only knows the older plural format and would drop a form English does not have. The word-only keys this PR had added are removed.
- Resolve group assignees whatever case the incident row keeps their name in: users are looked up by their lowercased FQN and mapped back to the row's own name. - Only accept a user or a team as an incident assignee; any other type is rejected with 400. - Match a domain the test case's table inherits from its schema, database or service, in the groups and the flat listing. - Bind dateField as an enum and move the date range and owner/unowned handling of the flat listing into the repository. - Rank each group's related tables and test definitions in SQL so the page is bounded by its groups, not their incidents, and keep incidents whose test case lost its definition relationship in the counts. - Make the dateField IT fail when the range is applied to the wrong column.
…mar11/34549-incident-groups-backend
…aileshParmar11/34550-related-entities-ui
…ad of overriding its button
…mar11/34549-incident-groups-backend
…aileshParmar11/34550-related-entities-ui
…mar11/34549-incident-groups-backend
…aileshParmar11/34550-related-entities-ui
Code Review ✅ Approved 2 closed / 2 findings🟡 Medium risk · Incident-group listings add domain filtering and related-entity table details. Adds related-entity column, sub-line, and status breakdown to the incident groups table with core components for assignees, severity badge, and status bar; names and sub-lines truncate with hover tooltips showing full details. Consider translating the ✅ 2 closedClosed: Quality: Count + singular/plural concatenation breaks plurals in many locales
Closed: Quality: Assignee +N popover shows untranslated 'Teams'/'Users' headings
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 #34550 — superseded by #34599
The group table's related-entity column and sub-line, and the cells drawn with core components.
Badge, not a disabled button.Type of change:
High-level design:
IncidentGroupsTablerenders every cell from the group payload; it fetches nothing.IncidentSeverityBadge(coreBadge, one colour per severity) is shared with the incident rows in Drill-down view + preview drawer #30418.AvatarGrouponassigneeReferences(from Incident groups backend: related entities, drill-down parity, bulk severity #34549).Tests:
Use cases covered
Unit tests
IncidentGroupsTable.test.tsx,IncidentGroups.utils.test.ts,IncidentGroupsView.test.tsx.jest --coverage, limited to this PR's files):Backend integration tests
Ingestion integration tests
Playwright (UI) tests
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.