Commit Graph

65 Commits

Author SHA1 Message Date
Roardom
5a9ae37921 update: use system user id constant in more places 2024-08-26 09:28:44 +00:00
Roardom
872d28d9c0 fix: larastan relations 2024-08-09 07:33:56 +00:00
HDVinnie
8ad0097fc9 fix: HasFactory types 2024-07-18 23:42:13 -04:00
HDVinnie
c4cd52e23b fix: multiple bugs
- adds laravel 11 casts support to phpstan https://github.com/larastan/larastan/blob/2.x/UPGRADE.md#upgrading-to-296-from-295
- fixes multiple bugs found by phpstan
- removes dead code in torrent filter trait
- ignores three new files in phpstan.neon temp until debugged for timeouts
2024-06-19 13:43:59 -04:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
51fa8ec46b update: laravel
- Laravel 11 introduces a new default application structure with fewer default files. Namely, new Laravel applications contain fewer service providers, middleware, and configuration files.

However, it is not recommend that Laravel 10 applications upgrading to Laravel 11 attempt to migrate their application structure, as Laravel 11 has been carefully tuned to also support the Laravel 10 application structure.
2024-04-23 16:06:37 -04:00
HDVinnie
8a03bec818 add: model docblocks
- this resolves some larastan property issues but in return has revealed quite a few issues with our castings and such. baseline has been regenerated so we can work through them. The properties in docblocks are in order and match everything in DB schema wise.
2024-02-07 16:39:43 -05:00
Roardom
f703b05cf2 update: batch peer connectivity checks asynchronously 2023-09-04 08:58:33 +00:00
HDVinnie
88d114c526 PHP Style Change (Laravel Pint CI) 2023-08-30 09:39:04 +00:00
Roardom
f2066f4441 fix: add type hints to models 2023-08-26 07:43:07 +00:00
HDVinnie
0a735819aa fix: larastan 2023-08-17 22:44:42 -04:00
Roardom
2392da1310 Revert "fix: laravel default job model serialization"
This reverts commit 55d03d3819.
2023-07-28 05:20:33 +00:00
HDVinnie
122d67e781 Merge pull request #2967 from Roardom/fix-announce-model-serialization
(Fix) laravel default job model serialization
2023-07-27 10:22:29 -04:00
Roardom
da7571859f fix: ci 2023-07-27 04:45:41 +00:00
Roardom
55d03d3819 fix: laravel default job model serialization
laravel by default automatically serializes models in a custom way when inserted into a job queue and fetches the model from the database again when the job is ran. We would rather not have these extra queries, so we can't pass in models, or data that is already serialized (as laravel will try to deserailize our serialization too and fail), so we opted for arrays, and filling in the properties into a new model again once the job is handled.
2023-07-27 03:11:04 +00:00
Roardom
4efb06b90f fix: batch peer upserts when site has connectivity check disabled 2023-07-27 01:12:45 +00:00
Roardom
88d6ae1d89 fix: ci 2023-07-26 02:39:44 +00:00
HDVinnie
61fccdc778 Merge branch '7.x.x' into Redis-Peer-Batching 2023-07-24 12:52:43 -04:00
Roardom
1468b4865f fix: store peer unconnectable state
Every time this function is called, we're already updating the `updated_at` timestamp to the current time, so it's a relatively insignificant change to add another field to the update clause at the same time.
2023-07-07 05:31:50 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
HDVinnie
106484f14b update: upsert
- history still needs too be made to upsert
- connectable logic needs updating
- $peer->delete() in job needs to be reworked

The only solution would be to instead of deleting it on stopped event, make another column on the peers table for is_active and update is_active to 1 in every case except for stopped, in which case update it to 0 instead of deleting and then a cron job can delete it later.

Co-Authored-By: Roardom <78790963+Roardom@users.noreply.github.com>
2023-07-02 23:32:42 -04:00
HDVinnie
19b7213889 update: working batch inserts 2023-02-13 19:12:33 -05:00
HDVinnie
f4ebee885c update: lint 2023-02-03 22:23:00 -05: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
ace8dcb5b1 revert: peer batching 2022-11-14 20:10:26 -05:00
HDVinnie
7482cf3a8b update: peer model for primary key 2022-11-13 09:29:35 -05: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
HDVinnie
a6d651c92a fix: casting issues 2022-08-09 23:41:51 -04:00
clandestine8
6ac5d20c95 fix: cache 2022-05-18 09:22:54 -04:00
clandestine8
41a33d405c fix: typo 2022-05-17 23:43:59 -04:00
StyleCI Bot
4239cdabc2 Apply fixes from StyleCI 2022-05-18 03:36:13 +00:00
clandestine8
857c979fff fix: connectable check 2022-05-17 23:34:44 -04:00
clandestine8
ff19dc96fb fix: Redis Connection
Use cache connection in order to ensure fascade drive is still working
2022-05-17 20:52:32 -04:00
clandestine8
d94f62bf34 fix: connectable check
Previously if Announce interval was more than Connectable interval, the key would expire not show accurate result. Now key will live for interval + 2 hours ensuring that there is always a result for an active client (Peers job runs at the two hour mark).
2022-05-17 20:46:49 -04:00
HDVinnie
1fc7c75eaa update: dependencies 2022-02-08 23:34:35 -05:00
HDVinnie
ebb5b72c2b fix: model type hints 2022-01-08 16:26:53 -05:00
HDVinnie
97394c062f chore: adopt type hints 2022-01-07 23:35:33 -05:00
alkl58
57148f03b7 Apply fixes from StyleCI 2021-12-13 21:31:49 +01:00
alkl58
e75e9aa125 (Update) Connectable Check: Use Cache instead modifying Peer Table DB 2021-12-13 21:27:57 +01:00
HDVinnie
bb13866f64 Apply fixes from StyleCI 2021-10-24 03:56:06 +00:00
Alkl58
0c677ffa44 (Add) Config to Disable / Enable Client Connectable Check 2021-10-22 20:37:01 +02:00
HDVinnie
53226828a9 disable: peer connectivity checks
- this needs to be redesigned
2021-08-06 10:51:52 -04:00
HDVinnie
03062711ee Apply fixes from StyleCI
[ci skip] [skip ci]
2021-08-06 04:05:10 +00:00
HDVinnie
dce237ad07 refactor: peer connectable
- this was a major performance issue and was implemented wrong. More refactoring to come.
2021-08-06 00:04:54 -04:00
Alkl58
12f63c9b09 Apply fixes from StyleCI 2021-08-01 22:40:31 +02:00
Alkl58
dafb40d5a7 (Add) Client List in User Profile with Connectable Check 2021-08-01 22:18:26 +02:00