Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 May 2013 at 20:02 UTC
Updated:
19 Nov 2013 at 23:56 UTC
Jump to comment: Most recent
Comments
Comment #1
thamba commentedHi,
Nice module. A quick check on the automated review tool revealed a few errors. You might want to check: http://ventral.org/pareview/httpgitdrupalorgsandboxthelmer1986370git
I did a manual review of your module as well and here are some minor issues I found:
Other than that its a well written module. Good luck!
Comment #2
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 #3
diolan commentedHello,
Interesting module, but I have some things to point after manual review:
1. It seems that you are use ctools plugin API, but you don't add the dependency into the .info file.
2. You are using user visible text that is not ready for translation in
wayf_dk_login_help()function. I think it would be better to enclosure the text into the t() function.3. Your module creates a number of variables (e.g. wayf_idp_certivicate, wayf_idp_sso), but you don't implement the hook_uninstall() to remove these variables.
Comment #4
thelmer commentedThank you for the reviews, I've changed the following :
1) Code cleaned up to pass PHP_CodeSniffer / coders
2) Removed short tags from template file
3) Added t() to all user-oriented strings
4) Implemented the hook-uninstall to remove variables defined by the module
5) Added some defaults for the idp metadata
6) Updated the README.txt with configuration details
7) Added cttols dependency
8) Changed the default branch to 7.x-1.x
Comment #4.0
thelmer commentedgit clone url updated
Comment #5
miksan commentedHi Tom.
Nice module!
The code is well structured and it is easy to get an overview.
I have a few comments:
1) wayf_dk_login.module, line 307:
If for some reason the meta data service is down the rest of the function will fail.
Instead you will get various errors and I am not sure that you will be able to follow the contract of your function.
The docblock in line 287 says the the function will be returning an object:
* @return [object]
I suggest that you introduce some error handling and consider what the return value should be in case of an error.
2) Although it is not essential for the functionality of the module, I do not find any watchdog function calls.
I think it can come in handy to have a few logged actions throughout the module.
It can help a debugging process to make log entries in case of a success or an error.
For instance in wayf_dk_login.module, line 144 in the function wayf_dk_login__endpoint() it would make sense to put in some watchdog calls:
3) The last comment is a very strict one :) :
I your code I find multiple inline comments notated in C style (/* */).
Instead repeat the // single-line comment for every line:
https://drupal.org/node/1354#inline
Comment #6
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #7
thelmer commented1) I have added some error handling if WAYF's metadata service is down
2) 3 watchdog notices added :
"Error saving user account : %name."
"Login failed : %name."
"New account created : %name."
3) fixed
other) Added dependency on date and date_api to .info
Comment #7.0
thelmer commentedgit clone URL updated
Comment #8
kscheirerIn wayf_dk_login_form_user_login_alter() instead of creating the img tag manually, can you use theme('image') instead? Seems like a well thought out module.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #9
thelmer commentedThe image in the .module file is now rendered with theme('image
Comment #9.0
thelmer commentedAdded other project review
Comment #9.1
thelmer commentedNew review of other project added
Comment #10
kscheirerIt's been a month without any problems reported, so I'm promoting this myself as per https://drupal.org/node/1125818.
Thanks for your contribution, thelmer!
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.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #11
kscheirerCongrats on 10 years in Drupal! :)
Comment #12
thelmer commentedHi kscheirer
Thanks for the promotion.
I have promoted my project and created a release tag.
When I try to "Add new release" under Edit ->Releases I get an error message "WAYF.DK Login does not have project releases enabled." Can this be related to the D7 upgrade ?
Tom
Comment #13
kscheirerLooks like we have a bug from the D7 upgrade. I've updated #2132003: Unable to enable releases for Full Projects with 'project_has_releases' = FALSE to include your module, this will hopefully be resolved soon.