Skip to content

Candidate database gets deleted on failed commit. #648

@pexaxep

Description

@pexaxep

Hello, Olof!

I've encountered the following problem:

I am using private candidate.
I intentionally enter incorrect values in advance to make the commit fail. I make a commit, and my changes that I made (incorrect) are removed from the candidate database, and candidate.X_db and candidate-orig.X_db are deleted.

If I make large changes and accidentally make a mistake somewhere, then after the commit, all changes will be deleted.

@joc-se wrote in #631 that the deletion of candidate.X_db and candidate-orig.X_db should happen after a successful commit.

As I understand, when using private candidate, the commit now includes the update functionality (which implements the deletion of candidate.X_db and candidate-orig.X_db), and it occurs before checking whether the commit was successful. I think the problem is in this.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions