Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
15 Jun 2011 at 14:53 UTC
Updated:
7 Sep 2012 at 11:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
tim.plunkettI haven't tested the module yet, just pure code review.
Attached is a patch for mostly coding standards fixes.
You should likely also run it through coder module and see what I missed.
The biggest problem is the tpl.php files, they are full of PHP logic that should be in a template_preprocess function, and are also very confusingly indented.
Thanks!
Comment #2
gripster commentedHi,
I applied the patch you attached. Based on your comment I also did the following fixes:
* Fixed the indentations of the template files.
* Moved some of the programming logic away from template files into template_preprocess functions.
* Checked the Topic Map Export code trough the Coder module with minor severity selected. Only few fixable things were found.
Sorry for so late reply. I haven't been checking this issue so often. I thought that when someone would make a comment on this issue, I would receive automatic notice trough mail.
Thanks for the patch and also for the comment!
Comment #3
klausiComment #4
gripster commentedHi klausi,
Thanks for the feed back. I checked out suggestions that you made and here are my thoughts about them.
I'll implement these changes as soon I can find the time to do so.
Comment #5
misc commented@gripster has been contacted to ask if the application is abandoned.
http://drupal.org/node/894256
Comment #6
misc commentedThe application has been closed. If you would like to reopen it, you are free to do so.
See http://drupal.org/node/894256#abandonedtwoweekscontact
Comment #7
gripster commentedI'm reopening this issue because I have made all the changes I mentioned on my previous comment and much more.
Here's the list of changes:
All problems mentioned on previous comments should now have been fixed.
Comment #8
scotthorn commentedThis looks like a really nifty module! I have been trying to test it again a large site I manage, and had some success but noticed a few problems.
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=3207&op=do StatusText: Service unavailable (with message) ResponseText: EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7501 of /var/www/includes/common.inc).Keep up the great work! I look forward to making some nice graphs of the larger sites that I manage.
Comment #9
gripster commentedHi scottho,
Thanks for showing interest in my module. I checked and fixed the issues you mentioned in your comment:
Thanks again for your valuable input!
Comment #10
prashantgoel commentedwell now http://ventral.org/pareview/httpgitdrupalorgsandboxgripster1189182git seems fine
Comment #11
patrickd commentedSorry for the long delay here :(
Your project page looks a little short, you may have a look at the tips for a great project page.
'restrict access' => TRUE,: This should only be used for permissions with high security impact(=: only admin should have it), is it really needed here?topic_map/exportto eg.admin/reports/topic-map/exportmodule_invoke_all('topic_map_export_association_info_alter', $associations);: If you want to invoke a hook that enables others to actually being able to alter the data you pass; you got to use drupal_alter() instead.As pointed out, some of these are only suggestions, apply them if you feel comfortable with them ;)
We do really need more hands in the application queue and highly recommend to get a review bonus so we can come back to your application sooner.
regards
Comment #12
gripster commentedHi,
I have gone trough issues brought up by patrickd and all of them are now fixed:
restrict access => TRUEdefinition. Permissions alone should be enough.topic_map/exporttoadmin/reports/topic-map/export.entity_get_info()withentity_extract_ids(). I was also able to remove some excess code because of this change.//to/**/.t()function.drupal_alter()function.I beefed up the project page a little bit. It now has some additional information.
Thanks for reviewing Patrick.
Comment #13
caiovlp commentedHello,
I strongly advise you to use the link below to review your application. There are a few coding standard errors and using the tool below you will be able to make changes and verify them by yourself before submitting to the review process.
http://ventral.org/pareview
And please create a new branch and set it as the default:
http://drupal.org/node/1127732
http://drupal.org/node/1659588
Let me know if you need help with anything.
Regards,
Caio
Comment #14
gripster commentedHi,
Thanks for the input. I set the 7.x-1.x as my default branch and deleted the master branch. I also fixed few of the white space and commenting issues brought up by pareview.
The function naming issues brought up by the pareview can be ignored. Issues are about the submodules extending my module
hook_topic_map_export_association_info().Comment #15
gripster commentedComment #16
miksan commentedWithout having tested the module I think the code looks pretty good/complete.
I have however a few remarks:
Comment #17
a_thakur commentedLooks good to me, a quick feedback, please include decription in the implementation of hook_permission(Line#49 of .module file). Would revert back after testing the functionality of the module.
Comment #18
gripster commentedHi miksan,
In the response to your suggestions I made the following changes:
file_savefunction.Thanks for review.
Comment #19
gripster commentedHi a_thakur,
I added an additional description to hook_permission.
Thanks for the input!
Comment #20
killerpoke commentedComment #21
killerpoke commentedIt looks good to me.
Some issues I found:
Automated test & general stuff
--------------------------------------------
> I added the url to your git repo
> Automated testing found one error: http://ventral.org/pareview/httpgitdrupalorgsandboxgripster1189182git (you should fix it, but that's not super important I guess)
> Your code does not seem very well commented, please make sure it´s clearly understandable by other developers. Please have a look at the module documentation guidelines and the Doxygen and comment formatting conventions. I think your function and general comments are really ok, however there aren't much comments inside functions, so it's really hard to read your code.
Line by line coding review
--------------------------------------------
> In your README.txt there is a wrong link on line 16
> I couldn't really check the functionality because I don't want to download 180MB wandora…, however the export-functionality and the XML-output looks fine.
I haven't found any big issues, and think your code is well written.
I'm going to change the status to RTBC
Comment #22
killerpoke commentedComment #23
patrickd commentedComment #24
patrickd commentedcatch (Exception $e) { watchdog_exception('topic_map_export', $e);I don't think PHP exception strings will already be encoded properly. Maybe you better make use of check_plain() here because the $message will not be filtered before it will be displayed on the logs.But I couldn't find any major issues
Thanks for your contribution!
I updated your account to let you 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 get 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 #25.0
(not verified) commentedAdding direct git repo url