Commit Graph

1329 Commits

Author SHA1 Message Date
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
3f90417fe7
[AIBUR] Prevent approval for DNP antecedents/consequents (#773) 2024-10-28 11:37:37 -07:00
Donovan Daniels
b3d3fbc6a0
[Posts] Fix pool metatags with capital letters (#769) 2024-10-22 15:41:05 -07:00
Donovan Daniels
9c82b003a3
[PostFlags] Allow uploading guidelines flag on approved posts (#764) 2024-09-29 13:08:45 -07:00
Donovan Daniels
f315504660
[Posts] Add verified artist search (#663) 2024-09-07 13:34:25 -07:00
Donovan Daniels
8a3e70e5ca
[AvoidPosting] Integrate the avoid posting list into the site (#582) 2024-08-03 14:15:26 -07:00
Donovan Daniels
b3b16759c4 [PostSets/Pools] Handle metatag additions when set/pool is full (#669) 2024-07-28 18:12:41 -07:00
Donovan Daniels
80f12710e6 [WikiPages] Prevent renaming wiki pages for help pages (#666) 2024-07-28 18:12:41 -07:00
Donovan Daniels
0346f86ac7
[Artists] Convert is_active into proper deletion (#660) 2024-07-20 11:45:36 -07:00
Donovan Daniels
6d1b15eab4
[PostEvents] Add event for changing background color (#655) 2024-06-28 09:26:01 -07: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
a7ef80074d
[Cleanup] Resolve some easy ruby warnings
Mostly duplicate method warnings
2024-04-28 11:59: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
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
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
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
Donovan Daniels
b2c4fffdb5
[Tests] Fix post expunge note/post update count test 2024-04-06 08:12:01 -05: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
aeb2076b80
[TagAliases] Fix locked artist preventing approval
Everything is already scoped to the approver. Switching to the creator doesn't make much sense here.

In addition, this sent the success message 5 times because the rename happened at the wrong place
2024-03-17 19:16:01 +01:00
Earlopain
1da52e3d0d
[TagRelations] Fix rejecting in certain cases
Rejection should always be possible
Previously this skipped validations, now it doesn't
2024-03-03 20:35:28 +01:00
Earlopain
853790272b
[Posts] Allow excluding multiple ids in search 2024-03-03 20:04:02 +01:00
Earlopain
17b99821e3
[Posts] Fix searches for huge ids erroring
This is because they can exceed Integer.MAX_VALUE on the opensearch side
2024-02-28 17:25:54 +01: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
Earlopain
930b4b905c
[Pools] Fix show/gallery for frozen string literals
Get rid of the presenters/post sets.
2024-02-25 11:38:55 +01:00
Earlopain
f59399ed67
[TagRelationships] Fix aliases/implications being left in queued state
This wasn't going through the error handler
2024-02-22 17:38:51 +01:00
Earlopain
9f796049a3
[Tests] Remove a rails bug workaround
Fixed sometime in the last 5 years
2024-02-22 16:44:19 +01:00
Earlopain
43ade626e0
[AIBUR] Fix ModActions for implications and on alias reject 2024-02-15 16:58:47 +01:00
Earlopain
860084b68c
[Tests] Skip more flakiness
https://github.com/e621ng/e621ng/actions/runs/7905570941/job/21578501986
2024-02-14 19:23:10 +01:00
Earlopain
8112e57329
[Tests] Skip flaky pagination test on CI 2024-02-04 16:51:13 +01:00
Earlopain
b00f7145c0
[Rails] Enable some new framework defaults
Others require a deploy first (like caching stuff) or need more thought (like serialization changes)
2024-01-27 13:49:57 +01:00
Donovan Daniels
8f8feac8aa
[Artists] Show error when changing notes with locked wiki page (#580)
* [Artists] Show error when changing notes with locked wiki page

* [Tests] Add tests for editing artists with locked wiki pages
2024-01-14 21:01:01 +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
6eaf435002
Bring ForumPost ModAction trigger in line with Comments (#542)
* [Tests] Add hide & delete modaction tests to comments and forum posts

* [ForumPosts] Remove user id check on destroy

* [ForumPosts] Don't create edit modaction on hide

* Assert correct amount of ModActions is created

Especially important when it previously created 2 instead of 1 for hiding

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2023-12-04 19:41:29 +01: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
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
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
a0c56446fa
Merge pull request #548 from e621ng/remove-elasticsearch-model
Remove elasticsearch-model
2023-09-18 20:29:56 +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
b6dc473a55
[Elasticsearch] Bring back the proxy object 2023-09-16 17:09:33 +02:00
Earlopain
b4e16fa0fd
[Elasticsearch] Implement Response 2023-09-16 15:30:28 +02:00