Commit Graph

2240 Commits

Author SHA1 Message Date
Roardom eca50b5224 update: use prepared statement instead of eager loading peers 2023-07-23 09:16:44 +00:00
HDVinnie dd2fc02a4b Merge pull request #2925 from Roardom/remove-distributor-position
(Update) Drop position column on distributors
2023-07-20 15:58:18 -04:00
HDVinnie e67363e7f5 Merge pull request #2923 from Roardom/add-optgroups
(Add) Group forum categories on topic editing page
2023-07-20 15:57:40 -04:00
Roardom 5ec59675c4 update: drop position column on distributors
With almost 1000 distributors, it's a nightmare trying to add a new distributor and having to change its position. All the distributors are ordered alphabetically anyways so just order based on the `name` field instead.
2023-07-20 10:30:07 +00:00
Roardom 84d8f1d665 add: group forum categories on topic editing page 2023-07-20 08:08:32 +00:00
Roardom 9205f9ec36 fix: user gift styles 2023-07-20 07:46:08 +00:00
HDVinnie d1f3750925 Merge pull request #2917 from Roardom/fix-inbox-read
(Fix) Inbox read indicator
2023-07-19 20:35:47 -04:00
HDVinnie 32ba4518c4 Merge pull request #2909 from Roardom/add-user-tickets
(Add) User tickets to profile
2023-07-19 20:35:29 -04:00
Roardom a7c38c0590 add: user tickets to profile 2023-07-19 22:40:39 +00:00
Roardom 720c4b9dc8 fix: inbox read indicator 2023-07-19 22:04:13 +00:00
Roardom d0272652dd fix: invite relations in route model binding 2023-07-19 08:25:28 +00:00
HDVinnie ab1bcce48c PHP Style Change (Laravel Pint CI) 2023-07-18 04:53:41 +00:00
HDVinnie 3330e0aa1f fix: torrent deletion pms
- insert does not set timestamps automatically
2023-07-18 00:52:34 -04:00
HDVinnie 978a581724 Merge pull request #2908 from Roardom/update-db-perf
(Update) Various database performance improvements
2023-07-16 20:39:10 -04: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 9ba5c7e7c3 update: lazily compute forum post permalink page number 2023-07-15 23:24:26 +00:00
HDVinnie d0fb6d7bf8 Merge pull request #2901 from Roardom/fix-rss-search-by-uploader
(Fix) Authenticated user is null when searching by uploader via rss
2023-07-15 14:58:53 -04:00
HDVinnie 5c0e9217ff Merge pull request #2893 from Roardom/fix-torrent-deletion-message
(Fix) Torrent deletion message not allowing spaces
2023-07-15 14:55:56 -04:00
Roardom e86c16df5f fix: authenticated user is null when searching by uploader via rss 2023-07-15 04:14:58 +00:00
Roardom 061fb0153d fix: torrent deletion message not allowing spaces 2023-07-14 21:11:38 +00:00
Roardom 219b2a5ed6 fix: send invite validation 2023-07-14 08:01:36 +00:00
HDVinnie 54fd289b9e Merge pull request #2886 from Roardom/similar-refresh
(Add) Refresh torrent metadata button
2023-07-12 20:31:01 -04:00
Roardom e5d1fc9ba5 fix: assign ticket to selected staff member
Instead of the authenticated staff member.
2023-07-12 07:10:40 +00:00
Roardom d1e466759e add: refresh torrent metadata button 2023-07-12 06:44:19 +00:00
Roardom 0ffeb4fcf5 fix: missing include in announce controller 2023-07-10 20:44:22 +00:00
HDVinnie eb1d7f6ab0 Merge pull request #2879 from Roardom/fix-create-request-ids
(Fix) Requirement of ids on request creation
2023-07-10 12:08:29 -04:00
HDVinnie 5452194ebc Merge pull request #2830 from Roardom/add-moderation-scopes
(Add) Moderation scopes
2023-07-10 12:07:19 -04:00
Roardom 7f318e08d6 fix: requirement of ids on request creation
IDs irrelevant to the category should not be required.
2023-07-10 06:42:13 +00:00
Roardom 741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
HDVinnie 71b482fa6c Merge pull request #2875 from Roardom/add-playlist-bulk-add
(Update) Allow adding multiple torrents to a playlist
2023-07-10 00:04:45 -04:00
HDVinnie d95f32e6e2 Merge pull request #2829 from Roardom/fix-migration-models
(Fix) Migration models
2023-07-09 23:54:07 -04:00
Roardom 7610359477 update: allow adding multiple torrents to a playlist
Instead of adding one torrent at a time through a text input, a textarea is offered instead where one id/url can be entered per line for convenience.
2023-07-09 08:13:22 +00:00
Roardom f28282fa8a fix: incorrect route parameters on torrent update
Route model binding isn't used here. We need to use the id manually.
2023-07-08 04:53:27 +00:00
Roardom 097c60db72 fix: fetch relation result instead of relation.
We want the category database record, not the query builder instance.
2023-07-08 04:52:22 +00:00
Roardom b4da1366f4 fix: append to correct keywords variable on torrent edit
The wrong variable was used. Previously the string was used instead of the array.
2023-07-08 04:51:12 +00:00
HDVinnie d4de75cd73 Merge pull request #2867 from Roardom/fix-last-replied-topic 2023-07-07 18:34:20 -04:00
Roardom abc4bcafc7 fix: editing topic's forum not updating forum's last replied topic 2023-07-07 20:03:20 +00:00
Roardom a3394cd2a7 fix: only show groups permitted by the user's rank 2023-07-07 17:52:36 +00:00
HDVinnie e442d738e6 PHP Style Change (Laravel Pint CI) 2023-07-07 03:30:38 +00:00
Roardom 64a1d3542f refactor: remove constructor from report controller and tidy validation 2023-07-07 03:18:13 +00:00
Roardom 18a6e7ae6c refactor: split tickets, use route model binding, form requests and mass assignment 2023-07-07 03:18:13 +00:00
Roardom 0f1965260f refactor: use route model binding, mass assignment and form requests for subtitles 2023-07-07 03:18:13 +00:00
Roardom 998bfa0e16 refactor: use route model binding for pages 2023-07-07 03:18:13 +00:00
Roardom 144d27ab39 refactor: use route model binding in articles 2023-07-07 03:18:13 +00:00
Roardom 222d2dee59 refactor: cruddify playlists
Use cruddy routes and controllers. Use route model binding. Use mass assignment. Use form requests. Use pivot model.
2023-07-07 03:18:13 +00:00
Roardom f4cc89095f refactor: graveyard resurrections
Use route model binding. Move methods in controller available to all users to user-specific controller. Clean up controller code.
2023-07-07 03:18:13 +00:00
Roardom e0e0ba0dae update: refactor and fix polls
Fix validation. Use route model binding. Cruddify polls and votes.
2023-07-07 03:18:13 +00:00
Roardom 0000838d8b refactor: cruddy torrents
Separate torrents into cruddy route names. Route model binding isn't possible due to the global scope on unapproved torrents. Use form requests. Simplify the controller flow where possible.
2023-07-07 03:18:13 +00:00
Roardom 70e3505886 update: cruddy requests
Separate requests into cruddy routes. Use route model binding. Allow forfeit of award if request approval is revoked. Use form requests.
2023-07-07 03:18:13 +00:00
Roardom 7b312d219a refactor: use route model binding for staff users 2023-07-07 03:18:13 +00:00