Improve Top Downloaded Apps to use last 24 months aggregation#119
Improve Top Downloaded Apps to use last 24 months aggregation#119qzMalekuz wants to merge 1 commit intocytoscape:masterfrom
Conversation
|
Could you add unit tests to |
|
Also there is another pull request someone else did on 112: #113 |
f5bfd08 to
e373566
Compare
e373566 to
e49c04a
Compare
|
I’ve added the requested unit tests in apps/tests.py (TopDownloadedAppsTestCase), and all tests are passing successfully. This implementation aggregates download counts from ReleaseDownloadsByDate over the last 24 months using Django ORM (Sum). Since download history is stored in ReleaseDownloadsByDate, aggregating from this model ensures the ranking reflects downloads within the specified time window rather than relying on the lifetime downloads field, which makes more sense. This approach also avoids modifying the existing downloads field and keeps the change limited to the UI ranking logic, aligning with the current data model. Thank You. |
This PR updates the Top Downloaded Apps UI to use aggregated
download data from the last 24 months using ReleaseDownloadsByDate.
Let me know if you would prefer the logic structured differently.
Related to #112