-
-
Notifications
You must be signed in to change notification settings - Fork 824
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#3961 - Move component Api4 files to component extensions #26208
Conversation
(Standard links)
|
8274d50
to
d616e55
Compare
Related discussion: https://chat.civicrm.org/civicrm/pl/159e3dzuw7yuxj1zxqjg6zx5pw
Right, I see what you're saying. That's the linchpin. Do any more edges come to mind if you think about:
--
I bet this is failing because of the order-of-operations. At the time when Perhaps the issue would be moot if $fieldMap += CRM_Core_DAO::executeQuery('
SELECT CONCAT("custom_", fld.id) AS old, CONCAT(grp.name,".",fld.name) AS new
FROM civicrm_custom_field fld...
')->fetchMap('old', 'new'); |
// Ensure all components are enabled so their entities show up | ||
foreach (array_keys(\CRM_Core_Component::getComponents()) as $component) { | ||
\CRM_Core_BAO_ConfigSetting::enableComponent($component); | ||
} |
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.
This was redundant with the setUp
function in this class which calls enableAllComponents()
5287f33
to
7323840
Compare
This was causing issues with civicrm#26208 because the Contribution API is no longer available without enabling the civi_contribute extension, which doesn't happen until a later upgrade step.
This was causing issues with civicrm#26208 because the Contribution API is no longer available without enabling the civi_contribute extension, which doesn't happen until a later upgrade step.
7323840
to
53af82a
Compare
This moves the code belonging to components into their extension directories. As before, these apis will only be available if the component is enabled, but now there is no extra code needed to make that happen.
53af82a
to
ba2af25
Compare
Yup, we've just started the cycle for 5.64.alpha - seems like a good time to get this in. Merge on pass. |
ba2af25
to
6998c19
Compare
Overview
Following on #26036 this is a very small step toward moving component code into extensions: this moves the APIv4 classes.
See dev/core#3961 proposal to create a stub extension for all components.
Before
Component api files in core.
After
Component api files in component extensions
Technical Details
This moves the code belonging to components into their extension directories. As before, these apis will only be available if the component is enabled, but now there is no extra code needed to make that happen.