Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.0-stable] Merge pull request #2612 from sascha-karnatz/harden-page-publisher #2613

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.0-stable:

Questions ?

Please refer to the Backport tool documentation

The idea is to provide a possibility to lock a page inside a transaction to prevent, that two (or more) processes working on the same page. This will be included into the Page::Publisher to prevent, that in parallel running worker are updating the same page and creating duplicate entries. This implementation is heavily inspired by Solidus Spree::OrderMutex.

(cherry picked from commit 61d7974)
Prevent publishing the same page at the same time. The PageMutex is locking the page for the time it takes until the page is published. After that the lock is released and it can publish again.

(cherry picked from commit 0d8b119)
The CI test pipeline breaks for Rails 7.1. The eager loading results into a Zeitwerk error in the turbo-rails gem. The current solution is to include actioncable if the application is running in a Github Action until this bug is fixed.

Ref: hotwired/turbo-rails#512
(cherry picked from commit 8fe1bb3)
@tvdeyen tvdeyen merged commit 6e07ea4 into 7.0-stable Nov 15, 2023
58 checks passed
@tvdeyen tvdeyen deleted the backport/7.0-stable/pr-2612 branch November 15, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants