UC Tracking Links is a module for Drupal 6 which provides shipment tracking links on the order page for Ubercart enabled e-commerce website.
When the user clicks on a link, the web browser navigates to the relative tracking page provided by the carrier for the shipment.
At the moment only SDA Express Courier italian carrier is supported, but it can be easily expanded to other carriers which provide a "simple" URL containing the tracking number to access to the relative informations.
This module doesn't retrieve shipping tracking information directly: it just connects the order page to the carrier portal where real-time data is visible. Nor it accesses carrier's server which require login account.
For those advanced functionality, consider the uc_tracking module instead.
Here's the link to the project page: http://drupal.org/sandbox/mandreato/1352282
(this is my first contrib module)
Comments
Comment #1
raynimmo commentedAutomated review
Please keep in mind that this is primarily a high level check that does not replace but eases the review process. There is no guarantee that no other issues could show up in a more in-depth manual follow-up review.
Drupal Code Sniffer has found some code style issues (please check the Drupal coding standards):
Manual Review
Code Reviews
When running the Coder module make sure that it is set to 'minor' and always try to use the latest development versions for up to date checks. There are also a host of optional add ons that run with Coder and help to spot errors in your code such as Coder Tough Love, the Translation Template Extractor and Text Review to name some of the more popular ones. There is also a really good script called PAReview.sh that does a great job of spotting errors, its still a sandbox project though so is liable to changes. Drupal Code Sniffer is also great at catching all sorts of errors within your code but can be a bit tricky to set up.
Comment #2
mandreato commentedThanks raynimmo,
I did use the latest Coder module version before commiting, but no error was found.
Now I've tried your suggestions, but cannot get an automatic review like yours:
- installed Coder Tough Love, and enabled it on Coder defaults, but still no error is found
- on admin/settings/coder_tough_love it says "Pspell is not enabled, so there are no settings to configure", but Pspell is no more included on PHP since 5.3
- Drupal Code Sniffer is only for Drupal 7
- PAReview.sh require a bash, whilst I'm on a Windows box
By the way, I've fixed the issues you suggested and commited the changes on git.
Could you review the module please ?
Comment #3
mandreato commentedComment #4
raynimmo commentedRE:
You can still get a Linux shell running on Windows. For git access I use msysgit which has a GUI and a shell environment. Personally I only use the shell environment.
It allows you full access to many 'Linux Tools' and the ability to run bash scripts, such as PAReview.sh.
Havent had a chance to check your code again, will try and revisit this later.
Comment #5
patrickd commentedbtw: you can also use http://ventral.org/pareview - it is an online service providing pareview.sh tests
Comment #6
mandreato commentedHi patrickd, visited your ventral.org this morning but believed it was for complete projects only.
Now I've tried it putting http://git.drupal.org/sandbox/mandreato/1352282.git and it works fine.
What a great resource for automated review !
I think it should be promoted on documentation of review process.
Comment #7
bailey86 commentedCould you explain how your module provides something that uc_tracking does not?
Comment #8
mandreato commented@bailey86, I explained it a bit on the README.txt: uc_tracking get real-time shipment tracking details by accessing into the carrier server with specific authentication. To reach that, it needs more specific definitions for every carrier.
Instead uc_tracking_links simply provide a link to the carrier tracking portal. No login, no data import, it just redirects the user to the place where to find informations about its shipment. It is also easier to expand the list of supported carriers.
Comment #9
raynimmo commentedIt seems that Patrickd's online reviewer actually has some issues with your code I am sorry to say. Dont worry though they are fairly minor points though.
Review of the 6.x-1.x 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.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #10
mandreato commentedChanges commited.
Comment #11
klausiThere are still files other than README.txt in the master branch, make sure to remove them. See also step 5 in http://drupal.org/node/1127732
Review of the 6.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. Go and review some other project applications, so we can get back to yours sooner.
manual review:
Comment #12
mandreato commentedThanks klausi for the review !
I've done the following changes:
- better headings on project page
- better commit messages
- provided and documented a hook for list of carriers by using drupal_alter
- better variable names
- better use of t()
- added a new function to show the carrier name on the packing slip
- checked with online PAReview.sh
Hope this will be accepted as a complete module and me as git vetted user.
Comment #13
misc commentedHi,
You still have some small coding standards issues:
Comment #14
klausiPlease do not switch issues to "needs work" without giving a manual review.
Get a review bonus and we will come back to your application sooner.
Comment #15
misc commentedI am only interesting in helping out, not to get any bonus, but I have missed the part that you should not change status after a automatic review, thought I read all the documentation about reviews, but must have missed that, sorry...
Comment #16
mandreato commentedThanks MiSc for helping the community; I've fixed the small issues.
BTW, I submitted the last changes as of december the 23rd to Ventral automatic review tool and it didn't except any issue. Now I tried again after your advice and Ventral does show those cosmetic issues... Something must be changed on Drupal coding standards ;-).
BTW2, this module is in production on my website for a couple of months.
Comment #17
drupaledmonk commentedPAReview.sh doesn't show any errors.
I have done a manual review and it looks great. Maybe if you are open to any suggestions, you can extend the module to add the trackers and links through module administration, rather than harcoding / sub-modules.
Comment #18
mandreato commentedHi f4k1r, thank you for manual review.
I think that it is simpler to ask for new tracking links via the issue queue than extending the module by adding a table, the logic to control, etc. By including them into the module, one can suggest a service and many can benefit. Especially when a link changes: the fix on the module propagates via update report to every installation.
Maybe it would be worth to do add a grouping functionality when the list will became very long.
And for specific settings, the sub-module remains a good alternative.
Comment #19
misc commentedI think this should be marked 'reviewed and tested by the community'. Anybody disagree? Another way to handle trackers could be added later on.
Comment #20
klausi@f4k1r & @MiSc: don't hesitate to set the issue to RTBC if you think it is ready.
Comment #21
drupaledmonk commentedComment #22
klausiThanks for your contribution, mandreato! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
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.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.
Comment #23
mandreato commentedThanks to everyone who is contributing to this wonderful community !