Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2014 at 14:36 UTC
Updated:
7 Oct 2014 at 22:25 UTC
Jump to comment: Most recent
Comments
Comment #1
delzhand commentedComment #2
gwprod commentedComment #3
gwprod commentedYour project fails automated review. Please correct that.
http://pareview.sh/pareview/httpgitdrupalorgsandboxdelzhand2295077git
in quickadmin_menu(), your item should really have a type of MENU_CALLBACK, since that's what it's supposed to be.
in quickadmin_page_alter(), you should verify that the library was found before loading your javascript which requires it.
In quickadmin_go, you assume there is some $item from the form_state, which you shouldn't.
Comment #4
delzhand commentedThanks for the tips! I've resolved the errors and warnings from the automated review and made the changes you suggested. Also moved to branch 7.x-1.x from master.
Comment #5
delzhand commentedComment #6
gwprod commentedOn line 101, you do this:
I am fairly certain that this will evaluate to true under all circumstances.
It is better to do something like this:
On 111, you're using HTML in t(), you shouldn't. I understand you want to emphasize this, so you should use a %variable, this will automatically generate emphasized text. See https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/form...
Comment #7
delzhand commentedOh, you're right - I was looking at another example that was doing it wrong. Fixed the mentioned items.
Comment #8
delzhand commentedComment #9
jschoen1 commentedThe readme states that mac users need to use the cmd+m keys, but this is not correct... I'm using mavericks and cmd+m just hides my browser window; I have to use ctrl+m for the quickadmin search box to appear.
Once I get the box to appear, it immediately disappears! It actually looks like the entire page is being reloaded. (I'm using chrome btw, in case that matters)
Also, much more minor issue... you should change the readme to tell people to get the entire mousetrap library from the git repository... I couldn't even get the library to load initially because I had just created the directory structure and added the 2 .min.js files, but it appears to need more than that. the library was undetected until I had the full repository uploaded to my libraries directory.
You might also want to check out the readme template here
Comment #10
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 #11
perennial.sky commentedHello delzhand,
I reviewed your project , i really like your module.
Here is the some points regarding with this project
1. Here is your submit function
please use isset in $form_state and use some drupal api for some checks like this
2. Its not a good point you may leave this point.
drupal_add_js(drupal_get_path('module', 'quickadmin') . '/quickadmin.js');
First get path and store value in variable and then use use that variable, It increase the readability of code
$quickadmin_module_path = drupal_get_path('module', 'quickadmin');
drupal_add_js( $quickadmin_module_path . '/quickadmin.js');
It is a good practice that we use #prefix first then #markup and then #suffix
$page['page_top']['quickadmin'] = array(
'#markup' => drupal_render($form),
'#prefix' => '
'#suffix' => '
',
);
Here you may write this code in this order
$page['page_top']['quickadmin'] = array(
'#prefix' => '
'#markup' => drupal_render($form),
'#suffix' => '
',
);
3. If it is possible Please try to write code so that shortcut key may be configured, user can chose their own short key.
I'd like this module available in full project.
Comment #12
coderider commentedi have test your module manually and found some issues.
1. your module is not working at admin overlay pages.
2. when suggestions are loaded and click on any suggestion nothing happened and form disappear.
unless i put complete url and press enter.
3. this is not a good behavior your module is installed without having your required library.
you have to stop this behavior by using hook_requirements() function.
4. you are not tells people about your requirements in you project page also not at this application page. unless read you modules read me file.
5.a warring message is appear when module is installed but module is installed without required library.
add a link to you library in this message.
Comment #13
delzhand commentedThanks all for the suggestions.
@jschoen1 - I've updated the readme. I found that cmd+m was used in OSX, so I changed it to ctrl+m globally, I just hadn't updated the readme. Readme now follows standard format. I'm not sure why the whole page would be reloading. It sounds like a bug, I'll have to investigate.
@akashjain132 - I've implemented most of your suggestions. I'll keep user-configurable shortcut keys in mind, but it's a little outside the scope of the time I have available right now. I've actually got some other improvements in mind already, like ordering of results, option to exclude "help" pages, and showing the abbreviated menu structure in the dropdown (ie Structure > Context > Add a new context).
@coderider - I'll take a look at the overlay issue. We don't use overlay here, so I'll have to see if there's a good way to implement this when it's active. I'm not convinced that there's a good way to implement hook_requirements for a JS library. If you have any examples I'd be happy to take a look at them. I found this: http://engineeredweb.com/blog/10/5/3-tips-using-external-libraries-drupal/, but when I implemented it, it didn't prevent the module from installing when the library wasn't present. I also tried this:
but the lack of the library's presence didn't prevent the module from installing. I've tried a lot of permutations on that condition, but none of them worked. When I looked for examples of modules that checked for libraries, they seem mostly to use function_exists.
Comment #14
coderider commentedhi
here is a example that suite your project
http://drupalcontrib.org/api/drupal/contributions!colorbox!colorbox.inst...
also see this there is 72 hook_requirments() examples here must be one for you.
http://drupalcontrib.org/api/drupal/drupal!modules!system!system.api.php...
thanks
Comment #15
delzhand commented@coderider - I've figured out why it's not working - using libraries_detect doesn't work during install, because quickadmin_libraries_info isn't being called, because the module isn't enabled. So short of using a php level "file exists" function, I'm not sure it's a valid requirement to stop a module from being installed just because a required library isn't present.
I've added it as a runtime requirement so it shows up on the status page as a warning. The lack of library presence doesn't break anything, it just prevents the module from doing anything, and there's a warning on pages indicating the lack of library anyway so it shouldn't be a mystery why it's not working, even if users don't think to check the status page.
I'm moving forward and looking at a way to get the module working on overlay pages.
Comment #16
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.