Commit Graph

57 Commits

Author SHA1 Message Date
HDVinnie 93a8a8d375 PHP Style Change (Laravel Pint CI) 2023-08-31 09:22:36 +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
Laravel Shift fac1da0b42 Shift cleanup 2020-09-08 22:25:06 +00:00
Laravel Shift add31768f5 Shift to class based factories 2020-09-08 22:24:30 +00:00
HDVinnie 01093d711c Apply fixes from StyleCI
[ci skip] [skip ci]
2020-07-28 16:54:24 +00:00
HDVinnie 41b617bb2e update: laravel 7 support 2020-07-19 17:33:50 -04:00
HDVinnie 780e0c1f0e chore: update license block 2020-02-12 15:05:34 -05:00
HDVinnie 9a893662de Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie ef0b9e0203 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-13 14:36:38 +00:00
HDVinnie 2a0affa30d (Update) Model PHPDocs 🚀 2019-11-11 20:52:59 -05:00