Skip to content

[2.0] Part of #38210: Audit Logs show exact time, affected asset, field path and old → new values (backport 2.0 #38290) - #38687

Merged
Rohit0301 merged 3 commits into
2.0from
backport/2.0/pr-38290
Nov 25, 2026
Merged

Rohit0301 merged 3 commits into
2.0from
backport/2.0/pr-38290

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Part of #38210. Backport of #38290 to 2.0.

2.0 still had the older Ant Design audit log item, so this is a manual port of #38290 onto 2.0's code. The Audit Logs list now shows the exact date-time, the affected asset (link and full name), the full field path (Columns › customer_id › Tags) and old → new values, from the changeDescription the API already returns. AuditLogList.utils.ts is shared with #38290.

Differences from #38290, because 2.0 lacks some newer pieces:

  • Owners: a gray chip wrapped in a Link (e.g. admin (user)) instead of the core OwnerChip, which isn't on 2.0. 2.0's Badge also has no href.
  • User and team links: plain getUserPath / getTeamsWithFqnPath, since 2.0 has no getSettingsLink.
  • Empty objects: shown as --, since 2.0 has no label.empty translation.
  • List shell: 2.0's existing loading skeleton, empty state and AuditLogList.less container are unchanged; only the row rendering is replaced.
  • Event-colour test: its not-audited list follows 2.0's EventType enum (suggestion and task events). The server's audited set is the same 11 types as main.

Type of change:

  • Improvement

Tests:

  • src/components/AuditLog/AuditLogList.test.tsx and AuditLogList.utils.test.ts, ported from Part of #38210: Audit Logs show exact time, affected asset, field path and old → new values #38290.
  • npx jest src/components/AuditLog src/pages/AuditLogsPage on this branch: 129 passed.
  • ESLint is clean on the changed files; tsc --noEmit reports no errors in AuditLog (2.0 has unrelated existing errors elsewhere).
  • Manual: ran this branch's UI against a local server and checked the Audit Logs page. Screenshots below; test-suite, pipeline, Fields Changed and long-description entries were injected in the browser.
  • Playwright: not run.

UI screen recording:

Audit Logs on 2.0

All event types on 2.0

A recording was waived by the author; screenshots are above.

🤖 Generated with Claude Code


Summary by Gitar

  • Lineage events:
    • Renders lineage edges as linked from → to entities with no raw summary
  • Value rendering:
    • Inline old → new values, with records, tags and key-value pairs formatted by type
  • Row limits:
    • Caps list values at 5 records with a hidden count, and clamps text values to three lines

This will update automatically on new commits.

…ld path and old → new values (backport 2.0 #38290)
@Rohit0301
Rohit0301 marked this pull request as ready for review November 25, 2026 12:47
@Rohit0301
Rohit0301 requested a review from a team as a code owner November 25, 2026 12:47
@Rohit0301
Rohit0301 requested review from harsh-vador and removed request for a team November 25, 2026 12:47
@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 25, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Structured audit-log rendering changes what auditors see; capped records and clamped text may require API or export access for full values.

Reworks the Audit Logs list on 2.0 to show exact date-time, the affected asset with a link and full name, the full field path, and inline old → new values from changeDescription, including lineage edges and capped list values. 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

@Rohit0301
Rohit0301 merged commit 8336d87 into 2.0 Nov 25, 2026
57 of 60 checks passed
@Rohit0301
Rohit0301 deleted the backport/2.0/pr-38290 branch November 25, 2026 13:26
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