Skip to content

[2.1] Fixes 35006: ActivityFeed: the Inbox's Activity and Tasks on every entity page (backport 2.1 #34820) - #38652

Open
harsh-vador wants to merge 8 commits into
2.1from
backport/34820-to-2.1
Open

harsh-vador wants to merge 8 commits into
2.1from
backport/34820-to-2.1

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #35006

Backport of #34820 to 2.1, so the 2.1.x Inbox and entity Activity Feeds & Tasks tab behave exactly as on main.

#34820 was built on top of main changes that never reached 2.1, so this PR carries them too, one commit each, in the order they landed on main:

Commit Source What it brings
1 #38233 Incident assignee kept on resolution, @mentions in task/incident comments notify, and those mentions show in the Inbox Activity feed (backend + UI).
2 #38431 Follow-up to #38233: the task comment dialog no longer crashes when it closes (removeChild on BlockMenu/TableMenu unmount).
3 #38543 Follow-up to #38233: TaskChangeEventIT expects the resolution note's comment event.
4 #38573 Inbox seen-mark: a capped feed only clears the unread badge when its cut predates the last visit.
5 #34820 The Inbox's Activity and Tasks on every entity page (AI mode).

Commits 1–4 cherry-picked cleanly (only impact-map.generated.json needed regenerating). Commit 5 is #34820's diff against main, applied as is. Every Inbox, activity-feed, BlockEditor, RichTextEditor and NotificationBox file is byte-identical to main + #34820.

Merge after #34820 lands on main.

Follow-up commits, mirroring #34820:

  • c642edaeea5: the entity tab label counts the feed only once the tab has been opened (no feed requests on page views that never open it), and a failed read hides the count instead of showing 0. It also restores the entity-scoped TasksTab tests and tightens the useTaskQueue request assertions.
  • 3e9832ff1f4: the Playwright column-link spec opens the tab through its deep link, and a new spec checks that a page view reads no feed until the tab is opened.
  • 7c137cab0fb: ADR amendment for the Resolved incident assignee snapshot (from review).

Also carried from #34820: [EntityType.WORKSHEET]: 2 is removed from FQN_PARENT_LEVEL_BY_TYPE, since a worksheet's FQN depth varies. This changes FQN splitting for every worksheet page.

backport-2 1-walkthrough 02-entity-mentions 05-incident-resolve-dialog 03-entity-tasks 06-incident-resolved 04-inbox-task-mention 01-entity-activity 00-playwright-report-2 1 playwright-report-backport-38652

Type of change:

  • Bug fix
  • New feature

Tests:

All run on this branch, against a local 2.1.1 server built from this branch (fresh database, om21 index prefix).

Unit tests

  • tsc: only the existing 2.1 errors (SSOUtils.test.ts, OMSelectWidget.tsx), none in changed files.
  • jest --findRelatedTests on the 120 changed UI files: 1511 suites, 19956 tests passed.
  • Java: TaskListOrderTest, TaskRepositoryLifecycleEventTest 11/11 passed.
  • organize-imports / eslint / prettier on changed files: clean. check_decision_records.py: clean.

Backend integration tests

AutoCloseIncidentIT, IncidentTaskIntegrationIT, TaskChangeEventIT, TaskCommentsIT, TaskResourceIT, IncidentTaskNotificationIT: 372 run, 0 failures (31 skipped by design).

Ingestion integration tests

N/A: no ingestion changes.

Playwright (UI) tests

20 specs covering the entity feed, Inbox activity and tasks, task comments and navigation, the classic Activity Feed tab, incidents, profile and landing-page My Tasks: 205 passed, 2 failed, 6 skipped.

The 2 failures need services a local stack doesn't have, and fail the same way without this PR:

  • Dashboards.spec.ts:189: needs the sample_superset sample data (404 on a fresh database).
  • IncidentManager.spec.ts:521 (@ingestion): needs a pipeline service; the 6 skipped are the rest of its serial block.

A first run without commits 2–3 crashed the incident-resolve and reject dialogs (removeChild). That is what #38431 fixes, and those tests pass with it.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.

🤖 Generated with Claude Code

olivaw-build Bot and others added 5 commits November 25, 2026 11:02
…Mentions Not Triggering Notifications (#38233)

* Recover stored changes from att-3938b697fd3048ab

* Fix CI formatting, generated models, and deletion test isolation

* Fix mention selection in incident resolution comments

* Keep incident mention editors compact and verify resolution flows

* Show incident resolution mentions in the Inbox

* Preserve task edits and render closed resolution notes

* Keep recent task mentions visible and unread until shown

* Preserve incident resolution history and notification state

* Open incidents directly from mention notifications

* Address Greptile feedback on incident mentions and links

---------

Co-authored-by: olivaw <harness@olivaw.local>
Co-authored-by: TeddyCr <teddy.crepineau@gmail.com>
(cherry picked from commit 78e4716)
…when it closes (#38431)

* fix(ui): stop the task comment dialog crashing when it closes

BlockMenu and TableMenu hand their root node to tippy with
menuRef.current.remove(), but React still owned that node. When the editor
turned read-only while staying mounted, React unmounted the menus and called
removeChild on a node that had moved, throwing NotFoundError and blanking the
page. The task action dialog sets readonly={isLoading}, so every Reject,
Resolve and Revoke with a comment hit it after #38233 moved that dialog to the
rich text editor.

Both menus now render inside a wrapper div that stays in place, so React only
ever removes the wrapper. The TableMenu test no longer needs its safeUnmount
workaround and gains a regression test for unmounting under a live parent.

Update the specs #38233 left behind:
- IncidentManager: wait for and type into the rich text comment editor
  instead of a textarea.
- DataQuality: View incident now opens /issues?taskId=<id>.

* test(ui): cover BlockMenu unmounting under a live parent

BlockMenu.test.tsx mocks React's hooks, so it never ran the effect that hands
the menu node to tippy and could not catch the removeChild crash. Add a
separate test that renders the real component and fails without the wrapper.
Drop the leftover safeUnmount alias from TableMenu.test.tsx.

* test(ui): lower the recorded positional-locator suppression count

The IncidentManager spec dropped four .first()/.nth() locators, so the
suppressions baseline went from 528 to 524 no-positional-locator entries.
corpus.test.mjs pins that total exactly and failed UI Checkstyle.

(cherry picked from commit f3f9227)
…ntIT (#38543)

#38233 posts an incident's resolution note as a task comment and stores a
second entityUpdated event for it, so mentions in the note notify. The
legacy incident test resolves with a note and still expected one event on
resolution, so it failed on every main run with "expected: <1> but was:
<2>". It now expects two: the InProgress -> Completed status change and the
comment carrying the note.

(cherry picked from commit 3d27e23)
…unread badge (#38573)

* Fixes #38568: Inbox Activity seen-mark stamps on capped feed, wiping unread badge

* fix(ui): stamp the inbox seen-mark on a capped feed when its cut predates the last visit

Skipping the stamp on every capped feed left the All tab, which is capped
in any active org, unable to clear the badge, and left a first visit
without a mark. A capped feed hides only what is older than its cut, so it
still shows every unread mention when the cut is at or before the mark.

---------

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: Harsh Vador <harsh.vador@somaiya.edu>
(cherry picked from commit 3ee6ef4)
…ery entity page

Backport of #34820 to 2.1, on top of the #38233 and #38573 backports so the
Inbox behaves as it does on main.
@harsh-vador harsh-vador added the UI UI specific issues label Nov 25, 2026
@harsh-vador
harsh-vador marked this pull request as ready for review November 25, 2026 06:39
@harsh-vador
harsh-vador requested review from a team as code owners November 25, 2026 06:39
@harsh-vador
harsh-vador requested review from Rohit0301 and harshach and removed request for a team November 25, 2026 06:39
@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.

… show a failed count as 0

- The tab label keeps the page's count until the Activity Feeds & Tasks tab is
  opened, so a page view that never opens it no longer reads the feed.
- A failed activity or task-count read hides the count instead of adding 0.
- Restore the entity-scoped TasksTab tests, assert the whole request for the
  entity and assignee scopes, and drop the scan-cap test that could not tell
  the #35054 fix from the old formula.
@gitar-bot

gitar-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk 1 closed / 1 findings

Task comment writes now lock and transact shared task records; concurrency or transaction regressions could lose comments or leave incident-resolution data inconsistent.

Backports the Inbox Activity and Tasks tab on entity pages to 2.1, along with prerequisite incident assignee retention, @mention notifications, and task comment dialog fixes. One previously flagged item was resolved: the resolved incident assignee snapshot now has a documented decision record. No open issues found.

✅ 1 closed
✅ Quality: Resolved incident assignee snapshot is a new contract with no record

📄 openmetadata-spec/src/main/resources/json/schema/tests/resolved.json 📄 openmetadata-service/src/main/java/org/openmetadata/service/events/lifecycle/handlers/IncidentTcrsSyncHandler.java:64-69 📄 openmetadata-service/src/main/java/org/openmetadata/service/events/lifecycle/handlers/IncidentTcrsSyncHandler.java:208-209 📄 openmetadata-service/src/main/java/org/openmetadata/service/events/lifecycle/handlers/IncidentTcrsSyncHandler.java:236-241 📄 openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseResolutionStatusRepository.java:638-648 📄 openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseResolutionStatusRepository.java:1022-1033
This PR adds an assignee field to the Resolved details JSON Schema, and the TCRS mirror now writes the task's first assignee into every Resolved record. extractAssignee and cleanUpAssignees also now treat that value as a fixed snapshot: deleting a user only rewrites the latest Assigned record of the current incident. This is a new schema field and payload shape that Python and TS consumers, the incident index, and the assignee aggregation (ADR:2026-10-29-incident-assignee-filter-lists-aggregated-assignees reads testCaseResolutionStatusDetails.assignee.id) all have to agree on. No record in docs/decisions/ states it. The description gives the rule only in prose ("incident assignee kept on resolution"), and the repo squash-merges, so that wording won't survive.

The record would say: "A Resolved test-case resolution status carries the incident's assignee at the moment of resolution in testCaseResolutionStatusDetails.assignee. It is a frozen snapshot: later task edits and user-deletion cleanup do not rewrite it, and only the current incident's latest Assigned record is cleaned up when its assignee is deleted." You could add this as an amendment to ADR:2026-11-17-resolved-incidents-are-final.

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

This branch has not been deployed

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

Labels

UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants