Repository navigation
[2.1] Fixes 35006: ActivityFeed: the Inbox's Activity and Tasks on every entity page (backport 2.1 #34820) - #38652
harsh-vador wants to merge 8 commits into
Conversation
…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)
❌ 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 |
… 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.
…and check a page view reads no feed
Code Review ✅ Approved 🔴 High risk 1 closed / 1 findingsTask 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, ✅ 1 closed✅ Quality: Resolved incident assignee snapshot is a new contract with no record
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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 onmain.#34820 was built on top of
mainchanges that never reached2.1, so this PR carries them too, one commit each, in the order they landed onmain:removeChildonBlockMenu/TableMenuunmount).TaskChangeEventITexpects the resolution note's comment event.Commits 1–4 cherry-picked cleanly (only
impact-map.generated.jsonneeded regenerating). Commit 5 is #34820's diff againstmain, applied as is. Every Inbox, activity-feed, BlockEditor, RichTextEditor and NotificationBox file is byte-identical tomain+ #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-scopedTasksTabtests and tightens theuseTaskQueuerequest 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]: 2is removed fromFQN_PARENT_LEVEL_BY_TYPE, since a worksheet's FQN depth varies. This changes FQN splitting for every worksheet page.Type of change:
Tests:
All run on this branch, against a local 2.1.1 server built from this branch (fresh database,
om21index prefix).Unit tests
tsc: only the existing2.1errors (SSOUtils.test.ts,OMSelectWidget.tsx), none in changed files.jest --findRelatedTestson the 120 changed UI files: 1511 suites, 19956 tests passed.TaskListOrderTest,TaskRepositoryLifecycleEventTest11/11 passed.organize-imports/eslint/prettieron 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 thesample_supersetsample 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:
Fixes <issue-number>: <short explanation>🤖 Generated with Claude Code