Comments

vineet.osscube’s picture

Hi Jordan_Fei,

first of all there are quite a few issues to sort out such as indentation, whitespace and incorrect comment formats.

You can find them all here:
http://ventral.org/pareview/httpgitdrupalorgsandboxjordanfei1862848git

Here you can check source code whether it meets drupal coding standards or not, and advise you what to change in your code. You can repeat review after your commits, and can fix those errors.

Jordan_Fei’s picture

Hi osscube,

Thanks for your comments!

One question here:
From http://git.drupal.org/sandbox/Jordan_Fei/1862848.git, there is a review comments about:
README.txt is missing. But in my git repository under the lookup/ it does have Readme.txt.
So why review comments still said that? The case sensitive of file name?

Jordan_Fei’s picture

After repeat review on ventral.org, the common issues have been fixed. Below is the report:
http://ventral.org/pareview/httpgitdrupalorgsandboxjordanfei1862848git-7x-1x

klausi’s picture

Status: Needs review » Needs work
Issue tags: -PAreview: review bonus

manual review:

  1. I have no idea what problem this module solves. Please explain on your project page according to http://drupal.org/node/997024
  2. lookup_menu(): this is a hook implementation and should be documented as such, see http://drupal.org/node/1354#hookimpl . Also elsewhere.
  3. lookup_element_info_alter(): why do you kick out other #pre_render callbacks? Please add a comment.

Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

Jordan_Fei’s picture

Status: Needs work » Needs review

Hi klausi,

Thanks for your review!
I have fixed the issues according to your review comments.

Jordan_Fei’s picture

arjkap’s picture

Hi,
The line to clone the repo seems incorrect as it asked me for your password.

Jordan_Fei’s picture

Remove the default git access name of clone command.

tomasbarej’s picture

Status: Needs review » Needs work

Jordan_Fei,

There is two issues according to the Coding standards: check Pareview.

Manual review:

  • You have a typo in lookup.info file looup instead of Lookup for module name and also in description.
  • You sould use images folder images of course and js for javascripts. Use README.txt for documentation in lookupsample module.
  • Lookup Sample module, doesn't work. Form is there but no view is defined. In test folder is some weird stuff, like txt file with views php code, some SQL file with database export.
  • I think you should work on implementation of your Lookup functionality in Form API. Information about which view should be used for modal window selection should be passed in form element array. There should not be a requirement to use that custom Javascript code for implementation. Try to pass view id instead of boolean value in form element #lookup definition.
  • And be aware of module name, there is already one full project with module machine name lookup!
tomasbarej’s picture

Issue summary: View changes

Update the git clone command(Remove the default name).

Jordan_Fei’s picture

Status: Needs work » Needs review

Hi tomasbarej,

Thanks for your review.
We have fixed most according to your comments. Just two items you mentioned would not be changed:
One is about test module, actually we have README.txt in lookupsample folder, and describe the data prepartion as below:
Run the sql script in your drupal database via something tool like phpmyadmin.
sql script is here: .\test\schema_and_data.sql.
Import the views example into your views via views import.
Views data is here: .\test\views_data\city_list.txt

Another is about javascript usage, this module is mainly implemented by javascript, and require a custom callback function to fill back the selected row data to UI fileds. So we will keep view_id pass by custom javascript together. Another reason, in the future this module will not only depend on form API, but also for temlate approach.

klausi’s picture

Title: Lookup » Lookup Browser
Status: Needs review » Reviewed & tested by the community
Issue tags: -PAreview: review bonus

Please add all your reviews to the issue summary. When finishing your review comment also set the issue status either to "needs work" (you found some problems with the project) or "reviewed & tested by the community" (you found no major flaws).

manual review:

  1. Rename your lookupsmaple module to lookup_browser_sample for consistency.
  2. lookupsample.js: this should use Drupal.behaviors, see http://drupal.org/node/756722

Otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

Jordan_Fei’s picture

Hi klausi,

Thanks for your review!
We have fixed your manual review issues.

Jordan_Fei’s picture

Issue summary: View changes

Updated git clone commands.

Jordan_Fei’s picture

Issue summary: View changes

Move reviews of other projects to issue summary.

Jordan_Fei’s picture

Issue tags: +PAreview: review bonus

Changed tag after adding three more other projects review.

klausi’s picture

Status: Reviewed & tested by the community » Fixed

no objections for more than a week, so ...

Thanks for your contribution, Jordan_Fei!

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.

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

Anonymous’s picture

Issue summary: View changes

Added three more other projects review comments.