-
-
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
Make financialacls require civi-contribute #28318
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
@eileenmcnaughton I've pushed a fix |
thanks @colemanw - your changes look good (& we know they are tested as they were to fix a test) so I'm gonna merge as a collaboration |
I think this may have caught some people out @eileenmcnaughton https://civicrm.stackexchange.com/questions/46426/financials-acls-status-error |
yeah - we could probably uninstall the extension if the setting is not enabled |
@eileenmcnaughton the combination of the extension having a dependency and the extension being
|
@colemanw I think we can unhide it if it's still hidden & auto-unisntall it on anyone who has not specifically set the setting to make it do stuff (& just remove that setting & make it do stuff when it is enabled, rather than when it is enabled AND the setting is set) |
@eileenmcnaughton ok the readme says it's not safe to disable the extension while it's in development and parts are moving, so that stage is done? |
well I think it's safe now - I thought we had stopped enabling on new installs. There is some interaction I'd like gone but I think it's more like functions that should be in the extension are in core rather than core calling the extension direction #28960 is open & I need to take another crack at #28967 |
Overview
Make financialacls require civi-contribute
Before
I think disabling civi-contribute & leaving financialacls enabled would be risky
After
there is a required
Technical Details
This actually fails on tests & I don't know how to fix - but I put up the PR to highlight it
CRM_Event_Form_Registration_ConfirmTest::testRegistrationWithoutCiviContributeEnabled
Exception: CRM_Extension_Exception_DependencyException: "Cannot disable extension due to dependencies. Consider disabling all these: civi_contribute,financialacls"
#0 /home/homer/buildkit/build/build-4/web/sites/all/modules/civicrm/CRM/Core/Component.php(451): CRM_Extension_Manager->disable((Array:1))
#1 internal function: CRM_Core_Component::onToggleComponents((Array:6), (Array:5), (Array:16), 1)
#2 /home/homer/buildkit/build/build-4/web/sites/all/modules/civicrm/Civi/Core/SettingsBag.php(440): call_user_func((Array:2), (Array:6), (Array:5), (Array:16), 1)
#3 /home/homer/buildkit/build/build-4/web/sites/all/modules/civicrm/Civi/Core/SettingsBag.php(250): Civi\Core\SettingsBag->setDb("enable_components", (Array:5))
#4 /home/homer/buildkit/build/build-4/web/sites/all/modules/civicrm/CRM/Core/BAO/ConfigSetting.php(366): Civi\Core\SettingsBag->set("enable_components", (Array:5))
#5 /home/homer/buildkit/build/build-4/web/sites/all/modules/civicrm/CRM/Core/BAO/ConfigSetting.php(355): CRM_Core_BAO_ConfigSetting::setEnabledComponents((Array:5))
Comments