more revisions = more file listed on download counter page

TyraelTLK - November 29, 2008 - 19:18
Project:download_count
Version:6.x-1.3
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

Attatch a file to a node.
Create some revisions of that node.
On download counter page the same file is listed more times.

#1

Miravlix - November 30, 2008 - 22:14

I can confirm this issue, revisions just don't work well with download count.

checkrestart-0.47-sep 15 1 day 8 hours ago view Story
checkrestart-0.47-sep 15 1 day 8 hours ago view Story
genloop 15 1 day 4 hours ago view Story
edopts. 9 15 hours 46 min ago view Book page
edopts. 9 15 hours 46 min ago view Book page
edopts. 9 15 hours 46 min ago view Book page
emerge_cflags_cleanup_0. 9 4 days 12 hours ago view Book page
make.conf 7 16 hours 13 min ago view Book page
make.conf 7 16 hours 13 min ago view Book page
make.conf 7 16 hours 13 min ago view Book page
checkrestart 6 1 day 6 hours ago view Story
emerge. 6 2 days 17 hours ago view Book page
merge. 6 1 day 8 hours ago view Book page
emerge. 6 2 days 17 hours ago view Book page
merge. 6 1 day 8 hours ago view Book page
emerge. 6 2 days 17 hours ago view Book page
merge. 6 1 day 8 hours ago view Book page
checkrestart 6 1 day 6 hours ago view Story
checkrestart 6 1 day 6 hours ago view Story
emerge_cflags_cleanup. 1 1 week 6 days ago view Book page
emerge_cflags_cleanup. 1 1 week 6 days ago view Book page
porticron-0.1-sep-r1.tar_.bz2 1 22 hours 17 min ago view Story

#2

pimousse98 - April 6, 2009 - 15:58

It would be great to have counts grouped by node with details for each revision. Right now it seems to duplicate the entry as many times as there are revisions, i.e. it is not keeping a subtotal for each revision.

Here are a few ideas on the way to implement. One way would be to have an option in settings to "collate counts across all revisions" or "show counts for each revision separately". If the second option is chosen then the revision number or time stamp should be visible and the counts should be kept for each version separately.

Another way could be to have a threaded view such as:

my_file mynode 10 1 day ago view node
revision_1 6
revision_2 2
revision_3 2 (current)

In a perfect world, it would flag when the file was updated vs. when a revision was created for other reasons (text change). A threaded view by file version would be great too.

 
 

Drupal is a registered trademark of Dries Buytaert.