Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2013 at 09:26 UTC
Updated:
11 Sep 2013 at 04:51 UTC
Integrates NZ Post API postage estimation service with Commerce Shipping.
Provides estimated shipping costs based on dimensions & weight of items in the current order.
Project page: https://drupal.org/sandbox/DNZ/2052157
Git: git clone http://git.drupal.org/sandbox/DNZ/2052157.git commerce_nzpost
Very largely based on Commerce Australia Post ( https://drupal.org/project/commerce_auspost ) with relevant changes to make it work for NZ Post.
Thank you for your time.
Reviews of other projects:
Comments
Comment #1
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
rolando.caldas commentedHello d-nz
My manual review:
.install
lines 11ss
Extra code. You create an array and later a foreach to delete the variables. You can changed to
less codelines and less cpu use.
.module line 80
module_load_include('inc', 'commerce_nzpost', 'includes/commerce_nzpost.json');Your are not include a file of another module so use require_once insted
require_once realpath(__DIR__) . '/includes/commerce_nzpost.json';The ventral errors:
I see that you have the description in multiple lines, you can probe to create a variable with the text and concat the diferent lines with . or put all the description in one line.
Comment #3
andyd328Many thanks for your feedback rolando.caldas, very helpful.
I have made the changes.
Ventral is still unhappy with line 84 in .module as it is a very short line being concatenated as a string ( '<ul>' ) but it makes it easier to read the string, can it still pass with this error?
Comment #4
rolando.caldas commentedHello.
I have to correct one of the points of my review. Sorry. In the review process of a module of mine told me that instead utilizase module_load_include required, so I adopted that point as a correction to make.
My module has passed the review process, but the person who enabled the publication of the project (cweagans) commented as follows on the subject:
I understand that, in this case, it is better to follow the recommendation of a person who can enable publishing projects.
Comment #5
andyd328Many thanks rolando.caldas, I have changed the include back to module_load_include.
Comment #5.0
andyd328fixed project page link
Comment #5.1
andyd328Added 2 manual reviews
Comment #5.2
andyd328updated git command
Comment #6
petu commentedHello Andy!
I've installed commerce_nzpost on standart Commerce Kickstart profile. I used '1234-5678-90ab-cdfe' as an API key.
After settings submission there is Notice:
Undefined index: commerce_nzpost_postal_code in commerce_nzpost_settings_form_submit() (line 154 of /.../sites/all/modules/commerce_nzpost/includes/commerce_nzpost.admin.inc)..
Comment #7
andyd328Fixed - many thanks Peter. Very much appreciated ( thanks for fixing the git command too ).
Comment #7.0
andyd328In case of using this git command
"git clone --branch 7.x-1.x DNZ@git.drupal.org:sandbox/DNZ/2052157.git commerce_nzpost"
author's password is asked.
It's better to get sources by
"git clone http://git.drupal.org/sandbox/DNZ/2052157.git commerce_nzpost"
Comment #7.1
andyd328added review
Comment #8
andyd328Comment #9
andyd328Comment #10
klausiReview of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
But otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to MiSc as he might have time to take a final look at this.
Comment #11
andyd328Thank you very much for your input klausi.
I have made the changes to the text handling as you suggested - thanks for the pointers.
I haven't changed the concatenation error as splitting the string over multiple lines seems cleaner and easier to read, please let me know if there is a better way.
Comment #12
kscheirerYou should remove the .gitignore file from the repo
There are a couple of minor errors reported here: http://pareview.sh/pareview/httpgitdrupalorgsandboxdnz2052157git
Otherwise looks pretty good, nice work!
Thanks for your contribution, d-nz!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #13.0
(not verified) commentedUpdated description