-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #87: Restore broken behavior: after uploading a new torrent its…
… tracker stats must be updated 3c47ffc fix: [#84] SQL query to get list of torrents without stats (Jose Celano) c291557 fix: [#84] restore behavior. Update torrent stats after upload (Jose Celano) Pull request description: When a new torrent is uploaded, we must update the tracker torrent stats in the `torrust_torrent_tracker_stats` table. It worked from the UI but not for the [DB migration script](#77) because the frontend makes a request to get the torrent info after the upload, and that endpoint updates the torrent tracker stats. It must update the stats even if that endpoint is not called after uploading a new torrent. ### Tasks - [x] After uploading a new torrent, update its tracker stats. - [x] Change SQL query for torrent list result if we allow torrents without stats. ### Potencial refactors - Extract `TrackerApiClient` from `TrackerService` - Rename `TrackerService::get_torrent_info` to `TrackerService::update_torrent_tracker_stats` ACKs for top commit: da2ce7: ACK 3c47ffc Tree-SHA512: 34f1d8843b86b49336f27a9f78f71ed980c4a747b59b1a2507efd77c5eb59bf27da3e73c57b23e43910de95c7799d5815658be80f49cae3b6630a24c41294f25
- Loading branch information
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters