Skip to content

fix(ui): do not pass req in handleFormStateLocking - #11269

Merged
AlessioGr merged 2 commits into
mainfrom
fix/handleFormStateLocking
Feb 19, 2025
Merged

AlessioGr merged 2 commits into
mainfrom
fix/handleFormStateLocking

Conversation

@AlessioGr

@AlessioGr AlessioGr commented Feb 19, 2025 •

Copy link
Copy Markdown
Member

Not passing through req ensures that the db operations in handleFormStateLocking run independently, preventing them from being part of the same transaction. Since locked document operations aren't critical enough to require transactional consistency, this change helps avoid unnecessary transaction errors that have previously occurred here.

@AlessioGr
AlessioGr merged commit 7f5aaad into main Feb 19, 2025
@AlessioGr
AlessioGr deleted the fix/handleFormStateLocking branch February 19, 2025 02:43
AlessioGr added a commit that referenced this pull request Feb 19, 2025
Just like #11269, we stop
passing through `req` to db operations in `checkDocumentLockStatus`.

After extensive testing, this seems to get rid of all transaction errors
that occurred when I was testing autosave against a remote mongo DB.
AlessioGr added a commit that referenced this pull request Feb 21, 2025
Just like #11269, we stop passing through `req` to db operations in `checkDocumentLockStatus`.

After extensive testing, this seems to get rid of all transaction errors that occurred when I was testing autosave against a remote mongo DB.

We keep the `req` for postgres, as it mysteriously breaks in CI - this cannot be reproduced locally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant