-
-
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
[WIP] Add pseudo-entity APIv4 Attachment #20494
Conversation
(Standard links)
|
Civi/Api4/Attachment.php
Outdated
* | ||
* @see https://docs.civicrm.org/user/en/latest/organising-your-data/contacts/ | ||
* @searchable primary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* | |
* @see https://docs.civicrm.org/user/en/latest/organising-your-data/contacts/ | |
* @searchable primary | |
* |
I think the attachment "Get" action might end up being an interesting blend of |
f3db703
to
efa9296
Compare
efa9296
to
35f5e37
Compare
35f5e37
to
b609a96
Compare
b609a96
to
08b91c8
Compare
@totten @seamuslee001 this is the attachment WIP On the contact image - I would be inclined to add handling in the attachment api for that field if possible - so it's invisible to api consumers that it is non-standard. I feel like that might pave the way to get calling code switched over and to 'at some point' change the table structure. |
This has conflicts and has been unworked on for several months. Going to close but feel free to reopen. |
Overview
A brief description of the pull request. Keep technical jargon to a minimum. Hyperlink relevant discussions.
Before
What is the old user-interface or technical-contract (as appropriate)?
For optimal clarity, include a concrete example such as a screenshot, GIF (LICEcap, SilentCast), or code-snippet.
After
What changed? What is new old user-interface or technical-contract?
For optimal clarity, include a concrete example such as a screenshot, GIF (LICEcap, SilentCast), or code-snippet.
[WIP] Technical Details
Declare APIv4 Attachment abstract entity:
_civicrm_api3_get_DAO
andCivi/Api4/Utils/CoreUtil:: getBAOFromApiName
Civi/Api4/Utils/CoreUtil::getTableName
herepseudo
and setter function (based on this attribute the non-DB fields could be excluded from query)Api4 Attachment.create/update implementation
...
Api4 Attachment.get implementation
...
Api4 Attachment.delete implementation
...
Comments
Anything else you would like the reviewer to note