Commit Graph

24 Commits

Author SHA1 Message Date
Roardom
4c10b0fdf6 add: peers search filter to find shared sockets
Also fix mysql distinct syntax error that broke grouping by user_session.
2024-09-04 21:36:10 +00:00
Roardom
10fc1b2368 update: use composite primary key for peers
The same as was done in #2446 and reverted in ace8dcb but this time using workarounds for Eloquent when it tries to use the non-existing `id` column.
2024-07-16 09:45:03 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
71c5a3ebcb patch: livewire url attributes 2024-03-06 02:02:05 -05:00
HDVinnie
2fa847f6a8 remove: dead code 2024-03-04 16:21:58 -05:00
HDVinnie
bde593e48b update: livewire 2024-03-03 22:41:29 -05:00
Roardom
b274347313 refactor: use whereRelation when possible
All changes were tested for performance regressions. None of the included changes were affected. However, the code that uses `whereIn('category_id', Category::select('id')->where('movie_meta', '=', 1)` saw a ~10% performance loss so should not be changed.
2024-03-03 15:56:02 +00:00
Roardom
fe31076104 Reapply "Merge pull request #3380 from Roardom/livewire-types"
This reverts commit b4a9dfea8b.
2024-01-24 08:03:05 +00:00
HDVinnie
b4a9dfea8b Revert "Merge pull request #3380 from Roardom/livewire-types"
This reverts commit a4e1a1bc62, reversing
changes made to 10982c68bd.
2024-01-14 16:18:08 -05:00
Roardom
69cd4aa982 update: livewire sortBy to trait and add parameter type 2024-01-14 11:35:55 +00:00
Roardom
7037200377 fix: Livewire queryString type hint 2024-01-14 11:35:55 +00:00
Roardom
b6a3917575 fix: add type hints to Livewire computed properties 2024-01-14 11:35:55 +00:00
Roardom
6e6f551367 fix: various larastan livewire issues 2023-08-25 06:45:41 +00:00
Roardom
480c31a0a4 update: sort peers descending by default 2023-08-03 12:16:48 +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
da7571859f fix: ci 2023-07-27 04:45:41 +00:00
Roardom
262ba60fed fix: peers search by torrent name 2023-07-14 21:43:36 +00:00
HDVinnie
2a3ee4a045 remove: dead livewire component function 2023-06-19 10:07:56 -04:00
Roardom
188c6b0451 update: allow searching peers by incomplete peers
Staff will have to use `%` and `_` manually.
2023-05-09 10:19:46 +00:00
Roardom
1ec8306d39 fix: peers search by ip
Also remove leading wildcard prefix for better performance. User can type it manually if necessary
2023-04-23 09:08:47 +00:00
Roardom
37dd5f25b6 fix: peer search by ip 2023-03-23 01:36:31 -05:00
Roardom
156fe8d970 update: more filters for peer search 2023-03-19 23:51:20 -05:00
HDVinnie
a599e0a928 fix: peer search 2023-03-19 19:13:13 -04:00
Roardom
e8961b9c2a add: staff dashboard peer search 2023-02-27 00:32:54 -06:00