Repository navigation
Fixes 38200: Show when an asset was last updated at its source in the entity header - #38201
Conversation
The data asset header shows lifeCycle.updated, the time the asset last changed at its source as read by metadata ingestion, next to the follow and vote stats. It shows as relative time with the exact date in a tooltip, and is hidden when the source reported no update time.
Code Review ✅ Approved 🟢 Low risk 1 closed / 1 findingsThe shared asset header adds a read-only source-update timestamp and tooltip; it changes presentation only, not access or stored data. Adds an "Updated at source" label to the data asset header showing the relative time of ✅ 1 closed✅ Quality: Text colour set by className on core Typography, against the styling ADR
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 |
|
🤖 Backport to |
|
🤖 Backport to |
…in the entity header (#38593) * [2.0] Fixes 38200: Show when an asset was last updated at its source in the entity header Backport of #38201 and #38268 to 2.0 as one change. The header metadata row shows lifeCycle.updated as "Updated at source" after the other header fields, as relative time with the exact time on hover, and hides it when the source reported no update time or stored the year-0001 placeholder. Spreadsheet Created Time shows without its UTC offset; the full time shows on hover. * Left-align header field values inside the 2.0 Typography tooltip trigger 2.0's Typography wraps an ellipsis tooltip in a button, which centres its text, so a value narrower than its label (Updated at source) sat off the label's left edge.
Describe your changes:
Fixes #38200
I added "Updated at source" to the data asset header because users want to see when an asset last changed at its source without OpenMetadata reading its contents. Metadata ingestion already stores this as
lifeCycle.updated, but the UI only showed the source creation time, so the value was reachable only through the API.The header now shows the relative time (e.g. "2 hours ago") to the left of the follow and vote stats, with the exact date and time in a tooltip. It appears on any asset whose
lifeCycle.updatedis set and is hidden otherwise, including for the year-0001 placeholder older ingestion clients stored.Type of change:
High-level design:
renderSourceUpdatedAt()inDataAssetsHeader.component.tsx, rendered at the start of the top-right stats row. Every page that uses the shared header gets it; there is no per-entity wiring.lifeCycle.updated.timestampfrom the entity the page already has.lifeCycleis stored in the entity JSON and returned by default, so nofields=change and no backend change.isRecordedLifeCycleTimestamp, the same check "Created time" uses, so a missing value or a pre-epoch placeholder renders nothing.BoxandTypography, withcolor="secondary"for the label, the inherited text colour for the value, and the date through Typography'stooltipprop (noclassNamecolour, per ADR:2026-10-11-migrated-antd-components-adopt-core-styling);getRelativeTimefor the value andformatDateTimein a coreTooltip.triggerClassNameis set so the tooltip wraps the text in a focusable trigger; without it a component child never opens the tooltip. Semantic tokens only, so it follows dark mode.label.updated-at-source, translated in all 21 locales.lifeCycle.updatedfor more connectors without UI changes.Tests:
Use cases covered
Unit tests
src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.test.tsx: shown with relative time and tooltip; hidden with created time only; hidden for the placeholder. The utils mock binds the realisRecordedLifeCycleTimestamp.yarn test src/components/DataAssets/DataAssetsHeader: 63 passed; withsrc/utils/DataAssetsHeader, 128 passed.DataAssetsHeader.utils,RetentionPeriod,AlertDetailsPage): 1073 passed.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Pages/SourceUpdatedTime.spec.ts(table, dashboard, pipeline, and the no-update-time case). The spec creates and deletes its own entities.--repeat-each=2; 4 passed again after the review fix..github/playwright/impact-map.json: added an entry routing the header's Jest file toSourceUpdatedTime.spec.tsandTableCreationTime.spec.tsunder thechromiumproject (checked withselect_playwright_tests.pyandbuild_playwright_shards.py: one chromium shard, 7 tests), so a test-only change doesn't escalate to the full suite. Regeneratedimpact-map.generated.json; it only adds the new spec.make playwright_affected(36 more, e.g.Entity.spec.ts,Table.spec.ts,Dashboards.spec.ts,TableCreationTime.spec.ts) have not been run locally.SourceUpdatedTime.spec.tsHTML report (chromium, 4 passed):Visual regression baselines
Manual testing performed
lifeCycle.updatedset to 2 hours, 3 days and 10 minutes ago, and a table with onlylifeCycle.created.UI screen recording:
Recorded on
1c9585ee449(table tooltip screenshot re-taken onc9c5f5a1012) against a local server and dev UI (the UI is the Collate build, which includes this OpenMetadata code; the header code it served is identical to this PR's). Not yet a Docker build with sample data. Test assets were created through the API withlifeCycle.updatedset: a table 2 hours ago, a dashboard 3 days ago, a pipeline 10 minutes ago, and a table with onlylifeCycle.created.Steps shown: open each asset, then focus the time to show the exact date. The table without a source update time shows nothing.
updated-at-source.webm
Table: relative time, with the exact date in the tooltip
Dashboard
Pipeline
Table with no source update time: nothing shown
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.Reviewed
8dd00708250: no 🔴; fixed the 🟡 in693645a7e83(placeholder test; mock binds the real guard). Second pass on693645a7e83: no 🔴; fixed both 🟡 in6082661b058(comments now say ingestion sets the value from source metadata or the usage query log; unit test asserts the full tooltip date). The e2e tooltip check stays on the year, because a full string would depend on the browser time zone. Third pass on7a0873e8fe1(colour through Typography'scolorprop, per review): no 🔴 or 🟡. Fourth pass on1c9585ee449(impact-map entry runs underchromium, per review): no 🔴 or 🟡. Fifth pass onc9c5f5a1012(Boxwrapper and Typography'stooltipprop, per review): no 🔴; one 🟡 accepted: the tooltip now opens above the time, Typography's default placement.🤖 Generated with Claude Code


Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
Adds the source update time to the shared asset header, with relative time and an exact-date tooltip.
No new actionable issues found.
Reviews (10) · Last reviewed commit: "ui: lay out the source update time with ..." · Reviewed by Greptile