Commit Graph

11038 Commits

Author SHA1 Message Date
Earlopain
8cd56b5cd2
[Posts] Prevent extra post lookup for seq/prev nav buttons
The tag search already returns a post instance. There's no point in
extracting the id only to look it up again later.
2023-11-08 19:22:01 +01:00
Earlopain
ebb84ab23d
[Docker] Try to support arm64
These new versions have both architectures prebuild,
perhaps it works better now. Unfortunately I don't own
a machine to properly test it
2023-11-02 23:29:01 +01:00
Earlopain
c95dd472ac
[ModActions] Handle old permabans 2023-11-02 23:28:57 +01:00
Earlopain
91b286fc65
Merge pull request #557 from faucetlol/bsky-app
[Artists] Correct bsky domain for priority list
2023-11-02 13:46:32 +01:00
faucet
8ed5875a74
[Artists] Correct bsky domain for priority list 2023-11-01 20:19:24 +00:00
Earlopain
68a57dc70b
[ModActions] Handle legacy level changes 2023-10-30 16:36:35 +01:00
Earlopain
3812705b84
[Takedowns] Correct capitalization for DeviantArt 2023-10-30 16:35:00 +01:00
Earlopain
6a73273f67
[Takedowns] Strip email and source field 2023-10-30 16:25:20 +01:00
Earlopain
6911bbce86
[JS] Bump packages 2023-10-22 15:03:58 +02:00
Earlopain
45df63468a
[JS] Remove core-js
No effect on the final output bundle
2023-10-22 14:44:00 +02:00
Earlopain
7dcaf81979
[Uploads] Don't follow redirects to non-whitelisted urls
Also improves the existing tests a bit by being checking the error message
2023-10-20 21:00:32 +02:00
Earlopain
776866b873
[Cleanup] Move blocked ip checking out of config
These three used methods do basically the same, except more correct.
fc00::/7 are considered private while here only fd00::/8 was checked
2023-10-20 19:58:10 +02:00
Earlopain
d95a0e5e10
[Uploads] Remove md5_confirmation
It's broken. Closes #552
TODO: Remove upload column
2023-10-16 20:11:03 +02:00
Earlopain
fb00b3f4af
[Rails] Remove backtrace silencer initializer
Removing the app root already happens by default, in a more correct manner.
Fixes the following type of backtraces:
app/decoratorslication_decorator.rb:1:in `<main>'
=>
app/decorators/application_decorator.rb:1:in `<main>'
2023-10-16 20:09:54 +02:00
Earlopain
691b67f0e7
[Gems] Pin rails to the minor version
Rails minor updates are basically like major ones, without removing
deprecations but all the potential bugs that come with a major update.
Make a concious decision to update to these new versions.
2023-10-15 19:24:53 +02:00
Earlopain
4a26251e77
[Mascots] Fix handling of app names with spaces in them
Use comma as a separator instead.
Closes #551
2023-10-15 19:14:21 +02:00
Earlopain
2624a0f706
[Comments] Fix "Show all" for anon users 2023-10-15 18:09:54 +02:00
Earlopain
83f160e3a9
[Comments] Move recent count into constant 2023-10-15 18:01:23 +02:00
Earlopain
61a0a6518a
[Artists] Add a bunch of domains to the priority list 2023-10-15 17:11:43 +02:00
Earlopain
0d94e076a1
[User] Don't count replacement backups against upload limit 2023-10-15 14:16:23 +02:00
Earlopain
cc6e18797a
[Uploads] Correctly follow redirects
Some sites serve urls that redirect by default. This would append the
"You are being redirected" html to the file being downloaded after that
and subsequently report that text/html is not a valid format
2023-10-15 13:52:38 +02:00
Earlopain
b1e41b1e94
[Admin] Fix formatting of first edit history 2023-10-15 13:18:07 +02:00
Earlopain
2620ea983e
[Wiki] Better diffing view 2023-10-15 13:08:28 +02:00
Earlopain
80b26fbe16
[Docker] Allow easy enabling of NewRelic 2023-10-11 19:47:53 +02:00
Earlopain
d16b7b0b40
[Prod] Limit the amount of data sent to NewRelic 2023-10-11 19:45:11 +02:00
Earlopain
e3256bb313
[Prod] Add instrumentation to login attempts 2023-10-10 17:00:59 +02:00
Earlopain
728a8caa60
[Prod] Rework NewRelic logging
* Use config to log request params
* Stop logging the session. There's nothing useful there
* Stop logging a users level
2023-10-10 16:23:43 +02:00
Earlopain
871f2d6d7d
[Prod] Commit the newrelic config file 2023-10-10 16:00:46 +02:00
Earlopain
a3caf7b407
[Rubocop] Regenerate todo
998 files inspected, 5533 offenses detected, 5285 offenses autocorrectable
2023-10-02 20:41:55 +02:00
Earlopain
3a58ac0938
Switch to OpenSearch (#550)
Run the following commands to import data into OpenSearch:

Post.document_store.create_index!
PostVersion.document_store.create_index!
Post.document_store.import
PostVersion.document_store.import

* Add opensearch client

* Add url param to force use opensearch

* Switch import method over to opensearch

* Index to opensearch as well

* Add option to gradually roll out os

* Index os with separate queue

* Move os post creation to job as well

* Exclusively use the OpenSearch client

* Stop enqueuing OsIndexUpdateJob

* Remove remaining elasticsearch code

Bump faraday since v2 is no longer blocked
2023-10-02 18:57:07 +02:00
Earlopain
156276f0c0
[Docker] Allow overriding forwarded ports
This also makes images load on ports other than 3000 by default
2023-09-25 18:21:08 +02:00
Earlopain
8ad0e08a82
[Docker] Add deleted/replacements protection 2023-09-25 16:14:55 +02:00
Earlopain
81ab93b7ee
[Takedowns] Fix adding by tag search
Broken with b4e16fa0fd
2023-09-21 19:06:18 +02:00
Earlopain
ac0f2e9a40
[Posts] Fix visual inconsistency on the parent message
Same as cd50549bbf
2023-09-19 21:10:18 +02:00
Earlopain
a0c56446fa
Merge pull request #548 from e621ng/remove-elasticsearch-model
Remove elasticsearch-model
2023-09-18 20:29:56 +02:00
Earlopain
f7b829ba34
[Elasticsearch] Perform create callback inline
I changed this previously because I didn't see the reason behind the distinction.

When the job queues are full for example because of approvals of large BURs
it's desirable for newly uploaded posts to still appear in search results.
2023-09-18 20:28:53 +02:00
Earlopain
26ed6928ba
[Dmails] Tweak rate limit
* Lower hourly limit
* Add daily limit
2023-09-17 17:57:17 +02:00
Earlopain
632b611c4c
[Dmails] Fix senders copy being created when validations fail 2023-09-17 16:40:33 +02:00
Earlopain
9e2c7b2b5b
[Cleanup] Remove ban check when sending dmails
Banned users can't login in the first place
2023-09-17 14:38:43 +02:00
Earlopain
1c4a79d2ef
[Docker] Enable YJIT
Gives a small performance boost on prod in exchange for more RAM usage
2023-09-17 14:37:16 +02:00
Earlopain
b6dc473a55
[Elasticsearch] Bring back the proxy object 2023-09-16 17:09:33 +02:00
Earlopain
0bd651c08b
[Elasticsearch] Remove elasticsearch-model gem
This should be the bulk of the work to integrate with opensearch-ruby
2023-09-16 15:52:05 +02:00
Earlopain
ddcb7c1af1
[Elasticsearch] Implement index_name 2023-09-16 15:39:49 +02:00
Earlopain
c65288d2cd
[Elasticsearch] Move PaginatedArray to own file 2023-09-16 15:36:10 +02:00
Earlopain
b4e16fa0fd
[Elasticsearch] Implement Response 2023-09-16 15:30:28 +02:00
Earlopain
be71bf7a16
[Elasticsearch] Move implementation to own folder 2023-09-16 14:29:04 +02:00
Earlopain
f1d5864724
[Elasticsearch] Move more code out of indexable 2023-09-16 14:26:04 +02:00
Earlopain
5d791f9803
[Elasticsearch] Extend the base class
This whole thing needs some refactoring after I'm done with this.
2023-09-16 14:16:08 +02:00
Earlopain
bd1bd8cfc3
[Elasticsearch] Stop sending the document type
This is deprecated in ES7 and removed in ES8 and OS2
2023-09-16 13:48:30 +02:00
Earlopain
d41496d254
[Elasticsearch] Implement search 2023-09-16 13:40:50 +02:00