Add audit log to the admin panel

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

The issue does not name files, tests, or entry points. Start by locating the admin panel’s action handlers and database model conventions. The scope includes defining an audit data model, recording actions, and displaying recent actions or per-instance history; done criteria and implementation details need clarification.

Written by the indexing model from the issue text.

Description

enhancement

The admin panel should have a sort of "audit log" - each action done in the panel should be saved to the database, and then we could display a list of recent actions in the homepage, or a history of a given model instance.

An open question is how to define a data model to store the actions. The baseline is probably the following:

  • There is a well known set of possible actions (create object, modify object, delete an object, etc.)
  • For each action we want to know who did it and when
  • We want to be able to filter the object ID, so we can display a history for it
  • We need to store which columns were edited in case of the "modify object" action, so we can display them as well
Dominant language
Rust
Stars
1.1k
Forks
57
Avg merge
17h 39m
Merged PRs (30d)
12

Getting set up

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 cot-rs/cot

All issues in cot-rs/cot

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.