-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
Add extension compatibility list #13298
Conversation
(Standard links)
|
@totten can you please review this one? |
$data = "<extension key='test.foo' type='module'><file>foo</file><requires><ext>example.test</ext><ext>com.ixiam.modules.quicksearch</ext></requires></extension>"; | ||
|
||
$info = CRM_Extension_Info::loadFromString($data); | ||
$this->assertEquals(['example.test'], $info->requires); |
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.
Weehoo tests!
@totten I made your suggested change to static-cache the file contents. |
@civicrm-builder retest this please |
@totten this is passing - any other feedback? |
One question - does this format allow someone to specify a particular version of an extension as obsolete/incompatible? While I realize the immediate use case is to mark an entire extension incompatible, I imagine the more common use case is, "myextension 2.x won't work with CiviCRM 5.13+, upgrade to myextension 3.0". On first glance it seems like this isn't supported but I could be wrong. |
This format is pretty open-ended. It doesn't prevent us from adding that info in the future (along with the logic to handle it), but it doesn't currently do so. |
(CiviCRM Review Template WORD-1.2)
|
@totten I've added the new json file to the distmaker whitelist. Good catch. |
OK, I'm merging. Strictly... I've got some more reactions on the |
Any chance that a warning that it will disable obsolete extensions could be offered before it runs the upgrade. just thinking of a situation where a user has an extension and if they knew it was about to be disabled might instead holding off upgrading core? |
@petednz yes it does display a warning prior to the upgrade. |
Overview
Extensions whose functionality is now redundant with core may cause problems if left installed. This PR will:
Technical Details
The
extension-compatibility.json
file is a very open-ended format. For now it just contains one type of information but we can easily add to it if we want to use it for more purposes.