ApacheSolr is a module for Drupal 6, to improve the search experience of both ApacheSolr Search Integration. ApacheSolr search integration currently indexes and creates facets for taxonomy fields, but not for CCK numeric fields. Facets for these fields have been requested by users of both ApacheSolr Search Integration and ApacheSolr Views:
#728088: Add support for CCK Decimal fields and Numeric Facets
#1202086: Remove duplicate filters from enabled filters list defined by other modules
This module allows users to index numeric and computed CCK fields with Apache Solr Search, then create exposed facets for those fields. The UI allows users to choose which numeric/computed fields will be exposed with Apache Solr Search (note: you will need to rebuild the index) and create exposed filters for numeric fields, with front end control over range limits and facet text (see README.txt). This module is also compatible with Apache Solr Views.
Please note that much of this code was suggested/improved by user rjbrown99. We had each developed similar modules for our own use cases, and he knows that I am working on this more general use module.
Project page: http://drupal.org/sandbox/brycesenz/1258510
Git Repository: brycesenz@git.drupal.org:sandbox/brycesenz/1258510.git
I have run this module through Coder, and believe that my coding standards create no minor/major/critical warnings.
For an example of the numeric filters created with this module, see my site TrailLove
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | autocheck.txt | 1.71 KB | efes |
| #14 | drupalcs-result.txt | 2.52 KB | klausi |
| #8 | pareview_result.txt | 4 KB | doitDave |
Comments
Comment #1
rjbrown99 commentedFor what it's worth, consider me a +1 on including this as a new module. I have some plans to contribute to this and potentially use it as well.
Comment #2
brycesenz commentedChanging the priority to 'major', per submission timeline guidelines.
To potential reviewers, here is an outline of what needs to be reviewed based on the standard review criteria:
Similar modules: The only similar module is Apache Solr Facet Builder. However, this module still does not have a stable release, nor does it function in conjunction with ApacheSolr Views, as my module does.
Third Party Files: None, so this should not be a concern.
Security This is where I feel it would be most beneficial to have a fresh set of eyes check that the code is secure.
Best Coding Practices & Standards: My code uses appropriate drupal hooks and passes all Coder module tests.
Please let me know if there are any questions or concerns standing in the way of this module's approval.
Comment #3
brycesenz commentedChanging the priority to 'critical', per submission guidelines.
Comment #4
klausiComment #5
brycesenz commentedModifications from #4 have been made.
Comment #6
natemow commentedReview of the 6.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application revie w script. Go and review some other project applications, so we can get back to yours sooner.
Comment #7
brycesenz commentedI believe that those issues have all been addressed in the release I posted today.
These line ending issues are killing me - I've been using the "dos2unix" function after I upload changes from my local workstation; Is there a simpler way?
Comment #8
doitDave commentedHi!
I have attached the latest review script results for you. Then, some additions:
(I was just about opening you demo site for a better understanding of your modules intent, but it was actually not reachable - don't know why. Blank page.)
Comment #9
brycesenz commentedI believe that the latest commits fix all of those lingering issues.
Sorry about the site being down; I've had some server issues, which sadly are still lingering. It should be up and running now, albeit not super quick (http://www.traillove.com/browse).
The numeric facets to the side of that page are what this module handles.
Comment #10
natemow commentedManual review:
Comment #11
natemow commentedComment #12
rjbrown99 commentedGuys, come on. We are holding up a legitimate project application for 4 months over what is now a few spaces and line endings. I'm all for code review, both manual and automated, but we're not talking about security issues with the code at this point.
Can we please just approve his application for a git account and promote it to a project to allow for more collaborators to assist? I have been personally contacted by a number of developers looking for this very module (since I created a similar custom version of this) and I fear we're all starting to fork off similar modules and duplicate work.
I have my git account, if you want I'll create it and you can add brycesenz as a co-maintainer - whatever. I just want it up so people can start using it and contributing bugfixes, enhancements, etc. Thank you.
Comment #13
natemow commentedI'm probably not the best person to handle security review or deeper testing with Solr (not having worked with it before). Just trying to help out with the low-level checks here...is there a more experienced reviewer out there that could help out?
Comment #14
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. Get a review bonus and we will come back to your application sooner.
manual review:
I know, getting feedback on your application took long, you can speed up the process with #1410826: [META] Review bonus.
Comment #15
brycesenz commentedOk, I have made the changes as per comment #14. The latest code can be found in the 6.x-1.x branch, and the master branch has been cleaned out.
Please let me know if there is anything else I need to change.
Comment #16
brycesenz commentedOops, and setting to 'needs review.'
Comment #17
brycesenz commentedSetting review priority to major, per application guidelines: http://drupal.org/node/539608
Comment #18
brycesenz commentedSetting review priority to critical, per application guidelines.
Comment #19
efes commentedGood module, good work!
Please, correct some minor issues about following coding guidelines . I attached the automated report.
I know, it could be a tedious and meaningless work at first glance, but these modifications will provide an absolute consistent look and feel of your code to everybody. See: http://drupal.org/coding-standards
If these changes will be done, I could not see any other problem.
Comment #20
patrickd commentedDon't switch to needs work if there are only some minor/few issues thrown by automated tools
Comment #21
rjbrown99 commentedIt has been 8 months of back-and-forth over minor coding issues. Can we please please just approve the application so Bryce can contribute this back to the community?
I have an existing d.org git account - would you all feel more comfortable about this if I just promoted it to a project and changed the application request to add bryce as a co-maintainer?
Comment #22
klausiPlease see the project application workflow: http://drupal.org/node/532400
Only applications that are in the "reviewed & tested by the community" state will get approved. Please review and test the module, then set it to RTBC if you think it is ready.
Sorry for the delay, but there are no reviews of other project applications listed in the issue summary as strongly recommended in the application documentation.
Comment #23
rjbrown99 commentedOK, will do then. I have tested with the module posted in the sandbox and also have my own that is ~95% similar to it. I'd like to potentially combine the two approaches after this is promoted as a project.
Comment #24
brycesenz commented@klausi -
My frustration with the process has been twofold -
First, my code is expected to meet changing standards. For example, it was previously not necessary to have the third line contain a description. It became a standard in between when the code was submitted and when it was reviewed. How can I be expected to hit that sort of moving target?
Second, I get that my review process is slow because I did not review other projects. But reviewing other projects is an optional bonus, not a requirement, and I have followed that path of the process to the letter. In that respect, the process honestly seems broken - it took seemingly six months before anyone even looked to verify that the code did what it said it did instead of just telling me of the latest spacing errors.
I'm sorry to vent, and that's all it's meant to be. But if this is how it's going to feel for everyone new who wants to contribute to the community, then I fear we'll discourage a lot of newcomers.
Comment #25
klausi@brycesenz: the coding standards are not changing that much, but the automated review tools are getting better and better at detecting coding standard errors.
Sorry that the process feels a bit painful for you. Don't get me wrong - I don't want to discourage contributions, but we also need to do some basic quality assurance on drupal.org. Projects should be secure, they should not violate any licenses, they should not duplicate existing modules. And of course we don't want spammers to squat our project name space.
So while there is more automation planned for the review process we need to help each other right now to keep it going.
Now a review:
You should definitively fix those issues, but they are no blockers.
Thanks for your contribution, brycesenz! 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.
Thanks to the dedicated reviewer(s) as well.