Skip to content

FIxed race condition on deleting old adjustment records #3901

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

Open
wants to merge 2 commits into
base: 5.x
Choose a base branch
from

Conversation

lukeholder
Copy link
Member

Description

No need to delete the Record if we already drop the rows directly in the database.

Related issues

#3283

@lukeholder lukeholder requested a review from a team as a code owner February 20, 2025 04:44
Copy link

linear bot commented Feb 20, 2025

@lukeholder
Copy link
Member Author

lukeholder commented Feb 20, 2025

To get this potential fix early and test out the PR, change your craftcms/commerce requirement in composer.json to:

"require": {
  "craftcms/commerce": "dev-feature/pt-2407-fix-adjustment-id-race-condition as 4.8.1.2",
  "...": "..."
}

Then run composer update.

We will update this ticket once the release is out.

@boboldehampsink
Copy link
Contributor

@lukeholder any news on this?

@boboldehampsink
Copy link
Contributor

@lukeholder I want to test this on Craft 5, can you make an updated branch for that?

@boboldehampsink
Copy link
Contributor

Now seeing a lot of these errors so I can test it properly if you want

@lukeholder lukeholder changed the base branch from 4.x to 5.x May 13, 2025 08:15
@lukeholder
Copy link
Member Author

@boboldehampsink Yes please, testing this would be useful. Updated to 5.x base branch.

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.

2 participants