Commit Graph

11694 Commits

Author SHA1 Message Date
HDVinnie e5a0f99da4 fix: #3735
- We dont need to auto update anymore. This is killer in loops. We already have a command that updates on weekends. We wrap the command in a if else that only executes if cache is present in case of redis restart.
2024-07-21 23:49:43 -04:00
HDVinnie 0a2894eabb Merge pull request #3998 from HDInnovations/Bug-3815
(Fix) Bug #3815
2024-07-21 22:49:49 -04:00
HDVinnie 56b3f802f0 fix: torrent icons
- As seen in #3815 there are many selects missing for resources/views/components/partials/_torrent-icons.blade.php. It is pointless to add them all just to omit a few. There was no performance loss locally.
- closes #3815
2024-07-21 22:42:32 -04:00
HDVinnie 480fe42d0f fix: demo seed command 2024-07-21 18:44:03 -04:00
HDVinnie a1a4942dc7 Merge pull request #3996 from HDInnovations/GiitHub-Actions
(Update) GitHub Actions
2024-07-20 18:14:49 -04:00
HDVinnie c83590ed88 Merge pull request #3993 from Roardom/topic-priorities
(Update) Sort pinned topics by priority
2024-07-20 18:14:31 -04:00
HDVinnie a6e794656b Merge pull request #3995 from Roardom/fix-peers-binary-migration
(Fix) Migration to change peers ip to varbinary
2024-07-20 18:14:05 -04:00
HDVinnie 1eb8670093 Merge pull request #3994 from Roardom/fix-external-tracker-column-headings
(Fix) External tracker column headers
2024-07-20 18:13:42 -04:00
Roardom c8ef6af383 fix: migration to change peers ip to varbinary
fixup of 8c11521. It was unintentionally changed from varbinary to binary. The ip column must not be fixed length, since mysql will right pad the other 12 bytes of 4-byte ipv4 addresses with NUL (`\0`) bytes, which breaks `INET6_NTOA()`. The full 16 bytes are needed for ipv6 addresses however. Note that the commit this fixes isn't yet in stable, so anyone running the development branch in prod will have to update their schema manually.
2024-07-20 18:35:24 +00:00
Roardom bb5dca8459 fix: external tracker column headers 2024-07-19 19:55:35 +00:00
Roardom 340122755c update: sort pinned topics by priority
resolves #3989
2024-07-19 16:56:54 +00:00
HDVinnie 83cf813f15 update: prettier-blade.yml 2024-07-19 02:43:48 -04:00
HDVinnie 516f85e0af update: README 2024-07-19 02:43:41 -04:00
HDVinnie 80e5c4df7c update: larastan.yml
- better output
2024-07-19 02:38:10 -04:00
HDVinnie c15a0a7553 update: phpunit and phpstan workflows
- cleanup caching
2024-07-19 02:32:33 -04:00
HDVinnie a922de7561 update: phpstan reintroduce livewire 2024-07-19 02:21:28 -04:00
HDVinnie ec708b9eb3 Merge pull request #3992 from Roardom/fix-mass-pm
(Fix) Process mass pm not sending pms
2024-07-19 02:19:11 -04:00
Roardom 4f70fbbc38 fix: process mass pm not sending pms 2024-07-19 06:02:36 +00:00
HDVinnie 5979e1eb46 add: phpstan caching 2024-07-19 02:00:20 -04:00
HDVinnie 9e80f7f9e6 update: larastan.yml 2024-07-19 01:39:43 -04:00
HDVinnie 464f439169 update: larastan setup 2024-07-19 01:33:55 -04:00
HDVinnie 60333d8ab3 update: larastan.yml 2024-07-19 01:28:24 -04:00
HDVinnie 581a9d0303 Merge pull request #3991 from HDInnovations/Larastan
(Update) Larastan
2024-07-19 00:02:10 -04:00
HDVinnie 3ad3bb992b PHP Style Change (Laravel Pint CI) 2024-07-19 03:43:14 +00:00
HDVinnie 8ad0097fc9 fix: HasFactory types 2024-07-18 23:42:13 -04:00
HDVinnie 2eaf13b393 update: phpstan-baseline.neon
- With the latest larastan and laravel changes such as https://github.com/laravel/framework/pull/52005 we have a lot more errors. This commit generates a new baseline.
2024-07-18 23:19:47 -04:00
HDVinnie 8665ce0848 update: unit3d config 2024-07-17 21:28:14 -04:00
HDVinnie 4286b5f891 update: dependencies 2024-07-17 21:26:36 -04:00
HDVinnie 9d537dd3ee remove: dead code 2024-07-17 21:24:59 -04:00
HDVinnie ded7b0808e Merge pull request #3986 from Roardom/unneccessary-commands
(Update) Don't run redundant commands when external tracker is used
2024-07-17 20:55:07 -04:00
Roardom e584349eb3 update: don't run redundant commands when external tracker is used
The external tracker handles the upserts (`auto:upsert_peers`,
`auto:upsert_histories`, and `auto:upsert_announces`), handles
incrementing/decrementing the seeders/leeches/times_completed
(`auto:sync_peers`), and handles incrementing/decrementing the
balance (`auto:torrent_balance`).

The external tracker keeps track of leech slots internally, so
the leech slot caching isn't needed and as a result, shouldn't
be touched inside the `auto:flush_peers` command either.

There's no inaccurate stats issues that could happen if these
commands are run, but a normal 200 ms 3000-record upsert from
the external tracker takes 2-3 seconds if they happen at the
same time as the `auto:sync_peers` or `auto:torrent_balance`
commands are being run.
2024-07-17 13:01:16 +00:00
HDVinnie 69de9f889f Merge pull request #3985 from Roardom/bug-report-error-500
(Update) Amend issue template to require stack trace for error 500s
2024-07-17 02:43:36 -04:00
HDVinnie fd5ec29e6f Merge pull request #3983 from Roardom/peers-composite-primary-key
(Update) Use composite primary key for peers
2024-07-17 02:43:04 -04:00
Roardom c571d61376 update: amend issue template to require stack trace for error 500s 2024-07-16 12:47:31 +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
HDVinnie 4a0cccf735 Merge pull request #3981 from Roardom/torrent-filters-dto
(Refactor) Use DTO to modularize torrent searching
2024-07-14 22:23:50 -04:00
HDVinnie c70980e64b Merge pull request #3978 from Roardom/fix-tracker-errors
(Fix) Type error in tracker exception
2024-07-14 22:22:48 -04:00
HDVinnie 2edd1741a4 Merge pull request #3977 from Roardom/facet-links
(Fix) Pre-generated links to torrent search facets
2024-07-14 22:22:27 -04:00
HDVinnie dc02756218 Merge pull request #3975 from Roardom/bladestan
(Add) Phpstan bladestan static analysis
2024-07-14 22:22:01 -04:00
Roardom 4b3b864fa4 refactor: use DTO to modularize torrent searching 2024-07-12 14:40:27 +00:00
Roardom 40a68dda9b fix: type error in tracker exception
Some values passed are integers.
2024-07-11 10:33:07 +00:00
Roardom 7c896935f5 fix: pre-generated links to torrent search facets 2024-07-11 10:29:57 +00:00
Roardom bd9f820153 fix: phpstan livewire pagination types 2024-07-09 12:24:34 +00:00
Roardom f25311534f add: phpstan bladestan static analysis
Allows static analysis of blade templates.

I had to add semi-colons to the end of `@php` directives, and swap `@json` for `{{ @JS::from }}` otherwise bladestan would crash.
2024-07-09 11:59:42 +00:00
HDVinnie 86d0c326f4 Merge pull request #3974 from HDInnovations/Request-Search-Cache
(Refactor) Move request search facet queries to computed properties
2024-07-09 02:09:41 -04:00
HDVinnie 236c4ec776 Merge pull request #3967 from Roardom/torrent-search-cache
(Refactor) Move torrent search facet queries to computed properties
2024-07-09 02:09:24 -04:00
HDVinnie a1592b2841 fix: phpstan errors 2024-07-09 01:56:45 -04:00
Roardom 9cbfe6c315 refactor: move torrent search facet queries to computed properties 2024-07-09 05:19:44 +00:00
HDVinnie 24e0ee1e6b Merge pull request #3968 from Roardom/cache-user-relations
(Fix) Cache null values for user settings/notifications/privacy relations
2024-07-08 20:53:52 -04:00
HDVinnie 130aca4ca1 refactor: move request search facet queries to computed properties
- continues off PR #3967
2024-07-08 20:53:15 -04:00