Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2013 at 15:50 UTC
Updated:
12 Aug 2013 at 18:21 UTC
Jump to comment: Most recent
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxfatel1955388git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and 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
arun ak commentedHi,
There are some issues I noted,
File : rapdimail.module
1) Remove test development codes, Line no 11
2)
You can include this section hook_init().
Comment #3
fatel commentedThank you for your feedback!
I've integrated your suggestions in the latest commit
Comment #4
fatel commentedComment #5
rlmumfordHi fatel!
Automated Review
The code reviewer has picked up a number of code style issues. http://ventral.org/pareview/httpgitdrupalorgsandboxfatel1955388git-7x-10
Manual Review
It looks like a really useful module I'm looking forward to seeing it released :D
Comment #6
Anonymous (not verified) commentedHi fatel,
sorry for double posting. didn't reload the page for a while.
check http://ventral.org/pareview/httpgitdrupalorgsandboxfatel1955388gitThis helps a lot.
Comment #7
fatel commentedHi all,
at first a big 'thank you' to rlmumford!
I've resolved all issues belonging to the automated code-review.
Furthermore I've
Don't hesitate to tell me any further problems! :)
Comment #8
sd46 commentedHi fatel,
I've had a quick look through your module and found a couple of things that need fixing:
A couple of other minor points:
Good luck with your module, I hope the above is helpful to you.
Comment #9
sd46 commentedForgot to change the status to needs work with my above comment.
Comment #10
fatel commentedHi,
thanks a lot FlakMonkey46 for your suggestions!
Based on your post I've modified the module:
Let's jump to the "minor" things:
You're right here. Including the rapidmail API on every page isn't necessary. Since the latest commit it's only included when submitting the form.
I had a look at the library integration, too but it's difficult to use here, because the rapidmail library is only available for registered users and therefore it isn't possible to provide a public downloadlink...
In case the module achieves the "full project" status it might be possible to get in touch with rapidmail and ask them to provide the library as a public download. *crossing fingers* ;)
Comment #11
pranit84Manual Review:
1. Use t() function in line number 105, 120, 170.
2. After every function give one line gap.
Comment #12
fatel commentedAdded the missing t-functions and some gaps. Thank you!
Comment #13
thmnhat commentedHi Fatel
Automated Review http://ventral.org/pareview/httpgitdrupalorgsandboxfatel1955388git
Manual Review
- In rapidmail.inc, do you think that we should run a single query to delete all needed variables instead of calling variable_del() mtuliple times? (Just my point of view)
- In rapidmail.module, you don't have to check for drupal_get_path(), because that function is in the core
You should use t() function in hook_init()
in hook_help(), you should put the link in a variable, because if we change the link, we don't have to translate the text again
change to
That's all :-)
Comment #14
thmnhat commentedComment #15
fatel commentedHi thmnhat,
thank you for taking time to manual review my module!
I've corrected the automated review errors, well i did this before but apparently I've integrated some new errors with the latest changes. ;)
The rapidmail_library_available() - function is a slightly changed version of the drupal "module_load_include"-function - see:
http://api.drupal.org/api/drupal/includes!module.inc/function/module_loa...
the drupal one is building the name by using the type and module name here so i couldn't get it working with the name of the rapidmail, library file an wanted to leave the original function intact as far as possible...
I don't know wheather this is good or bad ;)
Let's step on: I've integrated the t-function and changed the link to an array as you mentioned. You're absolutely right about that.
My last point: I'm not sure about the multiple variable_delete() - functions because if you read through some articles there are different opinions about the usage of a db query for example..
Maybe someone else will add a statement, I would appreciate that!
Comment #16
kscheirerCouple of typos - "ist" and "menue" in the readme. This is a weird line in the .info file:
; NEW LINE.You dont want to use hook_init() to check for your library - this will execute on every drupal page load, which is not necessary. Better to use hook_requirements() which will let you alert the administrator if there is a problem. Using
if (defined('RAPIDMAIL_WARNING')) {is not the answer either, just do the check where it is necessary instead of creating a pseudo-global.require_once rapidmail_library_available();will produce a fatal error if the library isn't present, instead consider sending a nice message to the user and logging the event with watchdog() for the admin.Those are not critical errors though, this is RTBC from me.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #17
fatel commentedHi kscheirer,
thanks for changing the status and your suggestions.
I've integrated them in the newest version of this module.
In summary:
- I've corrected the typos
- hook_init() is gone -> hook_requirements works fine, thank you for that one :)
- I'm checking whether the file exists before doing the require_once
Comment #18
kscheirerthanks, looks good.
Comment #19
kscheirerSorry I didn't mention this earlier, but the Libraries API module is a recommended method for adding 3rd party dependencies.
In rapidmail_admin_settings() you can simplify by just using
'#default_value' => variable_get('rapidmail_api_key')for each of the variables. system_settings_form() will save the values into the right variable names for you already. I don't think you are usingRAPIDMAIL_WARNINGanymore, and that can be removed.Thanks for your contribution, fatel!
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 #20.0
(not verified) commentedchanged git-clone line to "code"