What is this?
This module is a small helper module for a danish web quality assessment utility. It attempts to cut out the otherwise necessary Drupal programmer needed for implementing the integration, and make the assessment tool more available for Drupal websites.
While the module is for Danish websites, it is implemented in English, and contains a .po file for translation. This breaks standards slightly, however the translations are necessary for all sites.
Project page: http://drupal.org/sandbox/jm/1832092
Git clone: git clone --recursive http://git.drupal.org/sandbox/jm/1832092.git bedst_paa_nettet
This module is for Drupal 7 , however porting to Drupal 6 should be simple.
Reviews:
http://drupal.org/node/1793098#comment-6710572
http://drupal.org/node/1827294#comment-6710366
http://drupal.org/node/1394212#comment-6710264
------------------------------------------------------------------
http://drupal.org/node/1835504#comment-6725760
http://drupal.org/node/1822638#comment-6754740
http://drupal.org/node/1123088#comment-6755032
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | key.gif | 36.55 KB | michielnugter |
| #6 | drupalcs-result.txt | 1.21 KB | klausi |
Comments
Comment #1
gisleDisclaimer: I am a rookie reviewer (this is my first review), so there may be errors in the review below. I hope somebody more experienced also will chip in.
one." If you made the last character in the key some sort of check character, you may catch most simple typing errors.
Comment #2
michielnugter commentedI reviewed the module from a code perspective.
Overall it looks neat but some points could be improved:
If these two small issues and the issues mentioned in the previous comment are solved I see nothing standing in the way of releasing it as a full project.
Comment #3
stixes commented#1
You got the point of the module pretty well, and I see your point with the documentation, I'll update the wording a bit. Also I noticed a few typos while I was looking..
I do have input validation for the key format, which is fixed, what I mean is that, should you enter a valid, but not registered, key I will not be able to detect the error.
As for translation, I do hope this can be forgiven, as the translations are key to the usability of the module, though I will move it to l.d.o first chance I get.
Also, strings in hook_menu should be untranslated, as per Drupal coding standards and hook_menu documentation.
#2
I agree with the JS corrections. It does clear things up, so I will fix this asap.
Thanks for the reviews :)
Comment #4
stixes commentedThere we go, I have extracted the javascript into its own file and improved documentation think.
Comment #5
gisleThank you for responding about hook_menu translations. You're right, of course.
I think the improved README.txt is fine.
I agree that you validate the key format (in hook_validate), but you only check the length and general format. A check character would make it much more robust against typing errors. But this was only a suggestion, and not something that should stop it from being promoted to a full project.
To my untrained eyes, it appears as if the two points raised by michielnugter has also been fixed, but I leave it to him to make the final call on that.
What remains from my first review is the following, pulled directly from PAReview:
The way I understand this requirement is that a Drupal project should not have a "master" branch. Instead, the working branch for a project destined for D7 should be called something like "7.x-1.0" (see the links that PAReview provides). (My apologies in advance if I've misunderstood this point about branch name conventions.)
Comment #6
klausiIt appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master branch:
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:
What is the purpose of the module? The project page does not mention anything. What does it do and why should a user install it? See also http://drupal.org/node/997024
Otherwise I think this is nearly ready. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #7
stixes commentedYes, it does seem I didn't proper check the new js file. This has been fixed.
Also I moved to a proper version branch and better reflect the version of the module.
Translations will be moved to l.d.o as soon as possible, but since the translation is integral to the function of the module I'm adopting the old method, to ensure translation availability. Unless I'm aware of an option to release the translations for the module without delay ?
I do however feel the README explains the purpose of the module decently, if you have any suggestions I will take them into account of course. The point about the project page is valid, and so I updated it with some of the revised information from said README.
As for the tag, I'm already on it :)
Comment #8
gisleI understand that the module is targeted for a Danish audience, and that having a translation into Danish is important. However, having a Danish translation available is not a requirement for passing the review. I therefore suggest that you remove the translations folder for the purpose of the review (to keep PAReview happy). You'll be able to add them back though the standard interface (i.e. localize.drupal.org) as soon as the project is promoted to a full project.
bedstpaanettet.infodoes not end in a newline character.README.txtthat states the purpose of the module, and what it does. However, after looking closer at the module, I think the user documentation still needs to be improved. Who is the target audience for the module? What benefits can be gained from injecting the scripts and the key into one's site?The screen-shot on the configuration page tells the user how to find the key when stage 3 of some registration process is reached, but not how to enter into this registration process. It also unclear if registration is open to everybody, or only to invitees (from the material on http://www.bedstpaanettet.dk/, it looks as if the latter is the case).
Comment #9
michielnugter commentedThe JavaScript part is still incorrect and now not working. You really should test your code before publishing it on Drupal.
You cannot use php variables in an external JavaScript file. You can change it to the following.
Add the following line in the init hook:
drupal_add_js(array('bedstpaanettet_key' => $key), ' setting');And change the JavaScript line to:
window.xact_surveyKey = Drupal.settings.bedstpaanettet_key;Some other tips (no show stoppers but in general it will make it just that bit cleaner):
Comment #10
stixes commentedUpdated:
Master branch removed proper (Seems I did the push command wrong last)
Translations stashed for approval and then deployment to l.d.o.
CodeSniffer issues fixed.
Documentation and project page updated with a definition of audience. I completely agree that this was lacking, so I consider it improved.
I implemented the suggested changes to the JS. I haven't used the js settings much, so overlooked that option. thanks.
I also used your image, no point in wasting bandwidth, however rare the page is visited.
Thanks for the extremely constructive reviews!
Comment #11
michielnugter commentedThe changes look good to me! I'm setting it to Reviewed as I can't think of any other improvements..
Comment #11.0
michielnugter commentedRevised GIT information
Comment #11.1
stixes commentedAdded review
Comment #11.2
stixes commentedMore reviews
Comment #12
stixes commentedApplying for bonus, did some more reviews.
Comment #12.0
stixes commentedMore reviews
Comment #13
klausiThanks for your contribution, jm@bellcom.dk!
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 #14
klausiOh, I forgot:
manual review:
Comment #15
stixes commentedAh yes, you're right. Thanks for the approval anyway, I'll make sure these changes go into the module aswell before promotion.
And thanks all for your reviews, has been a great learning experience!
Comment #16.0
(not verified) commentedcought a typo