Commit Graph

504 Commits

Author SHA1 Message Date
clragon
29b98e5002
[StaffNotes] Add updating and deleting (#823) 2025-01-12 19:28:32 -08:00
Cinder
ba18a9d7b5
[Seeding] Always enable mascots (#826) 2024-12-18 07:21:05 -08:00
Donovan Daniels
b44f8a7d6f
[Posts] Add contributor category (#794) 2024-12-18 06:07:30 -08:00
Cinder
a0b51e40bc
[Users] Rework login pages and increase password requirements (#825) 2024-12-14 17:37:53 -08:00
Donovan Daniels
6f296e8e01
[Posts] Add back comment disabling (#749) 2024-10-28 13:56:22 -07:00
Donovan Daniels
f315504660
[Posts] Add verified artist search (#663) 2024-09-07 13:34:25 -07:00
Cinder
27b2359dde
[Seeding] Tweak comment randomization (#719) 2024-08-12 15:07:02 -07:00
Donovan Daniels
8a3e70e5ca
[AvoidPosting] Integrate the avoid posting list into the site (#582) 2024-08-03 14:15:26 -07:00
Cinder
ba5b6b0fff [WikiPages] Implement basic redirects (#683) 2024-07-28 18:12:41 -07:00
Cinder
961cfa351c [Seeding] Add pool seeding (#681) 2024-07-28 18:12:41 -07:00
Donovan Daniels
4a0a0c2f93
[UserFeedbacks] Add ability to soft delete feedbacks (#670) 2024-07-21 10:58:40 -07:00
Sindrake
ec3ae90db9 [Seeding] Add post vote seeding 2024-07-21 08:59:33 -07:00
Cinder
b852254ad0
[Seeding] Rewrite the seeding script (#676) 2024-07-20 08:30:21 -07:00
Donovan Daniels
d9f6653e02
[Posts] Overhaul destroyed posts (#672) 2024-07-13 17:05:50 -07:00
Sindrake
8f702da82a [DB] Reverse the order of migrations
That's how they want to be now, evidently.
2024-07-12 02:43:04 -07:00
Earlopain
d01c8c131d
[Misc] Replace httparty with faraday
We already pull in faraday from opensearch-ruby.
httparty hasn't had a release in a while and it printing warnings on ruby 3.3
2024-04-27 23:01:10 +02:00
Earlopain
64259a0b4e
[Docker] Handle network errrors during seeding
Closes #629
2024-04-05 13:24:58 +02:00
Earlopain
fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00
Donovan Daniels
c11ad6b874
[UserFeedback] Add Updater 2024-01-04 14:31:54 -06:00
Donovan Daniels
74007f2e30
[Blips] Add Updater & Tests/Move modactions to callbacks (#540)
* [Blips] Add `updater_id` & update notice

* [Blips] Move modaction generation logic into rails callbacks

* [Tests] Add blip tests

* Move update notice to right place

* Assert amount of difference

* Rebase oopsie

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2023-12-04 20:56:14 +01:00
Donovan Daniels
fd5b491694
[UserWarnable] Fix warning_user_id never being set (#541)
* [UserWarnable] fix `warning_user_id` never being set
I know `update` & `update_columns` function differently, but I feel the difference isn't needed

* [UserWarnable] Add inline user and timestamp

* lint

* Move warning info into partial

Also removes the user/timestamp as that is redundant for now

* Fix unmarking

* Tweak fixer script

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2023-12-04 20:19:49 +01:00
Earlopain
6bb4c272cc
[Gems] Bump rubocop 2023-12-03 15:36:37 +01:00
Earlopain
b6dc473a55
[Elasticsearch] Bring back the proxy object 2023-09-16 17:09:33 +02:00
Earlopain
ddcb7c1af1
[Elasticsearch] Implement index_name 2023-09-16 15:39:49 +02:00
Earlopain
855388b092
[Elasticsearch] Remove a few more easy usages of __elasticsearch__ 2023-09-14 20:56:56 +02:00
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