Skip to content

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

Merged
harsh-vador merged 2 commits into
2.0from
fix/feed-field-path-2.0
Oct 21, 2026
Merged

harsh-vador merged 2 commits into
2.0from
fix/feed-field-path-2.0

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #35734

Backport of #35770 to 2.0.

Bug: a conversation started on a column description is stored as <#E::table::<fqn>::columns::<col>::description>. The Conversations side panel shows it as columns › account_id › Description, but the Activity Feeds & Tasks card and detail pane only say "posted on dim_accounts". 2.0 has the same ActivityFeedCardNew header, so it has the same bug.

Fix (same as #35770): a shared FeedFieldPath renders the trail after the card's entity link: table › [column] col › Description. Activity events stop at the column, because their header already names the changed field. Nested columns (columns::"address.city") are unquoted, and a non-column child (pipeline task, chart, schema field) is named but not linked.

What differs from #35770 on 2.0:

  • Not carried over: the AI Inbox card (InboxPage/ActivityFeedItem), the /conversations includeFields flag and its count requests, and the data-quality visual baseline. None of these exist on 2.0. 2.0's /v1/feed list already returns field-level threads under their entity, because it matches the thread's toFQNHash by prefix.
  • Icons: 2.0's core components have no /icons export, so the separator is ChevronRight from @untitledui/icons and the column icon is the existing assets/svg/entity/column.svg. That is the same SVG Assets.constants uses for columns.
  • Typography: 2.0's Typography has no color prop, so the field label uses tw:text-secondary.
  • Playwright: the spec seeds the thread through /api/v1/feed (not /api/v1/conversations), uses the admin storage state (2.0 has no isolatedUser fixture), and checks the table Activity Feeds tab only.

Before:

before-activity-tab

After:

after-activity-tab

Type of change:

  • Bug fix

Tests:

Unit tests

  • FeedFieldPath.utils.test.ts, as on main.
  • ActivityFeedcardNew.component.test.tsx: the field path for a column conversation, column-only for a column activity event, and nothing for an entity-level conversation.
  • src/components/ActivityFeed on 2.0: 36/36 suites, 239/239 tests pass. eslint and prettier are clean, and tsc reports no errors in the touched files.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Added playwright/e2e/Features/ActivityFeedFieldPath.spec.ts, adapted for 2.0. Not run locally: I don't have a 2.0 server running here, so CI will be its first run.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 4/5

The required component filename and props file layout must be corrected before merging.

Findings

  1. P2 Component files break required layout ▶

Summary

Adds a column and field trail after the entity name on activity feed cards.

  • Activity cards show which column and field a conversation is about.

Reviews (1) · Last reviewed commit: "chore(playwright): auto-refresh impact-m..." · Reviewed by Greptile

…olumn [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)
@harsh-vador
harsh-vador requested a review from a team as a code owner October 21, 2026 09:21
@harsh-vador harsh-vador added the UI UI specific issues label Oct 21, 2026
@harsh-vador
harsh-vador removed the request for review from a team October 21, 2026 09:21
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Oct 21, 2026
@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.

@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: 567 → 568
- 1 added, 0 removed, 1 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/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

@pmbrull
pmbrull requested review from a team, akash-jain-10, harshach and tutte as code owners October 21, 2026 09:21
@harsh-vador harsh-vador self-assigned this Oct 21, 2026
@gitar-bot

gitar-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Parsing feed links to add column paths could produce misleading labels or navigate users to the wrong column when paths are unexpected.

Adds a shared FeedFieldPath that renders the column and field trail (table › column › Description) after the entity link on activity feed cards, so column-level conversations show where they apply. Activity events stop at the column, and non-column children are named without links. 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

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.31% (82921/121375) 53.22% (51363/96509) 53.96% (15278/28309)

@sonarqubecloud

Copy link
Copy Markdown

@harsh-vador
harsh-vador merged commit a9b2e1f into 2.0 Oct 21, 2026
119 of 128 checks passed
@harsh-vador
harsh-vador deleted the fix/feed-field-path-2.0 branch October 21, 2026 11:31

This branch was previously deployed

1 inactive deployment
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.

3 participants