This module records the node access history. Unlike {history} table in core which only stores the last viewing history of a node for each user. It stores all viewing history. It's useful for counting the hits of nodes in a certain period rather than a simple total count in the {node_counter} table of core. We can also find access history in {accesslog}, but we need to extract node ID in URL and it's much slower.
Here is the sandbox page of the project: http://drupal.org/sandbox/hgneng/1468518
Here is the git command to checkout the code:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/hgneng/1468518.git node_view_history
The module is for Drupal 7.
PAReview.sh result: http://ventral.org/pareview/httpgitdrupalorgsandboxhgneng1468518git
Thanks for review!
Cameron
Comments
Comment #1
targoo commentedIt 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. Get a review bonus and we will come back to your application sooner.
Comment #2
targoo commentedManual review :
1) node_view_history.info
Remove version = "7.x-1.0"
I will test your module soon.
Comment #3
hgneng commentedThanks for review.
>Remove version = "7.x-1.0"
done.
switched to 7.x-1.x branch.
Also fixed most Drupal Code Sniffer issues except line ending issue (Is it a must to change \r\n to \n?).
Comment #4
patrickd commentedThis probably means that your files are not saved unix-encoded. Your editor probably allows you to change this by saving ("save as") the file and choosing unix format.
as there are currently many applications in queue we need more reviewers,
so think about getting a review bonus and we will come back to your application sooner.
Comment #5
hgneng commentedNetbeans seems have no way to change the line ending. I tidied up newlines with dos2unix.
I will think about getting a review bonus. Thanks for reminding.
Comment #6
pgogy commentedHello
Comment #7
pgogy commentedHappy to test more once I can see the labels.
Comment #8
jygastaud commentedIf you're working on netbeans, you can add this plugin which will allow you to convert line endings.
Comment #9
hgneng commented>If you're working on netbeans, you can add this plugin which will allow you to convert line endings.
Thanks for the tips!
Comment #10
hgneng commentedHi pgogy,
Thanks for the review!
>1. in admin/reports/node-view-history some of the labels for the form are in Chinese? (see attached file)
It seems to be a bug when exporting a view as Features. It will translate strings to locale setting automatically. I've fixed it manually.
>2. package = "Access Log" - The .info guide suggests some standard packages
Removed package option.
>3. in admin/reports/node-view-history could the timestamp be altered to different styles
Do you mean that you want a selection menu to switch timestamp style among short/medium/long format?
Comment #11
pgogy commentedHi
Re 3 - I'm english, so the American date style can be confusing - an option to set a preference would be nice - or display dates with the nam e of the month?
Hope this helps
Comment #12
jygastaud commentedHi,
Manual review:
.module
Comments at line 110 and 127 should end with a . , ? or ! as each other comments.
Please remove unused code as your "Implementation of hook_user_cancel()."
.views_default.inc looks to have a wired encoding format. Please check it.
Comment #13
hgneng commented>American date style can be confusing
got it. I've changed timestamp to long style.
>Comments at line 110 and 127 should end with a . , ? or ! as each other comments.
fixed.
>Please remove unused code as your "Implementation of hook_user_cancel()."
fixed.
>.views_default.inc looks to have a wired encoding format. Please check it.
I've changed those Chinese comments to English.
Comment #14
c-logemannMachine Review is nearly clean:
Maybe add the following link to "Issue summary".
http://ventral.org/pareview/httpgitdrupalorgsandboxhgneng1468518git
and change git link to a guest version:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/hgneng/1468518.git node_view_history
Assigned issue to myself to show that I am working on manual review.
Comment #15
c-logemannModule duplication?
http://drupal.org/node/894256#anchor-goals
What is the difference betwenn this module and "user_access"?
http://drupal.org/project/user_access
Why not merging the projects? You can do the upgrade to Drupal 7 of user_access.
Manual review
I have successfully installed the module in a fresh drupal 7.12 only with views. It seems that it's recognizing node views as it should. But on testing of your default view page the following error appears:
Additionally: If you are providing a page url like "admin/reports/node-view-history" you can also provide a "Normal menu entry" in the "management"-menu to show a link on "admin/reports".
Comment #15.0
c-logemannswitched to 7.x-1.x branch
Comment #16
hgneng commented> Why not merging the projects? You can do the upgrade to Drupal 7 of user_access.
You are probably right. I will take a look at user_access. Thank you very much!!
Comment #17
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #17.0
klausichange git clone command and add link to PAReview result