Commit Graph

11340 Commits

Author SHA1 Message Date
Sindrake
6d285957ca [Misc] Remove minor h1 and h2 mobile style tweaks
Absolutely no idea what happened here.
Both of these seem rather pointless.
2024-07-07 17:23:09 -07:00
Sindrake
807232557b [Misc] Tweak the CSS of the site notices 2024-07-07 17:02:42 -07:00
Sindrake
69207aa60d [Posts] Add a toggle for the janitor toolbar
The toolbar gets in the way when browsing the site with no intentions of handling posts.
2024-07-07 16:11:27 -07:00
Sindrake
1b31f4bda5 [Posts] Reload the page when undeleting a post 2024-07-07 14:46:46 -07:00
Sindrake
0adeff645d [Posts] Keep search params when disapproving posts
Specifically, the issue manifested when using detailed disapprovals.
2024-07-07 11:43:35 -07:00
Sindrake
df3f33ed82 [Blacklist] Always set the blacklist metatags
Not doing this breaks the anonymous blacklist, but only if the default blacklist is empty.
2024-07-02 11:18:12 -07:00
Donovan Daniels
6011b9f7bc
[Bans] Enable API for index & show (#659) 2024-06-30 09:14:37 -07:00
Donovan Daniels
6d1b15eab4
[PostEvents] Add event for changing background color (#655) 2024-06-28 09:26:01 -07:00
Tarrgon
0df2e77ab5
[Posts] Generate samples with background color (#649) 2024-06-28 09:13:52 -07:00
Donovan Daniels
4f61a94504
[StaffNotes] Fix body searching (#654) 2024-06-27 16:17:40 -07:00
faucet
715ea9bddb
[Posts] Allow some of the Related links when a post isn't visible (#648) 2024-06-27 15:39:43 -07:00
Donovan Daniels
165cd315e9
[UploadWhitelist] Make upload whitelist case insensitive (#651) 2024-06-27 15:27:08 -07:00
Sindrake
ea8c7d79ff [Posts] Fix video samples not working in iOS
Band-aid fix, but it should work for now.
Evidently, while iOS does support WEBM now, it does not handle vp9 well.
2024-06-27 09:08:50 -07:00
Earlopain
59f5fda98f
[Gems] Back to rack 3 again
The issue has already been fix upstream
2024-05-10 11:02:03 +02:00
Earlopain
643cbff636
[Gems] Back to rack 2 again, for now
https://github.com/Shopify/pitchfork/issues/117
Needs https://github.com/rack/rack/pull/2062
2024-05-09 15:24:05 +02:00
Earlopain
e4a5764d0b
[Prod] Inline the memory calculation
`Pitchfork::MemInfo` is not public. This also fixes the numbers being off by
a factor of 1024 since pitchfork returns kB, while unicorn-worker-killer used to handle bytes.

Add the amount of requests done after the worker get killed for memory reasons
2024-05-08 16:35:11 +02:00
Earlopain
401866b68a
[Prod] Simplify implementation of worker killer
Credits to byroot for pointing me in this direction
2024-05-07 21:54:25 +02:00
Earlopain
4c58f4988f
[Prod] Share pitchfork config
Somewhat exercise the custom logic during development
2024-05-07 21:54:25 +02:00
Earlopain
2c60ec69c8
[Prod] Replace unicorn with pitchfork
pitchfork is a unicorn fork with some things removed and some things added.
We don't need any of these things so it should be an easy replace.
There is no worker-killer for pitchfork, it is however trivial to implement ourselves.

unicorn is pretty much dead. The author implies as much in the various readme updates
he made. It also doesn't work with rack 3 and I doubt a new release will even be made.
If it will, it highly likely won't be on rubygems.
2024-05-07 21:54:25 +02:00
Earlopain
d7ece18a1c
[Posts] Fix the iqdb remove job
More faraday fallout. For delete requests, it expects this parameter to be iterable (if present)
2024-05-07 21:52:54 +02:00
Earlopain
c60ee96133
[Posts] Fix an error during uploads for 404/etc.
This line wasn't properly updated for faraday
2024-05-07 16:47:57 +02:00
Earlopain
d835d55c54
[Misc] Increase faraday open_timeout
This was previously mistyped which made it fall back to the default of 60 seconds.
Apparently 5 is not enough since there are a few errors on prod for this
2024-05-06 19:14:34 +02:00
Earlopain
0996a981d0
[Gems] Bump request_store
Has a bugfix that may be relevant
2024-05-04 15:07:32 +02:00
Earlopain
a7ef80074d
[Cleanup] Resolve some easy ruby warnings
Mostly duplicate method warnings
2024-04-28 11:59:37 +02:00
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