Skip to content

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

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

Rohit0301 merged 3 commits into
2.1from
backport/2.1/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.1.

The same code as #38290: a cherry-pick that applies cleanly, since 2.1's audit log files match main. 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. See #38290 for the full description, design and screenshots.

Type of change:

  • Improvement

Tests:

UI screen recording:

Same UI as #38290; screenshots are there. A recording was waived by the author.

🤖 Generated with Claude Code


Summary by Gitar

  • Display limits:
    • Caps list-valued field changes at 5 records, with a "+ N more" note
    • Clamps long text values, including both sides of an update, to three lines
  • Lineage events:
    • Shows lineage edges as linked source → target entities
  • Reference chips:
    • Renders tags, tiers, glossary terms and domains as core Tag chips; owners as OwnerChip avatars

This will update automatically on new commits.

…ld path and old → new values (backport 2.1 #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 shah-harshit 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.

@Rohit0301

Copy link
Copy Markdown
Contributor Author

Added the decision record docs/decisions/2026-11-25-audit-log-rows-show-five-records-and-three-lines-of-a-change.md. It states that a list row shows at most 5 records of a list-valued change (with "+ N More" for the rest) and clamps text values to three lines, and that the API and Export carry the full value.

The same record is in #38290 (main) and #38687 (2.0), so all three branches point to the same rule. MAX_RECORDS and the 3-line clamp in TextValue cite it as ADR:2026-11-25-audit-log-rows-show-five-records-and-three-lines-of-a-change.

…keep angle-bracket text such as map<string,int>

Part of #38210
@gitar-bot

gitar-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Reworking audit-log rendering changes how event details appear; five-record and three-line limits could hide values in the list, though API and export remain complete.

Backport of the Audit Logs redesign to 2.1 showing exact date-time, affected asset link and full name, full field path, and old → new values from changeDescription. Display limits (5-record cap and 3-line clamp) were documented, addressing the undocumented limits finding. No open issues found.

✅ 1 closed
✅ Quality: Record cap of 5 and 3-line clamp are undocumented display limits

📄 openmetadata-ui/src/main/resources/ui/src/components/AuditLog/AuditLogList.utils.ts:77 📄 openmetadata-ui/src/main/resources/ui/src/components/AuditLog/AuditLogList.utils.ts:246-259 📄 openmetadata-ui/src/main/resources/ui/src/components/AuditLog/AuditLogList.component.tsx:230-240 📄 openmetadata-ui/src/main/resources/ui/src/components/AuditLog/AuditLogList.component.tsx:266-280
MAX_RECORDS = 5 limits how many objects of a list-valued change the Audit Log shows, and the rest collapse into "+ N More". TextValue clamps long values such as descriptions to three lines. Both are judgment-call limits on what an auditor can see of a change, and no record in docs/decisions/ states either one. The rule a record would assert is: "The Audit Log list shows at most 5 records of a list-valued field change (with a count of the rest) and clamps text values to three lines; the full value is not available from the list row." Add a dated record stating this, or the one #38290 adds if it adds one, so that both 2.1 and main point to the same rule.

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 fb1bbb1 into 2.1 Nov 25, 2026
46 of 48 checks passed
@Rohit0301
Rohit0301 deleted the backport/2.1/pr-38290 branch November 25, 2026 13:25
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