Closed (duplicate)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2013 at 20:05 UTC
Updated:
10 Sep 2018 at 00:16 UTC
Jump to comment: Most recent
Comments
Comment #1
Seppe Magiels commentedAutomated review
The automated review didn't show any problems, great job!
Manual review
The code looks very good. I have two remarks in hypertable.module. One about the naming of a global variable:
From the Drupal Coding standards:
The second remark is about the includes you have:
According to the Drupal Coding Standards the include should start with a ".".
Greetings!
Comment #2
PA robot commentedWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
he0x410 commentedHi StevenWill,
Nice code, however I have some things for you. :)
Manual Review:
Use one call of unset function:
$sql = db_query("SELECT * from {users} where uid = '1'");Good luck!
Comment #4
StevenWill commentedThanks for the great comments Seppe Magiels & artem.taranyuk. Your review will help make Hypertable a better module.
Comment #5
sreynen commentedComment #6
kscheirerInstead of setting your variables in hypertable_install() you can use those default values at the top of your module file where you have all the defines. For ex,
define("HYPERTABLE_PORT", variable_get('hypertable_port', 38080));should work exactly the same.You shouldn't load your libraries in hypertable_init() - this will cause it to be loading on every Drupal page request, instead just load them where you need them. In this case I think that would be inside your hypertable_nodes example module.
This seems like a great addition! I'm not too familiar with Hypertable - but could this also be done in the DB abstraction layer? in includes/database we have tools for converting a query to a specific DB implementation like pgsql or sqlite. https://drupal.org/project/oracle does this by providing an "oracle" folder with all the necessary includes that can be dropped into includes/database/ as well as a module to help make use of it (mostly admin and settings pages).
No major blockers though, looks like a useful module.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #7
kscheirerYou have a typo in hypertable_menu() "ypertable". And in hypertable_nodes_list_nodes() "anonymouse".
The Libraries API module is a recommended method for adding 3rd party dependencies. I'd very much like to see hook_init() cleaned up so you're not loading all that on every Drupal page request.
In hypertable_nodes_menu() is there a security problem in having
'access callback' => TRUE? I think this would allow any user to see the site's nodes regardless of permission settings.----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #8
PA robot commentedProject 1: https://drupal.org/node/1992544
Project 2: https://drupal.org/node/1944834
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
StevenWill commented@kscheirer: Thanks for taking the time to make this module better. Even though this application was closed as a duplicate I appreciate you taking the time to review the module and provide feedback. I have implemented the changes you suggested, including adding the Libraries API and providing custom permission to view the Hypertable node list.
Comment #9.0
StevenWill commentedRemove reference to hypertable_user example module
Comment #10
avpaderno