Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Mar 2012 at 06:56 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Robertas commentedIt 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. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master 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.
Automatic code review is in attached file.
Manual review: no other problems found.
Comment #2
sushylThanks a lot Robertas! I'll work on these issues and change the status of the issue.
Comment #3
sushylI have made the reqired corrections and checked it by PAReview.
Here is the link for report:
http://ventral.org/pareview/httpgitdrupalorgsandboxsushilhanwate1477372g...
Comment #4
novalnet commentedHi,
1. In function og_access_ct_install(), you can change the query in drupal structure .
Ex:
Instead of using,
$weight = db_result(db_query("SELECT weight FROM {system} WHERE name = 'og_access'"));
db_query("UPDATE {system} SET weight = %d WHERE name = 'og_access_ct'", $weight + 1);
you can change like this,
$weight = db_query("SELECT weight FROM {system} WHERE name = :name", array(':name' => 'categories'))->fetchField();
db_update('system')->fields(array(
'weight' => $weight + 1,
))
->condition('name', 'mymodule')
->execute();
2. Also you can change the uninstall function,
function mymodule_uninstall() {
// Drop my tables.
drupal_uninstall_schema('mymodule');
}
3.Also in .info file change dependencies into dependencies[].Because you are using two dependent modules which should be stored in array.
Comment #5
sushyl1. I don't think the sql changes are needed in 6.x version.
2. There are no tables used in this module so we dont need to uninstall any schema. ("hook_uninstall" removed)
3. Changes are made in .info file.
Comment #6
fotuzlab commentedHi sushyl,
Quickly went through the code and here are my 2 cents:
line #16-21, og_access_ct.install
If there is no code running in hook_uninstall you can remove it from the file.
line #34, 35, 45, og_access_ct.module
They seem to be exceeding 80 character limit.
I must mention the README.txt(the most neglected file) is very well written.
@Novalnet: The module is in D6, hence the query structure is fine in this case.
Comment #7
patrickd commentedPlease do not switch to needs work on such few minor isses
Comment #8
fotuzlab commentedIn that case patrik, I think the module is ready to be moved to RTBC. These are the last bit of issues left IMO. (I wasn't sure that applications could be moved to RTBC with minor issues!)
I invite someone to have another look at it before changing the status of the application.
Comment #9
saki007sterI have downloaded and used it , this is working fine for me.
Thanks sushyl
Comment #10
patrickd commentedt('Visibility of <em>@type</em> posts', array('@type' => $type): note that using % =>t('Visibility of %type posts', array('%type' => $type)does the sameI'm afraid 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 (regarding security and correct API usage skills). However, we can promote this single project manually to a full project.
Make sure to resolve point 3 before you create an release.
But 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.
https://drupal.org/project/og_access_ct
Comment #11
sushylThanks patrickd and everyone who spent their time on reviewing this project.
patrickd, I'll definitely follow all the points you mentioned before creating a release.
I am very happy for my first getting promotted and now more excited about contributing to community in every possible way!
--
Thanks,
Sushyl