Skip to content

Fixes 35734: Show the column and field on activity feed items for a column - #35770

Merged
chirag-madlani merged 9 commits into
mainfrom
chirag-madlani/feed-field-path
Oct 20, 2026
Merged

chirag-madlani merged 9 commits into
mainfrom
chirag-madlani/feed-field-path

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #35734

A conversation started on a column (stored as <#E::table::<fqn>::columns::<col>::description>) showed only the table in the activity feeds, so an @mentioned owner couldn't tell which column it was about.

  • Both feeds now name the column and field, following the design: [table] v_order_details › [column] last_name › Description. The table and column are links and the field is a label. A shared FeedFieldPath component renders this part after the entity link in both the Classic Activity Feeds & Tasks card (list and detail pane) and the AI Inbox card.
  • Column-level activity events use the same path but stop at the column, because their header already names the field ("updated Description for…").
  • The table's Activity Feeds tab now lists conversations on its columns. The list and the tab/count requests pass includeFields=true (already supported by GET /conversations); before, an exact about match left them out of the table's feed and its count.
  • Other child fields (a pipeline task, a chart, a topic schema field: <group>::<child>::<field>) show the child's name, unlinked, and the field. Nested columns (columns::"address.city") are shown and linked by their unquoted name.

Not in scope: the issue's second ask, an indicator on the Columns tab for columns that have a conversation. That needs a per-field conversation count.

Type of change:

  • Bug fix

High-level design:

Not applicable: UI-only bug fix with no new API, schema or architecture change. The one shared piece is components/ActivityFeed/Shared/FeedFieldPath/ (component plus a pure entity-link parser), which both feed cards render after their own entity link.

Tests:

Use cases covered

  • A conversation on a column shows table › column › Description on the Classic list card and detail pane, and on the AI Inbox card.
  • A column-level activity event shows table › column, without repeating the field.
  • A conversation on the entity itself shows no path.
  • A table's Activity Feeds tab lists conversations on its columns, and its count includes them (entity detail pages, getFeedCounts, fetchEntityActivityCountInto).
  • A non-column child (tasks::load_orders::description) is named as the child, not as a field. A nested column is unquoted.

Unit tests

  • Added/updated: FeedFieldPath.utils.test.ts (new), ActivityFeedcardNew.component.test.tsx, ActivityFeedItem.test.tsx, ActivityFeedProvider.test.tsx, ActivityFeedTab.component.test.tsx, FeedUtilsPure.getFeedCounts.test.ts.
  • Coverage on the new files: FeedFieldPath.utils.ts 100% lines / 100% branches; FeedFieldPath.tsx 100% lines / 92.9% branches.
  • Ran src/components/ActivityFeed, src/components/discovery/personal-space, src/utils/FeedUtils*, src/rest/conversationsAPI, src/components/NotificationBox: 225 suites, 2087 tests passed.

Backend integration tests

  • Not applicable (no backend change; includeFields already exists on GET /api/v1/conversations).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Added playwright/e2e/Features/ActivityFeedFieldPath.spec.ts. It seeds a conversation on a column that @mentions an isolated admin, checks the column and field on the table's Activity Feeds card, and checks them on the Inbox Mentions card.
  • Ran locally against a production build of this branch (merged with main at 24a7d41), with /api proxied to a local server:
    • ActivityFeedFieldPath.spec.ts, AIMode/InboxActivity.spec.ts, ActivityFeed.spec.ts, ActivityFeedTabBadge.spec.ts, ActivityStream.spec.ts, Tasks/ActivityFeed.spec.ts: 46 passed.
    • ActivityFeedFieldPath.spec.ts --repeat-each=3: 6 passed.
  • Not run: the rest of the 52 specs make playwright_affected selects (the Tasks, DomainIsolation and search suites the feed code maps to); the merge queue runs them.

Manual testing performed

  1. On a local stack (OSS main + this branch's UI), created column conversations through POST /api/v1/conversations with about set to a column's description link, and changed a column description through the table PATCH API.
  2. Classic: on the table's Activity Feeds & Tasks tab, the conversation and the description change appear (the count went from 1 to 3) with the path shown above. The detail pane matches the list card.
  3. AI mode: in Inbox → Activity (All and Mentions), both cards show the path, in light and dark themes.
  4. Before the fix, the same conversation showed only v_order_details (devrel), and on OSS main it didn't appear on the table's Activity Feeds tab at all.

Classic: Activity Feeds & Tasks list cards, with the conversation selected in the detail pane

feed-field-path-classic
AI Inbox: light AI Inbox: dark
feed-field-path-ai-inbox feed-field-path-ai-inbox-dark

In each, one item is a column description change (the path stops at the column) and the other is a conversation on that column (the path adds the field). In the narrow Classic list card, long names truncate; the detail pane shows the full path.

UI screen recording:

Not applicable: standalone bug fix to an existing feed header, not a feature. Screenshots above show the result in Classic and AI mode, light and dark.

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation>

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.

  • I have commented on my code, particularly in hard-to-understand areas.

  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed. (No schema changes.)

  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.

    • Reviewed fecc5740923. The first pass's 🔴 was fixed (a non-column child was read as the field). Its 🟡s were fixed too: tests for every includeFields count call, nested-column quoting, and Inbox isolation.
    • Open 🟡, answered: columns::"a.b" is the same link for a top-level column literally named a.b and for nested a › b. The path takes the nested reading, the common case, so a top-level dotted column's link misses its panel.
  • Decision check: no durable decision (no new contract, default, limit or ordering).

  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new blocking issue was found.

Summary

Both feeds now show the column and field after the entity link. Entity feeds and counts also include conversations on child fields.

  • Feed cards show the column and field a conversation is about.
  • Table activity feeds include conversations attached to fields.

Reviews (4) · Last reviewed commit: "refactor(ui): lay out the feed header en..." · Reviewed by Greptile

A conversation started on a column description is stored as
<#E::table::<fqn>::columns::<col>::description>, but the feeds only showed
the table:

- Classic Activity Feeds & Tasks card and detail pane now append the field
  path after the entity link (table › columns › col › Description), like the
  conversation side panel.
- AI Inbox card passes the conversation's link to getEntityTarget, so it
  reads table.column and links to the column, as activity events already do.
- The entity Activity Feeds tab and its count request includeFields, so
  column-level conversations are listed under their table at all.
Follows the design for field-level feed items: the table link, then the
column (column icon, linked) and, for a conversation, the field it was
started on (e.g. Description). Activity events stop at the column, since
their header already names the changed field.

A shared FeedFieldPath renders the trail after each card's own entity link,
in the Classic Activity Feeds & Tasks card and the AI Inbox card, and
replaces the earlier columns › name › field path.
A conversation on a pipeline task, chart or schema field links as
<group>::<child>::<field>; the path read the child as the field. Name the
child (linked only for a column) and its field, and add the Playwright spec
for a column conversation on the table Activity Feeds tab and the Inbox.
A nested column links as columns::"address.city"; show and link it by its
unquoted fqn. Cover the field-inclusive count in fetchEntityActivityCountInto,
and read the spec's Inbox card from the worker's own Mentions.
Copilot AI balanced review requested due to automatic review settings October 19, 2026 15:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 962 → 963
- 1 added, 0 removed, 8 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/Shared/FeedFieldPath/FeedFieldPath.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/constant/config.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/isolatedUser.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/inbox.ts
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/ActivityFeedItem.tsx
  openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

Copilot AI balanced review requested due to automatic review settings October 19, 2026 15:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 78%
78.74% (125813/159767) 64.73% (43604/67354) 68.01% (25126/36944)

Copilot AI balanced review requested due to automatic review settings October 20, 2026 04:26
@chirag-madlani
chirag-madlani requested a review from a team as a code owner October 20, 2026 04:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chirag-madlani chirag-madlani added the To release Will cherry-pick this PR into the release branch label Oct 20, 2026
Main now renders the Data Health legends as tiles and the slimmer left rail
(dark-mode polish and sidebar changes merged on 2026-10-19), so every PR's
visual-regression run failed on data-quality. The new baseline is CI's own
render in the pinned Playwright container (identical on both attempts).
Copilot AI balanced review requested due to automatic review settings October 20, 2026 06:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 4 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 4 warning(s) across 1 changed file(s).

Count Rule
2 react-hooks/exhaustive-deps
2 openmetadata-imports/review-sequential-api-calls
All findings
Location Rule Message
🟡 src/components/ActivityFeed/ActivityFeedProvider/ActivityFeedProvider.tsx:485:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'setActiveThread'. Either exclude it or remove the dependency array.
🟡 src/components/ActivityFeed/ActivityFeedProvider/ActivityFeedProvider.tsx:540:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'setActiveThread'. Either exclude it or remove the dependency array.
🟡 src/components/ActivityFeed/ActivityFeedProvider/ActivityFeedProvider.tsx:640:15 openmetadata-imports/review-sequential-api-calls Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent
🟡 src/components/ActivityFeed/ActivityFeedProvider/ActivityFeedProvider.tsx:641:15 openmetadata-imports/review-sequential-api-calls Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

… core Box

Review feedback: replace the hand-rolled span/div flex wrappers with Box. The
one-line clamp moves onto the link itself, since Box's flex display no longer
lets the old max-one-line container clamp the name.
Copilot AI balanced review requested due to automatic review settings October 20, 2026 06:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gitar-bot

gitar-bot Bot commented Oct 20, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Including field-level conversations in entity feeds and parsing their links could surface unrelated child discussions or mislabel columns if path handling is wrong.

Adds a shared FeedFieldPath component so conversations on a column show table › column › field in both the Classic Activity Feeds card and the AI Inbox card, and the table's Activity Feeds tab now includes conversations on its columns via includeFields=true. 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

@sonarqubecloud

Copy link
Copy Markdown

@chirag-madlani
chirag-madlani added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 7848ae6 Oct 20, 2026
89 of 90 checks passed
@chirag-madlani
chirag-madlani deleted the chirag-madlani/feed-field-path branch October 20, 2026 09:57
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Backport to 2.0 failed. The conflict could not be resolved, so this change is not on that branch. Resolver run.

harsh-vador added a commit that referenced this pull request Oct 21, 2026
…olumn [Backport #35770 - 2.0] (#35859)

* Fixes 35734: Show the column and field on activity feed items for a column [Backport #35770 - 2.0]

A conversation started on a column description is stored as
<#E::table::<fqn>::columns::<col>::description>, but the Activity Feeds &
Tasks card and detail pane showed only the table. They now append the field
path after the entity link: table › [column] col › Description. Activity
events stop at the column, since their header already names the field.

Adapted for 2.0:
- The AI Inbox card, the conversations API includeFields flag and the
  data-quality visual baseline are main-only and are not carried over. 2.0's
  /v1/feed list already matches field-level threads by FQN-hash prefix.
- Icons come from @untitledui/icons and the column SVG asset, since 2.0's
  core components have no icons export; Typography has no color prop on 2.0.
- The Playwright spec seeds the thread through /api/v1/feed and checks the
  table Activity Feeds tab only.

(cherry picked from commit 7848ae6)

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

---------

Co-authored-by: Chirag Madlani <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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 To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Activity Feed: conversations on a column/field show only the asset, not the field path

3 participants