Name of module: iap
Sandbox link: http://drupal.org/sandbox/alex.sorokin.v/1815858
For Drupal 7
Git clone: git clone --recursive --branch 7.x-1.x alex.sorokin.v@git.drupal.org:sandbox/alex.sorokin.v/1815858.git iap

This module provides integration with Apple In-App Purchases for developers.

For more details please see README.txt.

Note: I attached some files to help test.

Reviews of other projects

  1. http://drupal.org/node/1814020#comment-6743760
  2. http://drupal.org/node/1835638#comment-6742398
  3. http://drupal.org/node/1835638#comment-6743710
  4. http://drupal.org/node/1835638#comment-6743726
  5. http://drupal.org/node/1841486#comment-6742356
  6. http://drupal.org/node/1841486#comment-6742406

Comments

parwan005’s picture

Status: Needs review » Needs work

Hi,

Here is the list your issues after manual review.

1) Please make sure each of your module file ends with a new line.
2) Also bit of formatting issues in your module file. Please make sure your follow drupal coding and formatting here. Example : In your hook_menu function.
3) In your iap_apple module file : Make sure you follow proper doxygen commenting. Format should be : -

/**
* Implements hook_requiredhook().
*/

Also fix your ventral issues here : http://ventral.org/pareview/httpgitdrupalorgsandboxalexsorokinv1815858git

alex.sorokin.v’s picture

Status: Needs work » Needs review

Hi!

Thanks for review.
I fixed the most of issues.
Please review again - http://ventral.org/pareview/httpgitdrupalorgsandboxalexsorokinv1815858git

Please note:
Issues with README.txt.
I think these are not critical issues.

  1. Display for XML-file example the following errors:
    'ERROR | Short PHP opening tag used; expected "<?php" but found "<?"'
    'Expected 1 space before "="; 0 found'
  2. Display for JSON string example the following warning:
    '112 | WARNING | Line exceeds 80 characters; contains 89 characters'
    '120 | WARNING | Line exceeds 80 characters; contains 114 characters'

Thanks!

gazoakley’s picture

(This is my first review - if anyone else would like to comment I'd appreciate it)

Hi,

PAReview looks much cleaner now. I can see your readme file shows some errors - it looks like the PAReview tool is mistaking your opening <?XML tag for a PHP opening tag. As for the line exceeds 80 characters errors I can see you have JSON requests/responses - you could probably wrap onto new lines after :'s and ,'s but I wouldn't say it's a major issue.

The previously mentioned issues appear to be resolved, and I don't see anything particularly bad with the code. One suggestion I could make is your project page looks a bit empty - have a look at the tips for a great project page.

gazoakley’s picture

On further review of the code, I spotted you define a settings page at admin/config/system/iap/default. However, the callback for that page creates a form with no editable settings. Is this code required?

Also, you may want to set the configure attribute in your .info file:

http://www.drupalcoder.com/blog/configure-links-on-modules-overview-page...

gazoakley’s picture

Status: Needs review » Needs work

Pushing to needs work (unless you're planning to add further settings at admin/config/system/iap/default)

alex.sorokin.v’s picture

Status: Needs work » Needs review

Hi!

Thanks for review.

About:
> On further review of the code, I spotted you define a settings page at
> admin/config/system/iap/default.
> However, the callback for that page creates a form with no editable settings.
> Is this code required?

You are right.
Now it isn't using.
But I planning to add ubercart (e-commerce) support.
So I added iap.module for futher updates.
I can remove hook_settings and add hook_help.
Please comment.

Thanks.

alex.sorokin.v’s picture

Hi!

A lot of thanks for review, again!

I done some changes

  1. Removed hook_settings() from iap.module
  2. Added configure attribute in iap_apple/iap_apple.info
  3. Added hook_help() in iap.module

Please review again.

Thanks!

gazoakley’s picture

Status: Needs review » Needs work

Hi Alex,

Your code changes look good to me. However, it 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:

http://drupal.org/node/1127732

alex.sorokin.v’s picture

Status: Needs work » Needs review

Hi!

Thanks for review!

I added new branch 'origin/7.x-1.x' and removed 'master'.

New Git clone command: git clone --recursive --branch 7.x-1.x alex.sorokin.v@git.drupal.org:sandbox/alex.sorokin.v/1815858.git iap

Please review.

Thanks!

gazoakley’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me - pushing to RBTC. Please let me know if I've missed anything in my review.

klausi’s picture

We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)

alex.sorokin.v’s picture

Issue tags: +PAreview: review bonus
alex.sorokin.v’s picture

Issue summary: View changes

Added 'Reviews of other projects' section

klausi’s picture

Issue tags: -PAreview: review bonus

Removing review bonus tag, you have not done any manual review, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects.

klausi’s picture

Issue summary: View changes

Changed Git clone command

alex.sorokin.v’s picture

Issue tags: +PAreview: review bonus
klausi’s picture

Status: Reviewed & tested by the community » Fixed

manual review:

  1. iap_help(): the module does not specify that path?
  2. Why are there 2 modules? iap.module does not do anything?
  3. iap_apple_install(): no need to set variables on installation, as you can use default values with variable_get() anyway.
  4. iap_apple_main_settings(): you could use system_settings_form() then you don't need to write the submit handler yourself.
  5. _iap_apple_services_verify(): doc block is wrong? $data is an array? For stdClass objects use "object" instead of "obj".

But that are not application blockers, so ...

Thanks for your contribution, alex.sorokin.v!

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.

alex.sorokin.v’s picture

Status: Fixed » Closed (fixed)
klausi’s picture

Status: Closed (fixed) » Fixed

Just leave issue at "fixed", they will close automatically after 2 weeks.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Changed 'Reviews of other projects' list