Commit Graph

246 Commits

Author SHA1 Message Date
Earlopain
2cd96817b0
[DB] Improve performance of some wildcard text searches
Comments are consistently timing out. The others don't necessarily need this,
but it improves performance nevertheless
2023-05-18 20:23:27 +02:00
Donovan Daniels
b339e84612
[Tickets] Profile Links & Pending Count (#518)
* [Tickets] Profile Links & Pending Count

* stuff a sock in it, rubocop

* Remove counts fixer for ticketss

* Update app/views/tickets/show.html.erb

Co-authored-by: Earlopain <earlopain+github@protonmail.com>

* Update app/views/tickets/show.html.erb

Co-authored-by: Earlopain <earlopain+github@protonmail.com>

* use standardized timestamps

* this got yeeted at some point

* Fix search links, only show pending count when >= 2

I'm imagining some confusion if it shows one pending when it is just
the one you're looking at right now

* Fix fixer? `update_column` throws a readonly error

* `for_user` is only used in fixer script

* Fix fixer script, for real

---------

Co-authored-by: Earlopain <earlopain+github@protonmail.com>
Co-authored-by: Earlopain <earlopain@protonmail.com>
2023-05-16 20:48:51 +02:00
Donovan Daniels
6d6282ab91
[TIckets] Expand Accused Search (#513)
* [Tickets] Expand Accused Search

* Fix foreign key name, fix fixer script

* Add the accused to the ticket index page

---------

Co-authored-by: Earlopain <earlopain@protonmail.com>
2023-05-10 18:07:35 +02:00
Donovan Daniels
bf07012fc2
[HelpPages] Add default value for related & title 2023-03-16 16:53:03 -05:00
Earlopain
0faf1fa1a3
[UserFeedback] Fix body search timing out
This somehow worked without the index previously.
2023-03-14 18:59:41 +01:00
Earlopain
465c5b31c2
[DB] Make timestamps "not null"
This changes most, but not all. The remaining ones have nulls on prod
and must first be cleaned up.
2023-03-12 12:36:14 +01:00
Earlopain
fbf33f7d29
[DB] Remove test_parser extension
Usage has been removed in 5215876862 and pr #476
2023-02-26 16:41:02 +01:00
Earlopain
ba0f9872c3
[DB] Drop dedicated index columns and their triggers
Their usage was removed in 5215876862
2023-02-22 19:37:13 +01:00
Earlopain
1600ecdf77
[Mascots] Drop safe_mode_only column
Replaced in b58707fab2
2023-02-22 19:37:10 +01:00
Earlopain
5215876862
[DB] Remove usage of dedicated index columns
The index for posts is also getting added, but will get used at a later date
If this turns out to work fine the materialized index colums can be dropped

This contains a semantic change where dmail and wiki page searches for the body
no longer includes matches for the title
2023-02-19 20:01:54 +01:00
Earlopain
8632aefb92
[DB] Fix accidental changes from a24bfeed69 2023-02-17 21:32:50 +01:00
Earlopain
a2c4f4f4a5
[DB] Remove some dev/prod differences 2023-02-10 10:39:41 +01:00
Earlopain
b58707fab2
[Mascots] More granular control on which site they appear
Previously it was only possible to exclude them from e9.
This allows mascots exclusive to e6 as well.
2023-02-03 18:11:17 +01:00
Earlopain
a24bfeed69
[DB] Update strucutre dump to what postgres gives us
This change appears every time a migration is done. It's beyond me why I
haven't commited that yet.
2023-02-03 18:00:42 +01:00
Earlopain
c46e1f5fd9
[Mascots] Add option to restrict to e926 2022-10-16 18:37:12 +02:00
Earlopain
b5fbc1e2eb
[Home] Add dynamic mascots 2022-10-15 21:40:40 +02:00
Earlopain
d10607b033
[DB] Make some fields not null
This was already the case in the production database. Also contains a few
other small changes to bring the two more in line.
2022-08-14 21:38:09 +02:00
Earlopain
7e33ea8271
[Cleanup] Remove pool is_deleted
Pools are hard-deleted now. There are also a few pools with this flag
which can't be properly deleted at the moment
2022-07-11 22:52:26 +02:00
Earlopain
93cd28c0e1
[Posts] Change comment locked to disabled
Instead of just preventing new comments hide everything completly.
2022-05-16 15:53:39 +02:00
Earlopain
6d3f272e90
[Posts] Allow locking comment sections 2022-05-16 14:20:11 +02:00
Earlopain
3de690961d
[Cleanup] Remove unused gems and tables/columns 2022-04-07 19:17:33 +02:00
Earlopain
a09058f2cf
[Users] Add default to user about/artinfo
This fixes generating modactions for users who have never edited their profile
when an admin does so, since the value changed from null to the empty string
2022-02-20 11:20:26 +01:00
Earlopain
e9f7ac85bf
[Cleanup] Remove artist commentaries 2022-02-03 17:02:49 +01:00
Earlopain
ea28ab906b
[Posts] Add events for status/note lock 2022-01-06 13:54:40 +01:00
Earlopain
aa77f1a76a
[Posts] Save post events in separate table
Part of  #346
2022-01-06 13:44:30 +01:00
Earlopain
da96e16fd6
[Replacements] Record original uploader
Add a link to users profile to search for their replaced posts and give
janitors the option to penalize the user when appropriate
2021-06-26 13:01:26 +02:00
Earlopain
2f3ac660d1
[ModActions] Remove category and description
category was not maintained at all and would fallback to 2000, it was
also not exposed in any way.
Same for description, it's always null
2021-07-18 19:33:37 +02:00
Kira
b3eb88405d [Staff Notes] Add staff notes 2021-05-12 21:57:12 -07:00
Earlopain
4b27ebb6f9
[Seeding] Fix system user not being promoted 2021-04-30 23:46:28 +02:00
Kira
5843282986 [DB] Add missing indexes to large tables
The favorites table was missing the user_id column in prod
The post_votes table was missing the user_id column in prod
The comments table was missing the creator_id column in prod

The remaining indexes existed in prod, but not in the dev schema.
2021-04-24 19:13:36 -07:00
Kira
dff34d0f13 Merge branch 'user_warned' 2021-04-16 15:39:51 -07:00
Kira
1feee5e9a5 [Admin] Allow marking content as having earned a user a warning/ban 2021-04-16 15:39:32 -07:00
Kira
a28466bdaf [Replacements] Continued progress
[Replacements] Fix exceptions when processing replacements

[Replacements] Fix handling of invalid file types

[Replacements] Fix error reporting and promote dupe checking

[Replacements] Prevent duplicate replacements from cropping up
2021-04-07 10:33:19 -07:00
Kira
3855d64228 Post replacement system 2021-04-07 10:33:18 -07:00
Kira
814db91046 [Artists] Allow locking artist pages 2021-01-17 11:33:21 -08:00
Kira
ac34b6fe26 Fix bad post_replacement column names 2020-12-20 11:11:35 -08:00
Kira
a37a346817 Update drop post index migration 2020-12-20 10:49:47 -08:00
Kira
db44e102c2 Drop unused post indexes 2020-12-20 10:33:21 -08:00
Kira
01abcf5762 [Posts] Log destroyed post information 2020-11-13 00:35:33 -08:00
Kira
436d2aea38 [Ruby 3] Fix up some deprecations involving ruby 3
Still pending are gems that make poor choices and need to be removed,
replaced, or fixed up.

Memoist
ActiveModelSerializers
2020-11-11 21:06:12 -08:00
Kira
c35d272d1e Updated encode settings
Save space, save time, make it clear it's a sample
2020-10-17 22:35:28 -07:00
Kira
804903c67d [BUR] Improve some bur error reporting 2020-07-12 22:53:02 -07:00
Kira
621df484f5 Clean up dead db tables 2020-01-12 18:41:07 -08:00
Kira
15923af4ba Add janitor selectable background color per image 2019-12-31 10:19:11 -08:00
Kira
32f0266481 Add wiki edit reason 2019-11-15 20:00:54 -08:00
Kira
df2c76226b Add link to artist note changes to history 2019-10-13 16:47:48 -07:00
Kira
f8b339b3b0 Add reason to post versions 2019-10-06 07:34:29 -07:00
Kira
d378887d25 Add tag relationship reason 2019-10-06 00:59:19 -07:00
Kira
fa4a51d81b Add tag alias undo support 2019-10-03 06:26:25 -07:00
Kira
5a133e1643 Add lore tag category 2019-09-24 17:04:46 -07:00