Problem/Motivation
This module will conflict with other commerce modules such as Commerce Checkout - we should tell users by implementing hook_requirements().
Proposed resolution
Remaining tasks
Decide which modules we are not compatible with
User interface changes
New information on the system status report
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 3038059-15.patch | 6.37 KB | alexpott |
| #10 | hook_requirements-3038059-10.patch | 1.15 KB | mdupree |
| #5 | hook_requirements-3038059-5.patch | 1.14 KB | mdupree |
| #3 | hook_requirements-3038059-3.patch | 726 bytes | mdupree |
Comments
Comment #2
tculling commentedComment #3
mdupree commentedPatch adds hook_requirements.
Checking for Commerce module and warning the user about conflicts with Commerce Checkout.
Comment #4
smccabe commentedRemove the TODO, thats the only conflicting module and not something that can be done dynamically.
Also you'll want to add a status page message as well, similar to the install. It should probably flag as an error on the status page, as it won't work properly.
Comment #5
mdupree commentedRemove TODO, and set's error on the status page.
Comment #6
smccabe commentedCommitted, made a small change to adjust Big Commerce to BigCommerce in wording.
Comment #8
alexpottThis is not quite right. We depend on the commerce module. We conflict with commerce_checkout. So this should be
commerce_checkout.Given that we should revert this change and add automated tests.
This is during the Drupal site installer not a module install so I'm not really sure when this is going to be useful.EDIT: well apparently this is also triggered during a module install but also that means rolling this back was correct because we certainly shouldn't be warning about a dependency being installed :)Comment #10
mdupree commentedChanges string from commerce to commerce_checkout. comment #8
Comment #11
mdupree commentedComment #12
quietone commentedNot fond of the 'as', I think 'because' is a better choice here.
I don't think contractions are to be used in t function.
Installing bigcommerce from the command line.
Instead of a warning should this prevent the installation of bigcommerce in case of conflict? Is the site now broken? What action should the user take? Same applies to installing via the UI.
Comment #13
alexpottI agree with @quietone we probably should prevent installation. We need to make the user decide upfront what to do.
Comment #14
alexpottRe #12.2 - it is not a contraction it is a possessive
it'sso that has to be fine.Comment #15
alexpottHere's a new patch that has tests. It prevent install of commerce_checkout via the UI if bigcommerce is installed. There is no way to do this the other way around. It also emits a message via hook_modules_installed because Drush does not using drupal_check_module prior to doing an install like the core UI does - see https://github.com/drush-ops/drush/issues/3669
Comment #17
smccabe commentedReran patch and tests pass, just some previous issue with head.
Re: 12.2 - Since it's possessive, it shouldn't have the ' at all, welcome to English :P
Did the minor grammar tweak and will commit.
Comment #19
smccabe commented