Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display in pro and public detailed view the number of views and downloads per file (stats) #400

Closed
sebdeleze opened this issue Nov 30, 2020 · 5 comments · Fixed by rero/sonar-ui#316
Assignees
Labels
client request f: statistics Related to the usage, download, view statistics new feature New feature p-High To set a high priority!

Comments

@sebdeleze
Copy link
Contributor

sebdeleze commented Nov 30, 2020

Users want to be able to see the stats of files both in the public and pro UI: number of document views and number of file downloads.

Acceptance criteria

In the admin and public UI, document detail view:

  • Add a section at the bottom of the page like Other files but with title Statistics
    • This section displays the full stats:
    Document views: <number of document views>
    File downloads: 
    <file1.label>: <number of downloads>
    <file2.label>: <number of downloads>
    <etc.>
    
  • Add a third icon next to download icon as <i class="fa fa-chart-bar"></i> below all accessible files.
    • On hover, display a tooltip with "Downloads: "
    • On click, go to #statistics at the bottom of the page.
@sebdeleze sebdeleze added 3 new feature New feature labels Nov 30, 2020
@sebdeleze sebdeleze added triage and removed 3 new feature New feature labels Jan 27, 2021
@pronguen pronguen added new feature New feature and removed triage labels Feb 22, 2021
@mmo mmo changed the title Display in pro detailed view the number of views and downloads per file Display in pro detailed view the number of views and downloads per file (stats) Apr 30, 2021
@mmo mmo changed the title Display in pro detailed view the number of views and downloads per file (stats) Display in pro detailed view the number of views and downloads per file ( stats ) Apr 30, 2021
@pronguen pronguen changed the title Display in pro detailed view the number of views and downloads per file ( stats ) Display in pro and public detailed view the number of views and downloads per file ( stats ) Aug 2, 2021
@sebdeleze
Copy link
Contributor Author

For information, since this commit https://github.com/inveniosoftware/invenio-files-rest/blob/f309ca0e506c8aff8141abc6a715134353d4b66b/invenio_files_rest/views.py#L660, file-download stats tracking is not working anymore as the sender app is not filled and invenio-stats collects the stats only from this sender.

@mmo mmo changed the title Display in pro and public detailed view the number of views and downloads per file ( stats ) Display in pro and public detailed view the number of views and downloads per file (stats) [3] Oct 12, 2021
@github-actions
Copy link

This issue is stale because it has been open 6 months with no activity.

@github-actions github-actions bot added the stale Stale or no longer relevant label Apr 11, 2022
@PascalRepond PascalRepond reopened this Apr 11, 2022
@PascalRepond PascalRepond added p-High To set a high priority! client request and removed stale Stale or no longer relevant labels Apr 11, 2022
@PascalRepond PascalRepond changed the title Display in pro and public detailed view the number of views and downloads per file (stats) [3] Display in pro and public detailed view the number of views and downloads per file (stats) Apr 14, 2022
@PascalRepond
Copy link
Contributor

Blocked by #829

@pronguen pronguen added the f: statistics Related to the usage, download, view statistics label Apr 27, 2022
@pronguen
Copy link
Contributor

pronguen commented Apr 27, 2022

@PascalRepond @mmo Not sure the indicated mockup is the best way to display statistics, especially for the main file: isn't it confusing and too much info to have them between the file and the document type? Other ideas?

I have 3

  • add a third button "statistics" (fa bar-chart-o) below each file, that opens a tooltip and a modal displaying the number of views, unique views, downloads, etc.
  • add a section in the bottom of the document detailed view, below "Other files", called "Statistics"
  • compose the page with tabs like RERO ILS: "Other files", "Description", "Statistics"

@pronguen
Copy link
Contributor

Group PO SONAR decided:

  • have a new section in the bottom (after "Other files") called "Statistics"
  • same in the public and professional view
  • for each file, have a button that redirects to this section + display a mousehover tooltip with the dowloads of the concerned file

@jma jma self-assigned this Jun 9, 2022
vgranata pushed a commit to jma/sonar that referenced this issue Aug 16, 2022
* Adds a statistics property to the documents api.
* Adds the number of document view and file downloads on the documents detailed view.
* Closes rero#400

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
vgranata pushed a commit that referenced this issue Aug 16, 2022
* Adds a statistics property to the documents api.
* Adds the number of document view and file downloads on the documents detailed view.
* Closes #400

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client request f: statistics Related to the usage, download, view statistics new feature New feature p-High To set a high priority!
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants