Project Page: https://www.drupal.org/sandbox/kala4ek/2457853
Git: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/kala4ek/2457853.git
1. Install as usual, see http://drupal.org/node/70151 for further information.
2. Download and install query.growl library, also you need to update jQuery to 1.7 version.
3. Go to the configure page and select comfortable for you way of notifications.
4. You can configure the plugin(Growl) at your convenience.
If you prefer the system notification, you should use Linux, install notify-send (libnotify-bin) package and give to your web serves's user access to use it.
Add the following string to end of /etc/sudoers file. Instead "www-data" you should use username of you web-server user.
www-data ALL=(ALL) NOPASSWD: /usr/bin/notify-send
Contact me with any questions.
My reviews:
Comment | File | Size | Author |
---|---|---|---|
#25 | coder-results.txt | 1.05 KB | klausi |
#19 | Selection_071.png | 33.84 KB | webcodin |
Comments
Comment #1
kala4ekComment #2
kunalkursija CreditAttribution: kunalkursija commentedHi,
Your git clone url is incorrect. You have shared the git maintainer clone URL. Kindly correct the same so we can review.
Comment #3
kala4ekSorry, updated git url.
Comment #4
mparker17A brief read through your code looks good!
The Automated project review for your project revealed some issues:
t()
, which introduces an XSS security problem and confuses the Translation Template Extractor.To fix the error on line 84, you can simply remove the call to the
t()
function, because strings passed towatchdog()
are translated when they're displayed, not when they're stored — see the documentation on thewatchdog()
function's$message
parameter for more anddblog_overview()
for more information.To fix the error on line 181, you can simply remove the call to the
t()
function, because constant names are the same in every language.@return
and the return type in a docblock).drupal_add_css()
ordrupal_add_js()
insidehook_init()
, which is discouraged for performance reasons, and because Drupal also outputs JavaScript, RSS, etc. which you cannot embed CSS/JS into. I think you can move the code intohook_page_build()
instead.Hope this helps :) Good luck!
Comment #5
kala4ekHi, thanks for review. The default branch is setted to 7.x-1.x.
I know that log messages are translated when they displayed, that's why I used t() function.
Also I can't use hook_page_builde(), because it will not work with Panels everywhere module.
Comment #6
PA robot CreditAttribution: 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 #7
kala4ek@mparker17, sorry, you are right about hook_page_build().
Fixed.
Comment #8
kala4ekComment #9
kala4ekComment #10
hussainwebI am not very sure if you can include jquery.growl in the package. I can't say if the license is conflicting with GPLv2. Do you think it would be safer to not package it and use libraries?
This and many other blocks is using CSS id. This would make it very difficult for themers to override the style. Is it possible to use classes here?
Instead of saying this, how about using Form States API to hide the text field.
In README.txt:
You should add a sequence.
Also, from the code, it is clear the module works only on *nix systems (maybe Mac, but not sure). But I can't find this in the README file. I think you should document this. In fact, I would even go as far as suggesting to add a hook_requirements() for this.
I have set it to Needs work for all this. If you think it doesn't warrant, feel free to change it back.
Comment #11
kala4ekAbout jQuery Growl library, the author use his own license, and says that we can "copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software..." it. The only condition is that we should include the copyright to libraries files. So it's done.
About library CSS, I think that other themes shouldn't influense to notifications from this module, it's only fo developers and I suggest to disable this module at production.
Duration field and Form States API. You are totally right, fixed.
README file. The module works not only on *nix systems, it works with any system via browser jQuery Growl library. *nix system needs only if user choosen the "system" way of notification.
But I updated the README.txt file
Thanks a lot for review.
Comment #12
hussainweb@kala4ek: I can't find the license for the plugin in the repository. This is why there was a confusion because the module can't be packaged with another license -- hence the libraries suggestion.
This is the extract from the license. I couldn't find the notice in the repository anywhere.
Comment #13
klausiThe Libraries API module is a recommended method for adding 3rd party dependencies without directly including the code on Drupal.org.
Comment #14
kala4ekComment #15
kala4ekHi @klausi.
Module is updated, I'm added integration with Libraries API module, implement a hook_requirements().
Module Libraries API wasn't added into dependencies because it (Notify log) can work via system without any jQuery plugins.
Comment #16
kala4ekComment #17
eugene.ilyin CreditAttribution: eugene.ilyin commentedI tried this module on current project and it's very helpful. I can easy know about all PHP notices, even for ajax requests.
Comment #18
kala4ekComment #19
webcodin CreditAttribution: webcodin commentedHi kala4ek,
Handle Review
Comment #20
kala4ek@webcodin, thanks man. Fixed.
Comment #21
kala4ekComment #22
kala4ekComment #23
Samvel CreditAttribution: Samvel commentedHello kala4ek,
I used your module and it works fine, i hope that you will continue work on it and will implement many features.
Two recommendations from me:
1) Please change
$static
variable name innotify_log_js_settings
function. It's confuse me, such variable names usually used for static variables.2) Not use
notify_log_access
function, useuser_access
instead, becauseuser_access
already have static.Looks like RTBC for me
Comment #24
kala4ek@Samvel, thanks for feedback.
I hope that this module will help you with development :)
Your suggestions was applied.
Comment #25
klausiReview of the 7.x-1.x branch (commit 8445cf6):
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:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #26
kala4ek@klausi, thanks for review.
All issues were fixed, recheck please :)
Comment #27
kala4ekComment #28
kala4ekComment #29
kala4ekComment #30
zbombicz CreditAttribution: zbombicz commentedManual Review
. I suggest to take out new line html code from t function like:
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #31
kala4ekHey @zbombicz, thanks a lot for review.
I have implemented your recommendations.
Comment #32
RavindraSingh CreditAttribution: RavindraSingh commentedaha, good to see this functionality, just gone through the manual review first and found these things needs to be updated.
in notify_log.js
Drupal.settings.notifyLog = undefined; // Use single quote
2nd there re few minor things are still remaining, please remove them as well.
Comment #33
RavindraSingh CreditAttribution: RavindraSingh commentedComment #34
kala4ek@RavindraSingh thanks for review.
I'm sure about what line you are talk:
if it's about 13 - changed :)
but if it's about 17 - I use
undefined
without quotes, because I want to set var asundefined
, but not make it string var with value'undefined'
.About pareview issues:
144 - I can short the line to 80 chars, but readability of code, will decrease, so, I think it doesn't important;
164/281 - did you checked these line manually? I have no way to use literal strings here.
Comment #35
klausimanual review:
Otherwise looks good to me.
Assigning to dman as he might have time to take a final look at this.
Comment #36
kala4ek@klausi,
You are right, removed
@
.Also fixed some typos and change numbers to constants.
Comment #37
klausino objections for more than a week, so ...
Thanks for your contribution, kala4ek!
I updated your account so you can 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 stay 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 #38
kala4ekCool, thanks klausi and all other who helped me with it.
Comment #39
klausiJust leave it at "fixed", it will close automatically after 2 weeks.