I've created this project to make it possible to index information of a location field (created by location module). For the search API something similar exists, but I wanted to build it as an extension on the apachesolr module.
For the moment my project makes it possible to index the following location fields: city, postal_code, province, country, coordinates (latitude, longitude). And it adds a facet for each of the fields (except the coordinates field).
In the future I'd like to add the ability to do geospatial search (based on the location coordinates that get indexed).
Link: http://drupal.org/sandbox/phoenix/1404190
git: git clone --branch 7.x-1.x git.drupal.org:sandbox/phoenix/1404190.git apachesolr_location
cd apachesolr_location
drupal: 7.x
Reviews of other projects:
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screen Shot 2012-02-07 at 18.14.57.png | 6.2 KB | phoenix |
Comments
Comment #1
nick_vhLooking good to me, I've been involved with the process of this module and it does what it is supposed to do.
Only thing I am not sure of is the dependency on location_cck (Weird name for field api support for location).
+1 from me
Comment #1.0
phoenix commentedCorrected tag problem
Comment #1.1
phoenix commentedAdd information on facets
Comment #2
wmostrey commentedThis is a clean and well documented module that works as advertised. The location_cck module is indeed still in the process of being updated, but that doesn't influence this module at this point.
+1
Comment #3
wmostrey commentedComment #4
osmanHi there,
Seems like there are a few issues mostly related with Drupal Coding Standards. Once you clear these issues, you can run the automated review yourself again at http://ventral.org/pareview/httpgitdrupalorgsandboxphoenix1404190git
When you receive no errors, you should update the status to "needs review".
Cheers,
osman
There 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 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. Get a review bonus and we will come back to your application sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #5
phoenix commentedI updated the code to comply with the coding standards. But I can't get rid of these errors, although I have Unix (LF) endings. I even installed a plugin on netbeans to check this (look in screenshot attached):
Comment #6
osmanNone of the files in your project ends in a single new line character. Basically you must have one blank line at the end of each file.
See yourself at your project repository:
http://drupalcode.org/sandbox/phoenix/1404190.git/blob/refs/heads/7.x-1....
http://drupalcode.org/sandbox/phoenix/1404190.git/blob/refs/heads/7.x-1....
http://drupalcode.org/sandbox/phoenix/1404190.git/blob/refs/heads/7.x-1....
You may need to configure your text editor, if it alters line-endings while saving the file. I don't use NetBeans, but I had similar issues with Sublime Text 2. It could be annoying until figuring out the right settings, been there.
Comment #7
phoenix commentedThanks for your quick reply and your clarification. I thought there was a problem with my line endings. But in fact the error suggested that I needed a blank line at the end of each file.
I have implemented it, and I don't get any errors now!
Comment #8
wim leersphoenix has a long history of using Drupal. The code looks good — although
apachesolr_location_fields_indexing_callback()could be refactored to stop repeating the same snippet 4 times. But that's something for future refactorings.Comment #9
osmanYou should clean out the
masterbranch, I still see files in there. You can find the instruction helpful at Moving from a master branch to a version branch.Comment #10
phoenix commentedApparently you have to push for each branch separately... My changes of the master branch weren't pushed when working on the 7.x-1.x branch.
I pushed the changes now. So there won't be any files in the master branch, except the README.txt.
Comment #10.0
phoenix commentedCorrect git command
Comment #10.1
phoenix commentedAdded review of other project
Comment #10.2
phoenix commentedAdded another link to a review I did.
Comment #11
phoenix commentedAdded the PAReview: review bonus tag. Since I did 3 reviews of other projects.
Comment #12
wim leersWoah, we now have a *bonus* system? :D
Comment #13
phoenix commentedYes, we do. Check it here: http://drupal.org/node/1410826
Comment #14
klausiCode looks good. This project is too short to approve you as git vetted user. We are currently discussing how much code we need, but everything with less than 120 lines of code or less than 5 functions cannot be seriously reviewed.
As you are a community member for 8 years now, are there any patches or other contributions that you can point me to? We can of course promote this single project for you if you don't have anything else to show (but then you would not get the git vetted user role and you would have to come back to us when you need to promote something else to a full project).
Comment #15
phoenix commentedHi Klausi
I am a bit disappointed now. Why couldn't this be stated at the beginning of the review process. I am a member for 8 years, recently I got more involved in the community (regarding code contributions). I had a nice module and thought it would be good to use it to finally get my full git rights.
While doing this process I learned some extra things regarding full projects. I started doing some reviews what I liked, because I was also learning some new things.
If you really think it is not enough code, I am going to postpone this, until I have time to add my future improvements. And I must say that it also will have a negative impact on me. I was full of energy to renew my (code) contribution efforts, trying to do some more module reviews, but your answer isn't really a positive stimulus to keep me going.
I'll set this back to "needs review" once I get some more code in.
Comment #16
klausiJust post some links to patches or similar that you made and that show your skills. Then I don't see any problems in approving you.
Do not artificially prolong your module just to exceed the minimum required review limits, as this could lead to questions and critique when it is reviewed again.
And of course the offer still stands: we can promote this project for you in the meantime, if you have something new you can come back to us.
Comment #17
domidc commented@klausi I really would like to start using this using this project and I would like to have support from the maintainer. It would be recommend that you grant a git account to phoenix so he can start to maintain releases.
About not granting a full git account to phoenix: The apachesolr_location module is not the module a noob would create. I think by achieving this module phoenix displays enough knowledge of drupal to be allowed to have a full git account without abusing it. The quality of code is more than enough to allow this module to be useful for the community.
About those 120 lines of code and 5 functions. If a piece of great functionality like this module can be written in less than 120 lines and 5 functions than thats fantastic. Its not how much code it contains but how much it can do.
This module is probably just the start. I m sure when this module becomes active feature requests will come and this module could get bigger very fast. Thinking about integrating with gmap to visualize the radius and all sorts of extra stuff that can make this module great.
Finally: the main criterium should be: Is this module useful? If yes than probably the guy building it will be useful too and will probably contribute more useful stuff in future. I think in this case the answer is yes so please grant the full git account.
Comment #18
klausiIf we promote this single project phoenix can of course create releases and has access to the git repository. A git admin can promote a project on behalf of the user without giving the git vetted user role to them. This is the standard procedure for short projects.
But I still hope that phoenix can give us pointers to other contributions, as he has been a drupal.org member for so long. Then we can give away the git vetted user role in this process and he does not have to apply again if he wants to promote another new project in the future.
Comment #19
nick_vhPlease promote this to a full project and grant Phoenix the permisisons needed to create projects.
The reason why I am pressing this is because I have to keep referring to this module as an example.
phoenix is co-maintainer of :
http://drupal.org/project/adfs_standard
phoenix helped with :
http://drupal.org/project/views_datasource
phoenix posted patches that can be found here :
http://drupal.org/node/1414196
http://drupal.org/node/1502936
http://drupal.org/node/1350488
...
(See his post log for more)
And as a witness I say that phoenix is very very active in the local Drupal user group in Belgium. Creating and organizing events is just one of them. It would be wrong not to grant him these rights.
Some examples :
http://www.drupaleuven.be
http://drupal.be
with names such as Wim Leers, Wim Mostrey, domidc and myself I think there is enough security and support that Phoenix will take care of this module and proves enough experience within the Drupal community.
Thanks in advance
Comment #20
phoenix commentedThanks Nick_vh
I first wanted to give the same comment as you did, but then decided to try to get the next features in my module to meet the 200 lines of code and 5 hooks.
But it would be good to have this as a full project and continue afterwards to make it even better (config page, alter of apachesolr search block to being able to search on address and radius). As this is usable, location fields will get indexed. For some people this can be very handy.
So changing status again to needs review.
Comment #21
webadpro commentedHi,
Id like to note that this modules has indeed helped me figured how to add multiple fields to apachesolr.
Thanks nick_vh for the reference to this module and thank you phoenix for the great module :)
Comment #22
webadpro commentedSorry for changing the status. My mistake.
Comment #23
klausiGreen lights from me for a single project promote. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects. Assigning to tim.plunkett as he might have time to finally approve this.
Comment #24
tim.plunkettThere is a good deal wrong with all of the documentation. See http://drupal.org/node/1354.
Leaving this for someone else.
Comment #25
patrickd commentedOkay then, let's get this done.
package = Search Toolkit//use dot's insteadBut this module looks good enough for me to be promoted.
Thanks for your contribution!
I've promoted this module to a full project and now your able to create releases.
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.
Thanks to the dedicated reviewer(s) as well.
Comment #26
phoenix commented@patrickd, @tim.plunkett
Could you point me to commenting issues?
The coder module doesn't give me any warning.
And ventral.org (PAReview) only show me this:
Comment #27
patrickd commentedThese automated tools can only give you an overview of potential issues.
There can be false positives and there can always be something overlooked.
Instead of relying on these reports I always recommend taking some time and digg into the coding style documentation.
Comment #28.0
(not verified) commentedAdded another review I did