Commit Graph

75 Commits

Author SHA1 Message Date
Roardom
9bdbe9764c refactor: cached select group id by slug queries
Uses a better key. Doesn't use the cache when it's not needed.
2025-07-14 18:15:29 +00:00
HDVinnie
3dd529d0ba fix: dashboard_torrents count to not include soft deletes 2025-05-30 09:30:47 -04:00
Roardom
a447269552 refactor: use moderation status enum and cast
For consistency and less magic numbers hard coded everywhere.
2025-02-26 14:23:02 +00:00
Roardom
0e4bcb570d refactor: use ANSI-compatible syntax for raw database queries 2024-11-02 04:26:49 +00:00
HDVinnie
2b94479b22 update: report notification blip
- exclude snoozed reports.
2024-10-10 20:21:18 -04:00
Roardom
64a60089d9 refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
2024-08-09 21:08:26 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
6d107e3642 add: tracker request rate stats to staff dashboard 2023-12-15 11:21:40 +00:00
HDVinnie
4ce90b163f PHP Style Change (Laravel Pint CI) 2023-10-13 02:31:58 +00:00
HDVinnie
b3f0386149 cleanup: pt.1 2023-10-12 22:30:52 -04:00
HDVinnie
88d114c526 PHP Style Change (Laravel Pint CI) 2023-08-30 09:39:04 +00:00
Roardom
f6fb3fdc78 fix: staff dashboard seeder/leecher count 2023-08-06 05:59:49 +00:00
Roardom
1bc31fda9d fix: only use active peers for stats and bon 2023-08-03 07:28:16 +00:00
Roardom
b6b4313bdc update: various database performance improvements
Use eager loading where necessary and add a few indexes. The existing index on private_messages for sender_id and read was probably a typo and intended for receiver_id. The first 3 tables indexes are added to are used for queries ran on every page load: namely the new pm, new notification and warnings indicator in the navbar. Additionally, another index on genre_movie proved useful for finding all the genres when given a movie id. Perhaps, another index for finding all movies within a genre would be good as well, but will leave that for a future optimization if deemed necessary.
2023-07-17 00:21:08 +00:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00: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
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
cfbed3990c update: staff dashboard stats
- add caching
2022-09-09 12:56:37 -04:00
HDVinnie
d3abd28925 update: type hints 2022-01-08 15:35:53 -05:00
clandestine8
a737482e79 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-09-06 23:26:02 +00:00
HDVinnie
321847e067 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-05-16 02:41:53 +00:00
HDVinnie
3407075214 refactor: better php8 usage
- Change simple property init and assign to constructor promotion
- Remove unused variable in catch()
- Change docs types to union types, where possible
2021-05-15 22:41:28 -04:00
HDVinnie
041927202c refactor: type and name of catch exception should match 2021-05-15 14:01:27 -04:00
HDVinnie
c7401b7ea8 refactor: preslash simple functions
- performance
2021-01-05 17:45:46 -05:00
HDVinnie
7f77d02dd1 refactor: encapsed strings to sprintf 2021-01-02 17:46:39 -05:00
HDVinnie
8688f57167 refactor: staff home controller 2020-12-30 12:17:51 -05:00
HDVinnie
0733269867 update: phpdoc blocks 2020-07-22 16:57:13 -04:00
HDVinnie
a975116218 refactor: preslash simple functions
- Add pre-slash to short named functions to improve performance by almost 30%
-  @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
2020-07-22 15:09:37 -04:00
HDVinnie
e7ccde0190 refactor: rename property to match type 2020-07-22 14:50:41 -04:00
HDVinnie
8cde8c8e71 chore: styleci 2020-06-03 03:39:23 -04:00
HDVinnie
d1fd67b936 refactor: staff dashboard count queries 2020-06-03 03:28:46 -04:00
HDVinnie
4afdfbdade Apply fixes from StyleCI
[ci skip] [skip ci]
2020-04-19 05:31:13 +00:00
HDVinnie
ea2a12be15 refactor: closure to arrow function 2020-04-14 20:38:48 -04:00
HDVinnie
408bfafc3e Apply fixes from StyleCI
[ci skip] [skip ci]
2020-03-05 15:47:30 +00:00
HDVinnie
4b9c006a05 chore: phpdoc blocks cleanup 2020-03-05 10:46:14 -05:00
HDVinnie
e47afe4ab4 chore: styleci 2020-02-12 14:51:22 -05:00
HDVinnie
80c842e39c chore: update license block
- make styleci happy
2020-02-12 14:49:18 -05:00
HDVinnie
dbb928f940 chore: update license block 2020-02-12 14:45:59 -05:00
HDVinnie
9a893662de Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie
0bece18c5c (Update) Group Queries 🚀
- add caching to system required groups
2019-11-20 12:11:41 -05:00
HDVinnie
d889971834 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-05 22:40:30 +00:00
HDVinnie
da30d2a706 (Update) CRUDDY PT.8 🚀 2019-10-29 20:26:54 -04:00
HDVinnie
eed3b51c92 (Update) CRUDDY PT.7 🚀 2019-10-25 17:35:14 -04:00
HDVinnie
c45c715dcb (Update) CRUDDY PT.2 🚀 2019-10-22 20:29:07 -04:00
HDVinnie
f19899caab (Update) Code Style 🚀
- php-cs-fixer
2019-09-17 18:48:44 -04:00
HDVinnie
7b87b14982 (Update) Staff Dashboard 🚀
- removes countup too
2019-09-16 18:06:56 -04:00
HDVinnie
761f3175e9 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-05-18 17:13:15 +00:00
HDVinnie
ad2e4c0a11 (Update) Refactor Seedbox System 🚀 2019-05-15 23:10:44 -04:00