Submitting my first d.o module for review!
Module name:
User Auth.log
Detailed Description:
Allows for logging user actions on sensitive/critical administrative pages. Logging is limited to specific users and/or user roles (configurable). Logging only occurs on specific administrative pages (configurable). Features include:
- Ability to log by user or users
- Ability to log by role or roles
- Ability to limit logging to specific paths
- List view of all logged entries with pagination
- Notifications emails sent upon specified user login
- Notification emails sent when specified user disables the User Auth.log module
- Presently the module will log user ID, path, and date/time
Intended core version:
7.x
Link to sandbox:
https://drupal.org/sandbox/kirschbaum/2170431
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/Kirschbaum/2170431.git user_auth_log
Reviews of other projects:
https://drupal.org/comment/8394853#comment-8394853
https://drupal.org/comment/8396927#comment-8396927
https://drupal.org/comment/8398619#comment-8398619
Much thanks! Excited to be contributing to the community.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | warnings.png | 12.63 KB | nitesh sethia |
Comments
Comment #1
Kirschbaum commentedComment #2
sanguis commentedAssigning to my self for latter
Comment #3
adam_thomason commentedHi Kirschbaum,
I have taken the liberty of reviewing your code. For starters, great module. I only have one small recommendation, which is:
line 23 user_authlog.module:
require_once ( dirname(__FILE__) . '/user_authlog_email.inc');require_once is a statement, rather than a function, and so parentheses aren't required.
Other than that, the module works great. Nice work.
Cheers,
Adam
Comment #4
Kirschbaum commentedComment #5
Kirschbaum commentedHi Adam,
Thanks! I've made the update. Really appreciate you taking the time to review the module!
Comment #6
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
klausiComment #8
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxKirschbaum2170431git
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
Kirschbaum commentedMade some adjustments based on automated review tools results. Module is ready for review. Thanks!
Comment #10
Kirschbaum commentedAs enzipher mentioned in his early review of the module, setting default variables in the .install file should not be required. At his recommendation I've updated the module accordingly.
Comment #11
tomasribes commentedHi Kirschbaum,
I have been reviewing and testing your module and it works great! It can be very usefull in many contexts. Nice work!
In the future it will be nice to have more data saved in the log table. For example I tried to uninstall a system module and the log don't save witch one. It will be nice to have full data and availability of make queries using filters.
Cheers,
Tomas
Comment #12
Kirschbaum commentedThanks for the review Tomas! Good idea for a feature request. I will add that to the list.
Comment #13
nitesh sethia commented@Kirschbaum
I have been testing your module and found 2 warnings.

Comment #14
nitesh sethia commentedSorry I uploaded a wrong file.

Comment #15
Kirschbaum commentedHi Nitesh,
Thanks! I'm aware of this and don't think it should be a show stopper for module approval. That said, if you disagree please provide a little more context and I'll be happy to address the issue.
Comment #16
Kirschbaum commentedComment #17
Kirschbaum commentedHi Nitesh,
I wanted to follow up on my previous comment about only passing string literals to the t() function. I think this might be a use-case where this can be overlooked. The reason being that the variable I am passing in will be one of two possible strings. The benefit to the approach I'm using is that it prevents me from repeating code. For example, I'm currently doing this:
Whereas to fix the warning I believe I'd do something like this:
I think the concern with passing a variable into a t() function is that there might be countless variations, which is an obvious problem for anyone trying to provide a translation for all possible outcomes. I'm not an expert on the t() function, but I don't think that would be the case here because the variable I am passing in would be one of two possible strings. That said, I'd be happy to hear from you or someone else who has experience in this area.
Thanks again.
Comment #18
Kirschbaum commentedThanks for the reviews all! Assuming no further feedback, could one of you please change the status to 'RTBC' so a git administrator can give final validation?
Comment #19
Kirschbaum commentedComment #20
Kirschbaum commentedComment #21
klausiReview of the 7.x-1.x 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:
Although you should definitely fix those issues they are not critical application blockers, so I guess this is RTBC. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to patrickd as he might have time to take a final look at this.
Comment #22
patrickd commentedsorry for the delay
That's nothing critical though..
Thanks for your contribution!
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 #23
Kirschbaum commentedHi Klausi,
Really appreciate the review. I've addressed the issues you pointed out:
Thanks again for taking the time to review the module!
Comment #24
Kirschbaum commentedHi patrickd,
Regarding the two issues you point out:
Thanks for the final review!
Comment #25
Kirschbaum commentedHi patrickd,
It seems that I still don't have permissions to promote this project or create new full projects. Can you confirm the necessary permissions have been granted?
Thanks!
Comment #26
patrickd commentedwhoops, sorry! now you got it
Comment #27
Kirschbaum commentedMuch thanks!