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

dev/core#1675 and dev/core#1695 - Revert part of DB package upgrade that is causing transaction issues #289

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Apr 7, 2020

Overview

In 5.23 the DB package was upgraded and part of that upgrade causes it to start a database transaction as soon as CRM_Core_Transaction is initialized, whereas before it wouldn't until a "manipulation" statement was issued. That's not necessarily bad, but seems incompatible with some transactions in civi.

https://lab.civicrm.org/dev/core/-/issues/1675

https://lab.civicrm.org/dev/core/-/issues/1695

Before

Adding a timeline messes up the last activity.
Submissions of custom fields from webform don't get created.

After

Hopefully this buys more time and heads off more similar issues until can figure out if there's a better way.

Technical Details

Lots of details in the tickets.

Comments

If going this route I'd remove the hack in XMLProcessor/Process.php that was a quickfix in 5.24 for the first issue.

I've done some minimal clicking around and haven't seen anything break yet.

Note that tests might not catch these since if running within a transaction it will still "see" the created entries even when not committed yet.

@civibot
Copy link

civibot bot commented Apr 7, 2020

(Standard links)

@civibot civibot bot added the 5.25 label Apr 7, 2020
@demeritcowboy
Copy link
Contributor Author

jenkins retest this please

@demeritcowboy
Copy link
Contributor Author

jenkins test this please

@demeritcowboy
Copy link
Contributor Author

jenkins retest this please

1 similar comment
@seamuslee001
Copy link
Contributor

jenkins retest this please

@seamuslee001
Copy link
Contributor

Merging as per review on the lab ticket dev/core#1695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants