Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2011 at 09:06 UTC
Updated:
16 Dec 2011 at 23:30 UTC
Commerce Extra module allows site builders to enable extra features or improvements which are missing from Drupal Commerce core. The module is a collection of minimal submodules which some of developer might not consider worth of a full project and therefore are added into this module.
Drupal version: 7
Project page: http://drupal.org/sandbox/iMiksu/1344594
Git clone: git clone --branch master git@git.drupal.org:sandbox/iMiksu/1344594.git
For commit/release workflows you can check my work in Commerce Finnish Payments project.
Comments
Comment #1
chakrapani commentedIt appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master branch:
This automated report was generated with PAReview.sh, your friendly project application review script. Go and review some other project applications, so we can get back to yours sooner.
Comment #2
tomimikola commentedCode looks high quality. Structure seems to be well thought. Taking care of the comments on #1234: "Mark all as read" in forums. as well as refactoring the bit lengthy commerce_extra_login_page_login_pane_checkout_form_validate function would make this little addon module shine.
Comment #3
imiksuI've created a 7.x-1.x branch.
README.txt file was added.
Comments lines are fixed to respect 80 character limit and separated inline comments into own lines.
I checked all files so that they have one empty line before file end. I'm not quite sure did I understood that standard correctly since some of files you listed already had one empty line. I've checked core modules also to make sure it's consistent.
@TomiMikola, I prefer to have long and consistent function names rather than inconsistent and shorter names. The function you mentioned is a callback function
CALLBACK_checkout_form_validate()and I'm using callback pattern of[MODULE NAME]_[PANE ID]_checkout_form_validate().Comment #4
tomimikola commentedSorry about confusing message but it was about "bit lengthy commerce_extra_login_page_login_pane_checkout_form_validate function" not "function name".
Comment #5
imiksuOh right.. That could be split into different parts just like it is now with the core's login validation. However, I'm still not sure yet is that code going to be final.
Comment #6
rfayIMO this is fantastic, and I'm ready to RTBC it after this one thing.
In _commerce_extra_features() you have
And I note that you're using the untranslated title because it goes into the menu title. However, the menu description should also be untranslated at this point; it's handled the same way in the menu system, if I'm not mistaken.
---
This is just a nit, and doesn't need any further attention, but where you have
I can imagine much easier code if COMMERCE_EXTRA_QUANTITY_DECREASE were defined as -1.
Comment #7
rfayOh one other thing - to avoid confusion in the future, please remove the files in the master branch and replace them with a README.please_use_named_branches.txt that says "Please use 7.x-1.x" or something.
Comment #8
recrit commentedAll 3 sub modules tested ok and provide some useful tweaks for Commerce.
One suggestion to improve the billing information address populating:
Comment #9
imiksuThanks @rfay and @recrit! I've done changes according to your comments and looking forward to get this promoted as a full project!
Comment #10
rfayComment #11
rfayOK, looks good to me. Thanks!
Comment #12
avpaderno