Skip to content

Fixes 38200: Show the source update time as a header field and created time without its UTC offset - #38268

Merged
sweta1308 merged 3 commits into
mainfrom
ui-source-updated-at-header-field
Nov 20, 2026
Merged

sweta1308 merged 3 commits into
mainfrom
ui-source-updated-at-header-field

Conversation

@sweta1308

@sweta1308 sweta1308 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #38200

Follow-up to #38201, to match the updated header design:

  • Updated at source moves out of the follow/vote stats and into the header metadata row, after Created Time. It uses the same label-above-value layout as the other fields, shows relative time, and shows the full date on hover.
  • Created Time shows the date and time without the UTC offset (Nov 12, 2026, 09:54 PM). The full value with the offset (Nov 12, 2026, 09:54 PM (UTC+05:30)) shows on hover. This applies to tables and spreadsheets.
  • ExtraInfoLabel takes an optional tooltip, so a header field can show a fixed tooltip instead of the truncation one. The other callers don't pass it and behave as before.

Type of change:

  • Improvement

High-level design:

N/A — small UI change.

Tests:

Use cases covered

  • A table, dashboard or pipeline whose source reported an update time shows "Updated at source" as a field in the header metadata row, with the full date on hover.
  • A table, dashboard or pipeline whose source reported no update time shows no "Updated at source" field.
  • Table and spreadsheet Created Time show no UTC offset, and the full time with the offset shows on hover.

Unit tests

  • I added unit tests for the new/changed logic.
  • DataAssetsHeader.test.tsx: finds "Updated at source" inside data-asset-header-metadata, so moving it back to the stats fails the test. Now renders the real ExtraInfoLabel.
  • DataAssetsHeader.utils.test.tsx: new it.each for table and spreadsheet. The shown Created Time has no UTC, and hovering opens a tooltip with the full time.
  • yarn jest src/utils/DataAssetsHeader.utils.test.tsx src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.test.tsx → 2 suites, 88 tests passed.
  • Line coverage on changed files: DataAssetsHeader.component.tsx 92.4%, DataAssetsHeader.utils.tsx 88%. The uncovered lines are in builders this PR doesn't touch (worksheet, file, etc.).

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated playwright/e2e/Pages/SourceUpdatedTime.spec.ts. It creates a table, a dashboard and a pipeline with lifeCycle.updated, and another table, dashboard and pipeline without it (6 tests). The field is now looked up inside the header metadata row.
  • yarn lint:playwright → 0 errors.
  • make playwright_affected → no impact-map gaps. generate_playwright_impact_map.py --check → up to date.
  • Not run locally. The local backend is an older build, and auth.setup.ts fails on GET /api/v1/ingestionRunners → 404 before any spec starts. The merge queue runs it.

Manual testing performed

  1. Ran the UI dev server (yarn start) against a local backend with sample data, logged in as admin.
  2. sample_data.ecommerce_db.shopify.dim_customer (has lifeCycle.created and lifeCycle.updated): Created Time and Updated at source show at the end of the metadata row. Hovering each shows the full time with the UTC offset.
  3. sample_data.ecommerce_db.shopify.raw_customer (has neither): neither field shows.

Normal state

Header with Created Time and Updated at source

Hover: Created Time

Created Time tooltip with the UTC offset

Hover: Updated at source

Updated at source tooltip with the full date

Without lifecycle

Header without Created Time or Updated at source

UI screen recording:

Not applicable — this is a layout and formatting follow-up to an existing field, not a new feature. Screenshots above.

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.
  • 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 3b6cf51dfc9: no 🔴. Fixed both 🟡 in bcbc5417bed: the field's position is now asserted, and spreadsheet Created Time has a test.
    Second pass on bcbc5417bed: no 🔴. Fixed in ae5e375ffdc: DataAssetsHeader.utils.tsx and its test were not in .github/playwright/impact-map.json, so CI would have run the full suite. They now route to Entity.spec.ts, SourceUpdatedTime.spec.ts and TableCreationTime.spec.ts (chromium).
  • Decision check: if this PR decides something the next contributor could undo — a schema field, REST path or format another component or repo must agree with, a new default or limit, an ordering that must hold, or a rule stated only in this description — it adds a record under docs/decisions/ (see its README.md). This description is gone from git log after the squash-merge.
  • I have added tests around the new logic.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable new issues were found.

Summary

Moves “Updated at source” into the header metadata row. Table and spreadsheet creation dates omit the UTC offset until hover.

  • Updated at source appears after the other fields in the header metadata row.
  • Tables and spreadsheets show Created Time without the UTC offset.

Reviews (7) · Last reviewed commit: "ci: route the data asset header utils to..." · Reviewed by Greptile

…t its UTC offset

Updated at source moves from the follow and vote stats into the header metadata row, after Created Time, laid out like the other fields. Created Time shows the date and time without the UTC offset; the full time with the offset shows on hover. The source update time Playwright spec now also covers a dashboard and a pipeline without a source update time.
@gitar-bot

gitar-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

Moves source-update time in the header and hides the UTC offset until hover, changing presentation without altering operational behavior.

Moves "Updated at source" into the header metadata row after Created Time, showing relative time with the full date on hover, and drops the UTC offset from Created Time for tables and spreadsheets while keeping the full value on hover. 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

@sweta1308 sweta1308 added the To release Will cherry-pick this PR into the release branch label Nov 20, 2026
@sweta1308
sweta1308 merged commit 36e2e74 into main Nov 20, 2026
60 checks passed
@sweta1308
sweta1308 deleted the ui-source-updated-at-header-field branch November 20, 2026 09:56
@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

🤖 Not backported to 2.0. Claude looked at the conflict and declined to resolve it:

Backport aborted: PR #38268 → 2.0

Reason

PR #38268 ("Show the source update time as a header field and created time
without its UTC offset") is a pure refinement of PR #38201
("Fixes 38200: Show when an asset was last updated at its source in the
entity header", commit b4590f61c0). #38201 was never backported to the
2.0 branch
, and neither was the related table "Created Time" header
field it builds on.

Checked on origin/2.0 before resolving any conflict:

This isn't a case of one conflicting hunk sitting next to unrelated drift —
every conflicted file's "theirs" side is built entirely on top of code that
doesn't exist on 2.0 (the component-library migration that added
renderSourceUpdatedAt, the table life-cycle "Created Time" field, and the
Playwright spec for both). There is nothing on 2.0 to "move into the
header metadata row" or "reformat without the UTC offset" — the underlying
feature and its test coverage are simply absent.

What would be needed instead

Backporting #38201 (and likely the table "Created Time" PR it depends on)
first, then re-attempting #38268 on top, would be the correct path if this
feature is wanted on 2.0. That is a materially larger change than "port
this one PR" and is out of scope for this automated backport step.

Action taken

Left the cherry-pick exactly as it stopped (mid-conflict, nothing staged,
nothing committed) per the workflow instructions. No files were edited.

resolver run

sweta1308 added a commit that referenced this pull request Nov 23, 2026
…created time without its UTC offset (backport 2.1 #38268) (#38276)

* ui: show source update time as a header field and created time without its UTC offset

Updated at source moves from the follow and vote stats into the header metadata row, after Created Time, laid out like the other fields. Created Time shows the date and time without the UTC offset; the full time with the offset shows on hover. The source update time Playwright spec now also covers a dashboard and a pipeline without a source update time.

* ui: test the source update time inside the header metadata row and the spreadsheet created time

* ci: route the data asset header utils to the entity and life cycle specs
sweta1308 added a commit that referenced this pull request Nov 24, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show when an asset was last updated at its source in the entity header

2 participants