-
Notifications
You must be signed in to change notification settings - Fork 19
What is the deal with ad hoc actions #119
Comments
To answer your question in a nutshell, ad-hoc entities and ad-hoc actions are very well supported in api4. Documentation on the subject is not as complete as I would like, but the readme does cover the basics:
|
@colemanw OK - but what about dealing with core api in apiv3 - how would we port the ones of those that we want - AND deal with the test issue - ie. the api above exist in apiv3 and are heavily tested... |
Well if the ad-hoc action is just a wrapper around a bao function then there's not much to porting it. |
Agree the api3 tests bring a huge amount of value to CiviCRM. But stepping back a bit...
|
How do we deal with ad hoc actions in api v4?
We currently have a bunch of really useful ad hoc in api v3 - I want to use api v4 but I need to call
Contact.merge
Job.process_batch_merge
I think it would be possible to have api v3 remain the holder of ad hoc actions - but then we would miss the opportunity to eventually deprecate them. If we are to bring them to api v4 we'd need unit tests for them - perhaps we could manage in the test suite that we run tests under both apiv3 & api v4 to save lots of re-writing. But we have to decide about making actions available in apiv4 first.
I think this is what @mattwire was indicating was a blocker to him adopting apiv4
The text was updated successfully, but these errors were encountered: