Commit Graph

470 Commits

Author SHA1 Message Date
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
257e717e56
[README] Document windows executable bit issues
This also adds/removes +x on a few files which should/shouldn't have it.
2023-03-04 14:20:39 +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
478941aecb
[Cleanup] Remove old migrations/fixer scripts
These files are useless and account for more than 1000 rubocop offences.
Move the remaining fixer scripts to the db folder, the scripts folder
is empty otherwise.
2023-02-22 20:12:20 +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
cc2a395b37
[Docker] Add seeding for mascots
Will only work after deploy, because of the added field in the API response
2022-10-20 18:52:07 +02:00
Earlopain
0de7135df9
[Docker] Clean up seeding script 2022-10-20 18:39:45 +02: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
7a65ccdb5a
[Cleanup] Remove dead seeder script 2022-04-05 18:54:02 +02:00
Earlopain
b37bb3c001
[Cleanup] Remove remaining delayed jobs code 2022-03-05 16:09:28 +01: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
d13dc9cad4
[Docker] Set the posts to seed amount through env
Most of the time I don't need 100, especially when I'm `down -v` constantly.
This is a switch to easily lower that.
2022-01-05 13:44:36 +01:00
Earlopain
00958d5602
[PostReplacements] Mark new fields has hidden 2021-10-18 17:53:07 +02: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
Earlopain
eb1f432fc5
Merge branch 'master' into style-changes 2021-06-02 14:28:22 +02:00
Earlopain
a023c2806e
[Tests] Fix forum post/topic tests 2021-05-14 15:04:03 +02:00
Kira
b3eb88405d [Staff Notes] Add staff notes 2021-05-12 21:57:12 -07:00
Earlopain
ed8a25b8a5
[Seeding] Add post approve flag to admin/system user 2021-05-01 13:24:20 +02:00
Earlopain
2a15947696
[Seeding] Fix uploader not being set
This broke seeding altogether, introduced in a28466bd
2021-04-30 23:50:22 +02:00
Earlopain
4b27ebb6f9
[Seeding] Fix system user not being promoted 2021-04-30 23:46:28 +02:00
Zwagoth
36130433f1
Merge pull request #254 from Earlopain/initial-setup
Improve initial vagrant setup
2021-04-30 14:46:46 -04: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
Earlopain
731d9c3e9d
[Seeding] Set correct tag categories and add sources/desc 2021-04-05 16:14:24 +02:00
Earlopain
d46deaaefc
[Seeding] Get post data from live site 2021-04-05 15:23:02 +02: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