Commit Graph

485 Commits

Author SHA1 Message Date
HDVinnie a256f0a129 Merge pull request #4187 from Roardom/fixup-audits-query 2024-09-29 07:11:41 -04:00
Roardom a444c0c5a5 fixup! update: add indexes to audits to speed up staff activity counts
Somehow forgot to include the migration in PR #4181, whoops!
2024-09-29 05:45:45 +00:00
Roardom 9c97dd0a3b update: improve db performance when calculating top movie/tv statistics
Improves the query time from 23 s to 1.5 s on my untuned dev instance for top10 queries and yearly overview queries. We have a little bit of wiggle room in history table upserts that we can afford the extra index update on history creation/completion to compensate from these otherwise very slow queries.
2024-09-29 05:39:32 +00:00
HDVinnie 13208052f5 add: donation transaction encryption 2024-09-17 11:20:30 -04:00
HDVinnie f890a61771 add: donation scss and package descriptions 2024-09-16 20:54:43 -04:00
HDVinnie 7406a5655f add: missing icon column 2024-09-12 18:43:56 -04:00
HDVinnie 428bf63910 add: base donation system 2024-09-12 13:03:38 -04:00
Roardom f51bfab180 add: option to snooze reports 2024-09-03 01:36:07 +00:00
Roardom 3b34151c3c update: add indexes to torrents table
Index on the name makes it so that the query to check if a torrent of the same name already exists upons upload is instant instead of taking 600 ms. Index on user_id, status, anon, deleted_at makes home page load instantly instead of taking 10+ seconds to calculate user stats.
2024-08-31 10:44:52 +00:00
HDVinnie 9fec5295a1 PHP Style Change (Laravel Pint CI) 2024-08-26 20:53:39 +00:00
HDVinnie f4d6e53227 Merge pull request #4084 from Roardom/fix-bot-seeder
(Fix) Bots table seeder
2024-08-26 16:52:39 -04:00
Roardom a9ac8b54e1 fix: bots table seeder 2024-08-26 08:57:20 +00:00
Roardom d1465ae390 remove: unused category num_torrents column 2024-08-25 14:14:24 +00:00
Roardom 5f28892153 add: password reset history logging 2024-08-17 15:05:47 +00:00
HDVinnie f92194281c refactor: release years
- remove the release_year column from the torrents table and just search the movie/tv tables instead
2024-08-13 22:18:38 -04:00
HDVinnie 2f4b57753a update: 2024_07_28_231553_update_cat_type_res_table.php
- These need to be nullable for external tracker atm. It’s still covered at an application level to not be null but just need it for announce temp.
2024-08-04 21:39:11 -04:00
HDVinnie 004a719375 Merge pull request #4011 from Roardom/fix-some-user-group-permissions
(Fix) Some user group permissions
2024-08-04 19:46:03 -04:00
HDVinnie 6af484a257 Merge pull request #4014 from HDInnovations/Trump-System
(Add) Request #4006
2024-08-04 19:44:33 -04:00
HDVinnie 5c6e36c84a fix: migration
- smallIncrements is needed
2024-07-28 21:34:23 -04:00
HDVinnie 31174b5a51 PHP Style Change (Laravel Pint CI) 2024-07-29 01:28:03 +00:00
HDVinnie 849cdebec0 update: 2024_07_28_231553_update_cat_type_res_table.php 2024-07-28 21:27:03 -04:00
HDVinnie b7f63ac6ff update: migration
- drop old foreign key
2024-07-28 21:21:31 -04:00
HDVinnie 7469a11ea1 add: #4006
- closes #4006
2024-07-28 21:18:09 -04:00
HDVinnie e812d8fc34 refactor: table primary keys
- Change primary keys of category_id, resolution_id, type_id to unsigned smallint
- Checking if any torrents/requests exist with non-existent categories/resolutions/types
if so, create a new category/type/resolution called "Other"
- Update the related id to the Other relation
- Adds constraints with on delete restrict for these relations to the torrents and requests tables
2024-07-28 20:49:30 -04:00
Roardom 2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
HDVinnie b0ed0263fb Merge pull request #4009 from Obi-Wana/add-poll-expiry-date 2024-07-24 13:28:10 -04:00
Jay 2ef73fa0ef Remove down() migration 2024-07-24 17:18:32 +00:00
Jay Sizzla 6894cca148 Allow polls to expire after a certain date 2024-07-24 16:23:06 +02:00
Roardom e9fe52ac6d update: use composite primary key for history 2024-07-23 06:24:57 +00: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
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 340122755c update: sort pinned topics by priority
resolves #3989
2024-07-19 16:56:54 +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
Jay 2ac770746a (Add) Active and inactive uploader staff view (#3824)
Co-authored-by: HDVinnie <hdinnovations@protonmail.com>
2024-07-03 11:38:11 -04:00
Roardom 14cb175a4e update: save prewarned timestamp
Allows users to more easily see when they were prewarned in case they no longer have their notification.

It was decided to discard previous prewarn values and have the system prewarn users again if applicable.

It was decided that keeping the history of prewarn values wasn't valuable for this migration.
2024-06-23 23:52:22 +00:00
Roardom 8c11521491 fix: laravel 11 migration syntax
In laravel 11, they changed the syntax for changing columns so that all constraints are removed and reapplied, compared to only adding constraints that weren't added before. I generated the sql code of each migration on laravel 10, and the same on laravel 11, and compared the sql code between the two versions and changed the migrations so that the sql matched between the two versions.
2024-06-21 09:26:28 +00:00
HDVinnie bad416e133 PHP Style Change (Laravel Pint CI) 2024-06-14 00:59:23 +00:00
HDVinnie 2378a9f977 add: soft deletes to torrents
- this adds laravel's soft deletes functionality to torrents.
2024-06-13 20:58:19 -04:00
Roardom 2a4d822a7c remove: unused bot columns 2024-06-09 05:32:05 +00:00
Roardom cdb063d8e0 add: private message threads 2024-06-07 20:47:36 +00:00
Roardom 02adfdc8b5 add: user setting to disable torrent search autofocus 2024-06-04 12:08:37 +00:00
Roardom d66f84dc4a update: allow saving default torrent sort column
After 10+ hours of debugging and searching through livewire issues, it turns out that the query string doesn't update if you have `history: true` in the `#[Url()]` attribute.
2024-06-01 11:37:15 +00:00
Roardom b027fb1e69 fix: various wishlist issues
- Add stricter validation
- Fix `tv_id` field
- Add index to `tv_id` column
- Cast input to integer
2024-05-27 08:47:47 +00:00
HDVinnie 60b20974a3 Merge pull request #3872 from Roardom/normalize-user-settings
(Update) Normalize user settings
2024-05-26 15:24:38 -04:00
HDVinnie 18e4e5133d Merge pull request #3871 from Roardom/remove-peer-hidden-stat-hidden
(Remove) Unused columns on users table
2024-05-26 15:18:03 -04:00
HDVinnie e8883c132a PHP Style Change (Laravel Pint CI) 2024-05-26 19:17:19 +00:00
HDVinnie 1f702a2d37 Merge pull request #3863 from Roardom/title-subscribe
(Refactor) Wishlist and add movie/tv subscriptions
2024-05-26 15:13:22 -04:00
Roardom d00475778b update: normalize user settings
Use a 1-1 relation. Cache it indefinitely to reduce queries for every http request. This will make it much easier to add additional user settings for various site features without sacrificing clean code or performance.
2024-05-26 10:42:00 +00:00
Roardom 683ba9077a remove: unused columns on users table 2024-05-26 04:40:57 +00:00
Roardom 0df196f077 refactor: wishlist and add movie/tv subscriptions
closes #3826
2024-05-24 11:38:06 +00:00