Audit trail for state and delegate changes

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend, databases

Research direction

No files, tests, or entry points are named. Start by locating the code that applies state and delegate changes, then determine how the proposed audit records should be defined and queried. Done means an agreed design and implementation that records the patch ID, user, previous value, and new value for relevant changes.

Written by the indexing model from the issue text.

Description

Greetings,

I hope I am not creating a duplicate here, but I would like to ask if there is a plan for implementing logs for field changes connected with the user performing that action.
Why do we need this? Patches can easily "disappear" from the system when an incorrect state change is performed, like when a patch is declared completed it will disappear from the list of items where an action is required. Nobody will regularly look through other states on the off chance of finding an incorrectly modified item. Now at some point, these errors will be uncovered when the submitter of a patch complains and at that point, we want to know how that error could have happened. Was it an error from a bot handling patches? Was it an unintended or malicious change by a maintainer?
It would be optimal if a database table is filled with the field changes, containing the ID of the patch, the name of the user, the previous field value, and the new field value. Then it would be easy to find the offending action.

What do you think about this?

Regards,
Sebastian

Dominant language
Python
Stars
317
Forks
91
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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 getpatchwork/patchwork

All issues in getpatchwork/patchwork

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.