Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2014 at 11:21 UTC
Updated:
15 Mar 2015 at 12:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxnightywolf2236347git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
nabil.sadki commentedI have applied all PAreview.sh recommendations. Maybe i've missed something else, it's my first contribution to the Drupal community, some guidance by Drupal guru's will be more appreciated!
Comment #3
basvanderheijden commentedNice module, nightywolf!
However, I've noticed that you use double and single quotes interchangeably.
Therefore, I included a patch which replaces all double quotes for single quotes in cases where the latter are unnecessary.
For your info: using double quotes is slower than single quotes. This, because PHP has to substitute variables (i.e.
"Hi my name is {$name}"when using double quotes..Good luck with your module!
Comment #4
nabil.sadki commentedThanks basvanderheijden for the review, you are right. I have applied your patch right now.
Comment #5
@purushHi nightywolf,
Upon Manual Review,
1 - Variables that are created in this module which are not deleted while unistalling the module.
Variables can be deleted using variable_del() on the hook_unistall() in the .install file.
2 - Hook Comments added on custom submit function.
I guess that, hook_block_admin_configure_save() is not an hook. Change the comments for the function.
Thanks
Purushothaman C
Comment #6
nabil.sadki commentedThanks for the review Purushothaman. Your recommandations are now applied in the current revision.
Comment #7
sawtell commentedHi nightywolf,
I have installed your module and have run into some issues. The steps I took were as follows:
- Create new menu block
- Set the admin name, leave the rest of the options as default
(Note. I do not see the additional option for ignored menus)
- Save the block successfully
- Click configure on the new menu block
At this point I receive a fatal error:
PHP Fatal error: Unsupported operand types in .../includes/form.inc on line 1808And the following Drupal messages are logged
Disabling menu_block_ignored_links allows me to access the menu block configuration.
Have you seen this before?
P.S.
Your git clone command should be:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/nightywolf/2236347.git menu_block_ignored_linksComment #8
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
nabil.sadki commentedComment #10
nabil.sadki commentedI've fixed errors reported. Also updated code to be accepted in PAreview
Comment #11
nabil.sadki commentedComment #12
nabil.sadki commentedComment #13
nabil.sadki commentedComment #14
nabil.sadki commentedComment #15
mattdanger commentedNice work here. I've reviewed the code and workflow for this mod and don't see any real issues or blockers.
Small nitpick: Fix for formatting of README.txt
Comment #16
nabil.sadki commentedThanks Matt for the review. README.txt formatting is fixed
Comment #17
nabil.sadki commentedComment #18
nabil.sadki commentedComment #19
nabil.sadki commentedComment #20
nabil.sadki commentedComment #21
nabil.sadki commentedComment #22
nabil.sadki commentedComment #23
Swarnendu-Dutta commentedHi @nabil.sadki,
Thanks for your contribution.
A much better way to delete variables would be
Comment #24
klausinope, only variable_del() calls should be used to delete variables, which will also take care of cache clears etc.
Comment #25
nabil.sadki commentedThanks for the reviews. hook_uninstall() is optimised now
Comment #26
Swarnendu-Dutta commentedIn reference to Commit 6a24a61 on 7.x-1.x, i think the query will be
Comment #27
nabil.sadki commented@Swarnendu-Dutta: i don't see any problem for using fetchAll() to get the vars, but if we can remove it without problems, it's better of course.
Your code seem to be working like a charm, so i've commited the changes.
Thanks for the comment
Comment #28
Swarnendu-Dutta commentedSetting this to RTBC...
Comment #29
naveenvalechaAutomated Review
Best practice issues are followed.
Manual Review
Review of the 7.x-1.x branch (commit f92f29d)
$ignored_links['ignored_links_' . $form['delta']['#value']]you can use the$deltavariable here in place of$form['delta']['#value']The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
I would recommend you, please help to review other project applications to get a review bonus back. This will put you on the high priority list, and you will come under the admin radar :)
Comment #30
nabil.sadki commented@naveenvalecha : thanks for the full review. Here's my reponses :
README.txt/README.md
Fixed
Code long/complex enough for review
I think that with hook_help in place, the count is greater than 120 lines.
Coding style & Drupal API usage
All points are fixed
Comment #31
kscheirerNon-blocking issues:
Thanks for your contribution, nabil.sadki!
I updated your account so you can 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 stay 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.
Comment #32
nabil.sadki commented@kscheirer : thanks for the review, and also for the grant. I will take a look on all the links above. I've fixed the uninstall issue also.
@all reviewers : thanks for your precious time!