Commit Graph

11116 Commits

Author SHA1 Message Date
Earlopain
f51e0e85cf
[Ruby] Bump to 3.3.1 2024-04-28 11:46:36 +02:00
Earlopain
0dce1e50f2
[Users] Add a reasonable length limit on emails
The spec allows for addresses up to 255. A limit of 100 impacts 3 users right now
2024-04-28 11:28:07 +02:00
Earlopain
5f6fa2b83d
[JS/Gems] Bump packages/gems 2024-04-28 11:07:10 +02:00
Earlopain
e002cc165f
[Gems] Bump RuboCop 2024-04-28 11:05:37 +02: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
58f9a18915
[Tests] Improve/Add tests around network requests 2024-04-27 13:57:51 +02:00
Earlopain
75ea36b700
[Cleanup] Remove unused size method from file class 2024-04-26 15:58:18 +02:00
Earlopain
b058077cf0
[Misc] Add a method that returns the base url for network requests
This makes it easier to stub in tests.
Also add a method to the iqdb proxy to say if it is enabled or not and use it everywhere.
2024-04-26 15:57:56 +02:00
Earlopain
988b607c57
Merge pull request #638 from DonovanDMC/note-previews-posts
[Notes] Remove note previews, replace with dtext previews
2024-04-21 19:40:09 +02:00
Earlopain
4df14cfec5
Merge pull request #635 from DonovanDMC/artists-new-link
[Artists] Fix "new" link in link_to_artist
2024-04-21 19:34:48 +02:00
Earlopain
75b618efc7
Merge pull request #634 from DonovanDMC/dmail-blacklist-tags
[DMails] Update "blacklisting user" tags
2024-04-21 19:33:31 +02:00
Earlopain
53d67da88d
[TagImplications] Ignore tag count limit on approve
This will apply to all automated changes, though I think only implications really need it.
2024-04-21 19:09:52 +02:00
Earlopain
6dfd8d8a7e
[Rails] Use different syntax to query if pg array contains single value
This will be broken in the next major rails version: https://github.com/rails/rails/issues/51617
2024-04-21 18:21:37 +02:00
Earlopain
8fdeb166df
[Rails] Use modern enum syntax
The current one is deprecated in the next rails version
2024-04-21 18:14:01 +02:00
Donovan Daniels
0f8ec1de53
[Notes] Remove note previews, replace with dtext previews 2024-04-18 05:31:25 -05:00
Earlopain
0a35264ad8
[Prod] Ignore pg errors during rack requests
These are handled at the application level
2024-04-15 19:55:41 +02:00
Earlopain
3229106431
[WikiPages] Fix exception on show_or_new without arg
This now uses `titled` which didn't handle nil
2024-04-12 15:11:45 +02:00
Earlopain
d2d6e83537
[Misc] Fix an exception during exception logging
This broke after the upgrade to rails 7.1 because of https://github.com/rails/rails/pull/46535
2024-04-11 19:10:57 +02:00
Donovan Daniels
7f141ae5bc
[Artists] Fix "new" link in link_to_artist 2024-04-09 21:45:00 -05:00
Donovan Daniels
8a89377845
[DMails] Update "blacklisting user" tags 2024-04-09 20:44:56 -05:00
Earlopain
f328836895
[Prod] Change how Datadog is enabled
This works fine here (filled in through dockers .env injection)
but on prod the application doesn't know about the API key
2024-04-09 20:52:33 +02:00
Earlopain
0b47770c49
[Prod] Add Datadog
Let's see how this one works out. Cute logo
2024-04-09 20:16:29 +02:00
Earlopain
40ff649250
Merge pull request #631 from DonovanDMC/wikipages-normalize-title
[WikiPages] normalize title in show_or_new & edit
2024-04-09 19:56:16 +02:00
Earlopain
7cd026d18d
[Cleanup] Return a single wiki from WikiPage.titled 2024-04-09 19:50:33 +02:00
Earlopain
d40dee278d
Merge pull request #632 from DonovanDMC/fix-help-related
[HelpPages] Fix showing related only to Janitor+
2024-04-09 19:41:33 +02:00
Earlopain
2ffe4a9f1d
Merge pull request #633 from DonovanDMC/fix-post-expunge-tests
[Tests] Fix post expunge note/post update count test
2024-04-09 19:36:54 +02:00
Earlopain
d84723909c
Merge pull request #617 from DonovanDMC/normalize-tagsetpresenter-tags
[UploadPresenter] Normalize tags & strip metatags
2024-04-09 19:35:44 +02:00
Donovan Daniels
b2c4fffdb5
[Tests] Fix post expunge note/post update count test 2024-04-06 08:12:01 -05:00
Donovan Daniels
38552905e5
[HelpPages] Fix showing related only to Janitor+ 2024-04-06 07:58:11 -05:00
Donovan Daniels
9f5f981700
[WikiPages] normalize title in show_or_new & edit 2024-04-06 07:47:49 -05:00
Donovan Daniels
5edbb507b6
[UploadPresenter] Normalize tags & strip metatags 2024-04-05 23:29:19 -05:00
Cinder
75fdab1c85
[Blacklist] Increase the size of the editor window (#604)
* [Blacklist] Increase the size of the editor window

* Don't have the dialogue overflow horizontally

* Remove one min-content, looks better, same padding top to bottom

* Shrink blacklist in settings slightly. Much closer to height of dtext input now

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2024-04-05 18:46:00 +02:00
Earlopain
c2574e12d2
[Users] Add profile_about and profile_artinfo to full response 2024-04-05 17:37:39 +02:00
Earlopain
d9a055d058
[Users] Redirect to name changes when name is invalid
The more or less unintrusive message has been there for a few months now.
Start forcing a name change when accessing through a browser, ignore api for now
2024-04-05 17:33:09 +02:00
Earlopain
e397370498
[Rubocop] Regenerate todo
1012 files inspected, 5003 offenses detected, 4797 offenses autocorrectable
2024-04-05 14:11:13 +02:00
Earlopain
64259a0b4e
[Docker] Handle network errrors during seeding
Closes #629
2024-04-05 13:24:58 +02:00
Earlopain
584f69d407
[Posts] Fix initial import including deleted notes 2024-04-05 13:18:45 +02:00
Earlopain
e3fdc5d61b
[Pools] Fix discrepancy between index page count and actual page count
One was using `user.per_page`, the other config.posts_per_page. Consolidate this
logic to `paginate_posts` to make it more obvious what's going on.
2024-04-04 22:52:49 +02:00
Earlopain
bbccfdccd7
[Gems] Bump ruby-lsp 2024-04-04 22:09:12 +02:00
Earlopain
34ae02b300
[CI] Unbreak testing flow
The images removed/are in the process of removing compose v1.

This also pins to an actual version instead of always using latest. Seems like a smart thing to do.

https://github.com/actions/runner-images/issues/9557
2024-04-03 15:05:48 +02:00
Earlopain
af46da355d
Merge pull request #627 from DonovanDMC/bur-duplicate-of
[BUR] Move "duplicate of" text location
2024-04-03 14:55:23 +02:00
Earlopain
e530847cf8
Merge pull request #626 from DonovanDMC/post-set-maintainers-access-check
[PostSets] Add view access check to /post_sets/:id/maintainers
2024-04-03 14:54:25 +02:00
Earlopain
d5c371dccf
[Posts] Fix missing space next to tag names
Unintentionally removed in 2609990837
2024-04-03 14:45:39 +02:00
Earlopain
3f3fd0ab4f
[Misc] Revert april fools stuff 2024-04-03 14:39:09 +02:00
Earlopain
c1aa5f95b1
[Misc] Add optout for april fools
Close #630
2024-04-01 12:24:33 +02:00
Earlopain
e2d289baca
[Misc] Add this years april fools joke
I'm so sorry
2024-03-31 13:41:13 +02:00
Donovan Daniels
42c59ac384
[BUR] Move "duplicate of" text location 2024-03-25 19:53:43 -05:00
Donovan Daniels
79e729e4f7
[PostSets] Add view access check to /post_sets/:id/maintainers 2024-03-25 17:52:35 -05:00
Earlopain
aaf1423ef8
[TagAliases] Don't change category on approve for large tags
This has caused trouble on multiple occasions. Right now, a BUR resulted in about 2 million jobs being queued.
1 mil on approve, 1 mil to switch them all back.
2024-03-23 21:24:09 +01:00
Earlopain
e4799d9f83
[Prod] Dump NewRelic
Need to look into alternatives
2024-03-23 20:52:31 +01:00