Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jul 2014 at 05:55 UTC
Updated:
26 Aug 2014 at 07:40 UTC
Jump to comment: Most recent
Comments
Comment #1
PA robot commentedWe 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
rob.barnett commentedsrc1988,
I tested out Maintenance Mode Exclude Urls and it works as intended. All of the files pass code sniffer. One minor fix you can make is a type in your hook_form_FORM_ID_alter function in the description: miantenance. The README.txt file is empty so it might be nice to create one with a usage explanation even though it's very easy to use.
I've had to add just this type of functionality to sites I've created so I think this can be a very useful module. Good luck.
Rob
Comment #3
Michael Hodge Jr commentedI went in and did a review of your project. I found the following issues you may want to consider fixing.
Ensure the project page contains detailed information.
I would add a few more details on your project page explaining what the module does and how it works. It would give site builders a little better idea as to if this module is right for there project.
Ensure the repository contains a detailed README.txt.
As hurley mentioned, the projects README.txt is empty. I'd suggest filling it out and you can find a great template for that here.
Code Too Short
Because your .module file contains <40 lines of code, I'd suggest adding maybe a few additional API calls. The approvers are going to want to make sure that you have a good understanding of the Drupal APIs before granting full commit access. You may want add an additional hook_help(). They are looking for at least 120 lines of code or five functions. Is there a way you can up the complexity some? If not, they are able to approve one-time projects only, but you wouldn't have full access (not sure if that is of concern for you or not).
Overall, I really like the module as it makes sites a little more usable in maintenance mode and I think it definitely has a place. Great job @src1988
Comment #4
sonu.raj.chauhan commentedComment #5
sonu.raj.chauhan commentedHi Micheal, thanks for the review.
Here is the list of changes i made.
Ensure the project page contains detailed information.
DONE.
Ensure the repository contains a detailed README.txt.
README.txt file has been modified.
Code Too Short
I know that the code is very short, but it will be an overkill if i add any complexity to the code.
If anything extra and useful comes to my mind, i will definitely add it.
Any Suggestions are welcome.
Comment #6
Michael Hodge Jr commentedI think at this point you are good to go.
Comment #7
Michael Hodge Jr commentedI think at this point you are good to go.
Comment #8
sonu.raj.chauhan commentedComment #9
sonu.raj.chauhan commentedComment #10
joshi.rohit100Spelling mistake in description "miantenance".
Currently your module only works with the pattern but if I create a node with with path alias and I use that path instead of node/nid, then this doesn't work.
I think (my opinion), this should also work.
Comment #11
sonu.raj.chauhan commentedHi Rohit, Thanks for the review
Spelling Mistake has been Resolved.
Path alias support has been added.
Comment #12
sonu.raj.chauhan commentedComment #13
sonu.raj.chauhan commentedComment #14
anil280988 commentedProvide the proper path for the git clone.
Like this: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/src1988/2312231.git maintenance_mode_exclude_urls
Comment #15
anil280988 commentedLine 15, file mmeu.module, function mmeu_form_system_site_maintenance_mode_alter()
You shoud use single quote in function t() (like the previous one)
Line 30, file mmeu.module, function mmeu_menu_site_status_alter()
if ($menu_site_status == MENU_SITE_OFFLINE && trim(variable_get('mmeu_urls', '')) != ''The best way to make a comparison is use function empty(). So it should be like
if ($menu_site_status == MENU_SITE_OFFLINE && !empty(trim(variable_get('mmeu_urls', '')))Comment #16
anil280988 commentedComment #17
sonu.raj.chauhan commentedComment #18
sonu.raj.chauhan commentedComment #19
sonu.raj.chauhan commentedHello Anil, Thanks for the review.
1) Git url problem has been fixed
2) Line 15, file mmeu.module, function mmeu_form_system_site_maintenance_mode_alter()
You shoud use single quote in function t() (like the previous one) : FIXED
3)Line 30, file mmeu.module, function mmeu_menu_site_status_alter()
if ($menu_site_status == MENU_SITE_OFFLINE && trim(variable_get('mmeu_urls', '')) != ''
The best way to make a comparison is use function empty(). So it should be like
if ($menu_site_status == MENU_SITE_OFFLINE && !empty(trim(variable_get('mmeu_urls', ''))) : I THINK ITS FINE FOR NOW
Comment #20
gbisht commented@src1988 all the changes done by you looks good. And as mentions by @Michael this project can be approved on the bases of one-time projects only.
Comment #21
joshi.rohit100In form alter, you have put the description in t() function in single quotes. Thats fine but now its breaking due to The '*' .
Comment #22
sonu.raj.chauhan commentedHello @rohit, Thanks for the review.
Fixed.
Comment #23
joshi.rohit100i thinks its fine now.
Comment #24
mpdonadioFor future reviewers reading this, a single missed t() is not a reason to go back to Needs Work. In general, total disregard of t() or widespread strings that are left untranslated are a reason to go back to Needs Work (falls under major API problem). A few strings here and there should be noted, but should not be a blocking issue by itself. The goal of reviews is to identify major problems and ensure a good grasp of the Drupal API, not to achieve perfection (other than security / thirdparty / liecensing issues).
Comment #25
mpdonadioAutomated Review
Git default branch is not set, see the documentation on setting a default branch.
Review of the 7.x-1.x branch (commit abef2e7):
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. You have to get a review bonus to get a review from me.
Manual Review
This is an important criterion so that code integrates well and can be improved over time. I encourage you to continue developing and gaining from the feedback available in the git approval process.
Thank you for you contributions and understanding.
The info file should have the path to the maintenance mode configuration page.
In mmeu_menu_site_status_alter(), the variable_get() needs a default value. You also have three calls to get ths same variable. Save it off; that will also shorten up the if() clause.
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.
This is way too short to grant vetted access. However, the form is XSS clean, everything looks like it is implemented
properly, and it seems to work as advertised. I also did a search, and I am not seeing this feature implemented elsewhere.
Using this could cause problems for site owners in some circumstances, but I think this could be a valuable addition to
the module space for certain situations.
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.
Comment #26
mpdonadioI promoted this. I did not enable releases or fix the default branch (you can do this).
Thanks for your contribution, src1988!
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 #27
mpdonadioBlerg.
Comment #28
sonu.raj.chauhan commented@mpdonadio,
First of all sorry for the delayed response and thanks for approving the project.
1) Code sniffer issue has been fixed
2) I enabled the releases and fixed the default branch.
Learned a lot from the module review process and will try to contribute more useful things in future.