Skip to content

Error when deleting records - not logging deleted ID #10

Description

@tomups

When deleting a record, the action doesn't get logged and there is the following error:

'null value in column "recordTitle" of relation "log" violates not-null constraint'

Making recordTitle nullable in the log entity makes the error go away and the action to gets logged, but we don't have the ID of the record that got deleted.

Ideally, the ID of the deleted record should be logged, otherwise we don't really know what got deleted and it will be hard to chase orphaned relations for example.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions