Repository navigation
[2.0] Part of #38210: Audit Logs show exact time, affected asset, field path and old → new values (backport 2.0 #38290) - #38687
Conversation
…ld path and old → new values (backport 2.0 #38290)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
…nd 3-line clamp (ADR) Part of #38210
…se real HTML) Part of #38210
Code Review ✅ Approved 🟡 Medium riskStructured 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 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 |
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 thechangeDescriptionthe API already returns.AuditLogList.utils.tsis shared with #38290.Differences from #38290, because 2.0 lacks some newer pieces:
Link(e.g.admin (user)) instead of the coreOwnerChip, which isn't on 2.0. 2.0'sBadgealso has nohref.getUserPath/getTeamsWithFqnPath, since 2.0 has nogetSettingsLink.--, since 2.0 has nolabel.emptytranslation.AuditLogList.lesscontainer are unchanged; only the row rendering is replaced.EventTypeenum (suggestion and task events). The server's audited set is the same 11 types as main.Type of change:
Tests:
src/components/AuditLog/AuditLogList.test.tsxandAuditLogList.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/AuditLogsPageon this branch: 129 passed.tsc --noEmitreports no errors inAuditLog(2.0 has unrelated existing errors elsewhere).UI screen recording:
A recording was waived by the author; screenshots are above.
🤖 Generated with Claude Code
Summary by Gitar
from → toentities with no raw summaryThis will update automatically on new commits.