-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
APIv4 - Add activity contacts to APIv4 field spec #17766
Conversation
(Standard links)
|
618f722
to
5391789
Compare
I've tested creating activities specifying targets and assignees and all works as expected. Although targets and assignees are specified as arrays, both also work with integer values when adding a single target or assignee which is handy in some situations. So |
I'm thinking about the relative merits of enforcing data type on input fields in general. |
I prefer the liberal approach so accepting a single value in place of an array is fine for me. I had a look at the existing unit tests and tried changing |
I like the symmetry of having those pseudofields available for |
@colemanw is there test cover? (I'm going through tagging ones with tests & ok without tests - not sure where this fits) |
This passes half the api3 test. I guess we could just include the part that works... I'll add that. |
5391789
to
78380df
Compare
The BAO supports these pseudo-fields during save operations, this exposes them to the api explorer.
78380df
to
8c6a5fd
Compare
Ok I've added test coverage for what we've got. This should be mergable now. |
Retest this please |
Unrelated test fail |
Overview
The BAO supports these pseudo-fields during save operations, this exposes them to the api explorer.
Before
Activity-contact params not discoverable.
After
Activity-contact params discoverable.
Comments
This was based on discussion in https://chat.civicrm.org/civicrm/pl/wnuxuef3ppgt8q5jtdsa5kjsqh