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

Don't apply api3 pre/post processing to api4 actions #14357

Merged
merged 2 commits into from
May 27, 2019

Conversation

colemanw
Copy link
Member

Overview

Removes some api3 specific handling of api4 actions.

Before

Some unexpected bugs in api4 being caused by extra api3 processing.

After

Api4 is faster and less buggy.

Transactions aren't a bad thing and we probably want to revisit this but
for now I'm disabling it becuase it's broken, as seen in api_v3_ActivityTest.
I think the problem is with the onApiException event not being dispatched
because api4 doesn't go through Kernel->runSafe, so transactions aren't
being rolled back when they should.
@civibot
Copy link

civibot bot commented May 27, 2019

(Standard links)

@civibot civibot bot added the master label May 27, 2019
@colemanw
Copy link
Member Author

@eileenmcnaughton this is extracted from #14153 and fixes some issues with api4 tests.

@colemanw colemanw changed the title Api4 wrap Don't apply api3 pre/post processing to api4 actions May 27, 2019
@eileenmcnaughton eileenmcnaughton merged commit 3990fbe into civicrm:master May 27, 2019
@eileenmcnaughton eileenmcnaughton deleted the api4Wrap branch May 27, 2019 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants