-
Notifications
You must be signed in to change notification settings - Fork 2
UFAL/Cherrypick Total Downloads #998
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
Conversation
* Added new feature for downloads of item's bitstreams * Fixed Copilot's suggestions: any type & redundant property access pattern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new feature to display the total downloads count for each item by aggregating download statistics from all its bitstreams. The feature includes a dedicated component with proper internationalization support and integrates with the existing usage reporting system.
- Added TotalDownloadsComponent to fetch and display aggregated download statistics
- Implemented internationalization support for download labels in English and Czech
- Updated usage report model to support flexible value properties
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/assets/i18n/en.json5 | Added English translation for downloads label |
| src/assets/i18n/cs.json5 | Added Czech translation for downloads label |
| src/app/item-page/simple/field-components/file-section/total-downloads.component.ts | Main component logic for fetching and calculating total downloads |
| src/app/item-page/simple/field-components/file-section/total-downloads.component.html | Component template for displaying download count |
| src/app/item-page/item-page.module.ts | Module registration and service provider configuration |
| src/app/core/statistics/models/usage-report.model.ts | Updated model to support flexible value properties |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
* Implemented configurable showing of component
milanmajchrak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot
Added new feature for downloads of item's bitstreams
Fixed Copilot's suggestions: any type & redundant property access pattern
Problem description
Cherrypick our new feature for displaying the Total Downloads of each item's bitstreams (sum of bitstreams download)