Commit Graph

479 Commits

Author SHA1 Message Date
Earlopain
de4068ade8
[Tests] Clear elasticsearch before tests run
Previously they were only created if they didn't exist.
Data from previous test runs was still present.
2023-09-08 19:17:47 +02:00
Earlopain
991f14c41d
[Cleanup] Remove postgres analyze scripts
Never used them, don't plan to. There are a plethora of repos with similar stuff
2023-06-13 21:25:14 +02:00
Earlopain
be0aa4960a
[Users] Add about section search 2023-05-18 20:48:01 +02:00
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
Earlopain
f722dbb4c3
[Docker] Tentative fix for intermittent CI test failures
Elastic indicies aren't ready sometimes. I don't know where they are
created, but it seems to be too late. Move creation into the seeds file
and execute it in all environments.

Calling create_index! multiple times is fine, this is important because
the seeds file should be idempotent
2023-05-15 13:58:41 +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
Earlopain
8f66cecb3f
[Gems] Bump rubocop and solargraph 2023-04-15 16:13:19 +02:00
Earlopain
637422031d
[Docker] Fix db seeding skipping forum category id sequence
Fixes #489
There's no need to explicitly create by id. It will always be 1 regardless.
2023-03-23 19:36:54 +01: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
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