-
-
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
Upgrade core extensions to civix v25.01.1 #31885
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
55c9ace
to
dc63f65
Compare
/** | ||
* Collection of upgrade steps. | ||
*/ | ||
class CRM_Campaign_Upgrader extends \CRM_Extension_Upgrader_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.
@totten the AutomaticUpgrader points here to CRM_Campaign_Upgrader
and I just added this stub and extended CRM_Extension_Upgrader_Component
which is basically the same as putting it in the xml file.
Note the comment on the class:
civicrm-core/CRM/Extension/Upgrader/Component.php
Lines 6 to 7 in 5959aaf
* Can be used directly from the extensions' info.xml or can be extended for | |
* additional install/uninstall/upgrade functionality in the extension. |
And I do think that at some point we will start adding upgrade logic & schema stuff to these extensions so it's not a bad direction to move in.
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.
Right, for that reason, I assume it's functionally equivalent (as-written) to status-quo.
The difference is that it invites modifications via CRM/{$Component}/Upgrader.php
. Which begs the question: Are we prepared to add install()
, upgrade_NNN()
, etc to that file? Is the ext-upgrade subsystem actually a plausible replacement for core-upgrade subsystem?
On a gut-level, I worry that an unorganized move from CRM/Upgrade/Incremental/php/XXX.php
to ext/civi_xxx/CRM/{$Component}/Upgrader.php
will consign us to a process that is... easy-to-start, hard-to-finish.
On an ideological level, I do appreciate that module-extensions have sharper boundaries which are reinforced by ext-upgrader. And a more consistent API would sound nice. But OTOH, I'm not sure the Component
s actually have problems with upgrading. And in the past, we've had troubles whenever we've conjured new ways to splice the core-upgrade and ext-lifecycle.
I started writing laundry list of more specific subtopics, but... that's a lot of text... and this isn't a civix upgrade
thing. Bridging the gap between core-upgrade and ext-upgrade (from the POV of components) feels like its own issue.
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.
@totten would you be more comfortable if I replaced extends
with class_alias()
in those files? That would be less inviting.
dc63f65
to
912b3a9
Compare
912b3a9
to
7a7ac42
Compare
@totten ok I've updated this to not switch the component extensions to EFv2 & the change is more minimal. |
Overview
Ran
civix upgrade
on all core extensions except for "oauth-client" which needs converting to EFv2.It all went fine except for a civilint error, fixed with totten/civix#389