thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
134 stars 27 forks source link

Improve package download endpoint #961

Closed MythicManiac closed 10 months ago

MythicManiac commented 10 months ago

Premise

Summary of changes

This PR can be broken down to three main changes:

Test were also added for this area of code (which was previously untested).

Result

Ultimately the changes here should allow for slightly more efficient download handling and paves the way for time series applications of download metrics.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (9e6116f) 92.81% compared to head (7d87d78) 92.89%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #961 +/- ## ========================================== + Coverage 92.81% 92.89% +0.08% ========================================== Files 283 286 +3 Lines 8459 8478 +19 Branches 786 788 +2 ========================================== + Hits 7851 7876 +25 + Misses 501 497 -4 + Partials 107 105 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.