Skip to content

Fix IncidentGroups spec for assigned incidents returning to Ack - #38265

Merged
shah-harshit merged 1 commit into
mainfrom
shah-harshit/incidentgroups.spec.ts-fix
Nov 20, 2026
Merged

shah-harshit merged 1 commit into
mainfrom
shah-harshit/incidentgroups.spec.ts-fix

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Test-only fix, so no linked issue.

The nightly AUT run (openmetadata-nightly #44638993481) failed IncidentGroups.spec.ts:373, "leaves assigned incidents as they are when acknowledging", on the first attempt and both retries.

RCA: #37613 made Assigned → Ack a valid incident transition: it clears the assignee (ADR:2026-11-17-returning-incidents-to-triage-clears-assignees). It updated the bulk-entry unit tests but not this spec, which still waited for the "No incident in the selected groups can take that change" toast. The run's trace shows the bulk PUT .../testCaseIncidentStatus/bulk returning 200 with numberOfRowsPassed: 2, and the assignee-filtered list empties because both incidents lose their assignee.

Fix: the test now asserts the new behaviour, and is renamed to match: the bulk Ack updates both assigned incidents (Incidents updated: 2), and each one ends up Ack with no assignee. A stale comment in playwright/utils/incidentGroups.ts that called the New incident "the one incident here Ack can move" is also corrected.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Bulk-acknowledging a group of assigned incidents moves them to Ack and clears their assignee.

Checks run locally

  • eslint and prettier --check on the changed files: pass
  • yarn lint:playwright: 0 errors
  • yarn test:eslint-rules and generate-playwright-rule-table.mjs --check: pass

Playwright (local)

  • Spec: playwright/e2e/Features/AIMode/IncidentGroups.spec.ts, project chromium, retries 0
  • Result: ✅ 12 passed · ❌ 0 failed · 🟡 0 flaky (plus setup, entity-data-setup and entity-data-teardown; 14 passed, 2.0m)
  • Includes the updated test: returns assigned incidents to Ack and clears their assignee ✓ (42.3s)
  • Commit tested: 97655a03ff8
  • Backend: server built from this branch (openmetadata-dist 2.0.0-SNAPSHOT) on MySQL 8 + Elasticsearch 9.3 (Docker); frontend: Vite dev server from this branch (localhost:3000)

🤖 Generated with Claude Code

#37613 made Assigned -> Ack a valid transition that clears the assignee,
but the spec still expected the bulk Ack to change nothing.
@shah-harshit
shah-harshit requested a review from a team as a code owner November 20, 2026 05:35
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 20, 2026
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 20, 2026
@shah-harshit shah-harshit self-assigned this Nov 20, 2026
@gitar-bot

gitar-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The PR only updates a Playwright spec to match existing Assigned-to-Ack behavior and fixes a stale comment; runtime behavior is unchanged.

Updates the IncidentGroups spec so bulk-acknowledging assigned incidents is expected to move them to Ack and clear their assignee, matching the new transition behavior. 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

@shah-harshit
shah-harshit enabled auto-merge (squash) November 20, 2026 05:53
@shah-harshit
shah-harshit merged commit 16152fd into main Nov 20, 2026
50 checks passed
@shah-harshit
shah-harshit deleted the shah-harshit/incidentgroups.spec.ts-fix branch November 20, 2026 05:54
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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants