Skip to content

[2.1] Fixes 38200: Show the source update time as a header field and created time without its UTC offset (backport 2.1 #38268) - #38276

Merged
sweta1308 merged 3 commits into
2.1from
ui-source-updated-at-header-field-2.1
Nov 23, 2026
Merged

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

Conversation

@sweta1308

@sweta1308 sweta1308 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #38200

Backport of #38268 to 2.1. The three commits cherry-picked cleanly onto origin/2.1 (which already has #38201 via #38229), with the same 6 files and line counts as #38268.

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 on this 2.1 branch.
  • 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.
  • ESLint on the 5 changed UI/Playwright files → 0 errors on 2.1. generate_playwright_impact_map.py --check → up to date on 2.1.
  • 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

Done on #38268 (main); the change is identical here.

  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 on Fixes 38200: Show the source update time as a header field and created time without its UTC offset #38268, commits are unchanged here. 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 issues were found.

Summary

Moves Updated at source into the header metadata row and shortens Created Time for tables and spreadsheets.

  • Source update times sit with the other asset header details.
  • Table and spreadsheet creation times show the UTC offset only on hover.

No actionable issues found. Tests and browser checks were not run; the checkout has no installed UI dependencies.

Reviews (1) · 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.
@sweta1308
sweta1308 requested a review from a team as a code owner November 20, 2026 07:25
@sweta1308
sweta1308 requested review from karthicksharan and removed request for a team November 20, 2026 07:25
@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.

@gitar-bot

gitar-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

This changes only asset-header presentation: update time moves into metadata, and creation-time formatting adds a tooltip without affecting operational behavior.

Moves the "Updated at source" field into the header metadata row after Created Time, with the full date on hover, and drops the UTC offset from Created Time for tables and spreadsheets. 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 merged commit 557e8dc into 2.1 Nov 23, 2026
45 of 48 checks passed
@sweta1308
sweta1308 deleted the ui-source-updated-at-header-field-2.1 branch November 23, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants