Skip to content

[Feature]: Soft delete transactions #687

@RubenLWF

Description

@RubenLWF

What would you like?

I would like transactions (And other entities that can be deleted through the frontend) to be soft deleted when they are deleted through the frontend.

Why is this needed?

Sometimes, when an issue occurs with a transaction, this transaction is deleted before the bug can be investigated. If the database entry is deleted, it is very difficult to debug.

How could it be implemented?

This can be accomplished by adding a deleted_at column to the relevant tables. When the entity should be deleted, rather than dropping the row, we set the value of the cell to the current timestamp. (We will need to make sure that GET endpoints ignore rows where this cell has a value.

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions