Commit Graph

17 Commits

Author SHA1 Message Date
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
f653641e2b fix: connectivity check on external tracker
The external tracker updates the peer row and doesn't touch the redis cache.
2024-04-19 14:32:43 +00:00
Roardom
c653a4d447 fix: visible peers select on torrent page and label on user actives 2024-02-22 12:22:45 +00:00
Roardom
c554e29abe update: keep peers that stopped announcing for longer
Now that we upsert history records without first selecting them, we can't rely on storing a peer's last uploaded/downloaded values in the history record to determine the user's uploaded/downloaded delta between the last announce. If a user has internet issues for a brief period of time but their client continues working, then their change of upload/download between the two announces needs to be kept track of. This is usually kept track of in the peer record, but if the peer is deleted after 2 hours of not announcing, then their last uploaded/downloaded data is deleted with it. We previously stored this data in the history table to handle such cases but this became erroneous if the user had multiple peers on a torrent. This new solution keeps the peers in the database for 2 days before concluding that the peer isn't coming back and deletes the peer permanently. After which point, a new peer will be created and an assumption is made that they uploaded/downloaded 0 data within their downtime.
2023-07-29 05:12:35 +00:00
Roardom
9e932619ef fix: status on torrent peers page 2023-07-27 03:47:43 +00:00
Roardom
10c146d217 add: peer active status
Mark peers for deletion via this column so that they can be mass deleted later. This allows for combining peer inserts, updates and deletions into a single bulk peer upsert queue. Otherwise, when a user stops and starts a torrent before the bulk peer updates are collected in the queue, the peer may be deleted immediately after it gets inserted.
2023-07-23 00:42:45 +00:00
Roardom
741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
HDVinnie
85ab302611 update: announce 2023-01-23 21:31:51 -05:00
HDVinnie
b044cbc92c update: working optimized announce 2023-01-17 22:01:28 -05:00
Roardom
22a8c7d29b update: peers table 2022-12-22 14:59:23 -06:00
HDVinnie
2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
Roardom
7ed269147f fix: peer progress bar 2022-08-27 20:19:11 -05:00
HDVinnie
64ceb7e195 update: torrent peers query
- no paginate
2022-05-29 21:13:16 -04:00
HDVinnie
d73dd39818 refactor: crudify torrent controller
- routes to be cleaned up at end of controller refactors
2022-05-26 22:45:31 -04:00