Audit logging: cap long values, and collapse them on the audit page

Open
#798 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp, typescript
Domain
backend, frontend

Research direction

Start by locating the audit logging code that stores string properties and the c-admin-audit-log-page component that renders old and new values. Check how ExcludeProperty is configured and how the audit page displays property values. Done means logged values have a configurable default length per type and property, with truncation marked, and long values can be expanded on the page.

Written by the indexing model from the issue text.

Description

Audit logging stores every string property at full length. One entity with a large text column (hundreds of KB per row) is enough to make the audit log page close to unusable: each row renders the whole value, and the property table stretches the page sideways.

  • A default maximum length for a logged value, configurable per type and property, with the stored value cut off and marked as such past it. ExcludeProperty already covers properties nobody needs logged; this covers the ones worth logging but not in full.
  • On c-admin-audit-log-page, show long old/new values collapsed to a line or two, with a control to expand them.
Dominant language
C#
Stars
81
Forks
24
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from IntelliTect/Coalesce

All issues in IntelliTect/Coalesce

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.