20 Commits

Author SHA1 Message Date
Roardom
a199eec068 update: remove unncessary home page queries
The data from these queries were originally used directly in the views to avoid n+1, but now the TopTorrents Livewire component includes the appropriate queries.
2024-10-01 08:46:31 +00:00
Roardom
80b9aa32bf add: livewire top users
More cleanly modularized using livewire computed attributes. Abuses the fact that only one of the tabs is selected and most users won't access the other tabs. This significantly reduces the time spent loading the home page when the cache is cleared.
2024-06-01 15:47:26 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
ec236053f7 add: personal releases 2024-04-11 18:24:06 -04:00
HDVinnie
19f3f13563 update: homecontroller test 2024-04-08 19:06:12 -04:00
Roardom
a8b6f1fdcc add: livewire top torrents panel
By only showing the newest torrents by default, we can abuse the fact that it's the only tab we can easily put an index on to make the home page load fast, and keep the 4 other tabs that take ~1 second to query lazily loaded until clicked upon.
2024-03-06 19:34:31 +00:00
HDVinnie
836fd2777c PHP Style Change (Laravel Pint CI) 2023-07-17 22:32:06 +00:00
HDVinnie
6af8a72af6 update: test-suite
- Tests: 422 incomplete, 318 passed (684 assertions) and coverage Total: 22.7%.
2023-07-17 18:30:58 -04:00
HDVinnie
8daf39c331 update: test suite 2023-07-11 16:48:07 -04:00
Shift
0f33d2846d Define test classes as final 2023-07-10 18:54:51 +00:00
Shift
812238b4b8 Adopt PHP attributes in test classes 2023-07-10 18:54:51 +00:00
HDVinnie
97394c062f chore: adopt type hints 2022-01-07 23:35:33 -05:00
Laravel Shift
fac1da0b42 Shift cleanup 2020-09-08 22:25:06 +00:00
Laravel Shift
089632a4ac Namespace seeders 2020-09-08 22:24:37 +00:00
Laravel Shift
add31768f5 Shift to class based factories 2020-09-08 22:24:30 +00:00
PHP Shift
d8b188772f Shift return type of base TestCase methods
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html
2020-05-26 00:59:55 +00:00
Ben Johnson
9ccdfbb9c1 tests: Improve HomeController test and add new one for 2FA 2020-02-20 12:13:17 -05:00
Ben Johnson
b2550bb71c tests: Add bare-minimum testing configuration 2020-02-14 15:00:18 -05:00
HDVinnie
987bed7a7b Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-13 21:45:47 +00:00
Laravel Shift
daa7cad1b4 Generate HTTP tests for controllers 2020-01-22 17:19:02 +00:00