Cinder
a0b51e40bc
[Users] Rework login pages and increase password requirements ( #825 )
2024-12-14 17:37:53 -08:00
Donovan Daniels
237f79eabe
[AvoidPosting] Bug fixes and cleanup ( #706 )
2024-08-04 12:35:46 -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
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
d9f6653e02
[Posts] Overhaul destroyed posts ( #672 )
2024-07-13 17:05:50 -07:00
Earlopain
979e2e4d5f
[Tests] Add basic tests for takedowns
...
Would have ccaught the breakage from frozen string literals
2024-03-17 19:16:01 +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
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
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
Earlopain
0f842b9da0
[Tests] Remove wasteful post after_create hook
...
Not needed anymore.
Tests went from 95 seconds to 82 on my machine.
2023-09-08 21:33:25 +02:00
Earlopain
b7b9a8c400
[Users] Remove the contributor rank
...
We don't use that anymore. Next one up is former staff, so the checks
look a bit goofy now.
2023-08-21 21:24:31 +02:00
Earlopain
f5f29f8673
[Tests] Remove workaround for bcrypt slowdown
...
81a1b4b544
says this was done to make tests significantly faster, I'm
not seeing any slowdown with this change though. The real culprit was
probably the MX lookups.
2023-06-06 19:52:02 +02:00
Earlopain
49275af9b0
[Tests] Remove usage of rand
...
Makes them more deterministic
2023-02-26 14:58:08 +01:00
Earlopain
ead6d0919e
[PostFlags] Remove test reason
2023-01-26 21:44:00 +01:00
Earlopain
731fc5a42f
[Users] Style usernames by default
...
This only takes effect when logged out and for newly created accounts.
2022-11-27 17:44:03 +01:00
Earlopain
7a028cf003
[Tests] Set CurrentUser.ip_addr in base setup
2022-11-26 16:20:16 +01:00
Earlopain
00c1dc27e1
[Tests] Use file_fixture/fixture_file_upload
2022-11-25 18:44:36 +01:00
Earlopain
55d020877f
[Tests] Replace FFaker with FactoryBot sequences
2022-11-25 14:33:02 +01:00
Earlopain
668c1baccb
[Tests] Fix a few failing ones because of pr #430
2022-09-28 19:00:26 +02:00
Earlopain
12d32bb1fb
[Tickets] Add tests and fix found issues
2022-09-21 21:17:29 +02:00
Earlopain
3187ee169b
[TagRelations] Require a reason on create
2022-05-22 18:59:45 +02:00
Earlopain
c9f14e7836
[Replacements] Run full file validation on create
2022-05-08 20:47:11 +02:00
Earlopain
20146b106d
[Tests] A bunch of more fixes
2022-04-13 08:54:50 +02:00
Earlopain
ec658c4cb3
[Tests] Improve some factories
...
A forum topic must always contain a forum post, and creating things shouldn't
run into throttles. If I want to test that I opt in explicitly.
2022-04-07 17:52:35 +02:00
Earlopain
841610cd90
[Tests] Fix a few tests related to elasticsearch
...
Namespace the indicies, this should stop the search being messed up
after running tests. Also refresh the index immediately, this slows down
tests a bit but gets rid of a few failures. This whole search testing needs
to be revised some time.
Run this to fix your development setup:
```
Post.__elasticsearch__.create_index!
Post.import
PostArchive.__elasticsearch__.create_index!
PostArchive.import
```
2022-04-05 19:24:31 +02:00
Earlopain
3740599920
[Tests] Fix a bunch of tests
2022-04-05 18:50:34 +02:00
Earlopain
2a4f97610e
[Cleanup] Remove more upload attributes
2022-03-16 18:34:23 +01:00
Earlopain
ee8fb64861
[Cleanup] Remove ugoira
2022-03-16 17:08:40 +01:00
Earlopain
2b84f3a4cd
[Tests] Fix disapproval tests
...
Also updates the reason search dropdown
2022-03-16 15:55:24 +01:00
Earlopain
e01ab43577
[Cleanup] Remove janitor trials
2022-03-05 15:58:30 +01:00
Earlopain
8edd1b2864
[Cleanup] Remove min_level for topics
...
This isn't used a single time, forum categories handle access checks
instead.
2022-03-05 16:27:37 +01:00
Earlopain
f7ba9c5043
[Cleanup] Remove post appeals
2022-02-11 17:05:09 +01:00
Earlopain
e9f7ac85bf
[Cleanup] Remove artist commentaries
2022-02-03 17:02:49 +01:00
Earlopain
22d04f6cb1
[Posts] Add postevent tests
2022-01-07 12:29:11 +01:00
Earlopain
2f3ac660d1
[ModActions] Remove category and description
...
category was not maintained at all and would fallback to 2000, it was
also not exposed in any way.
Same for description, it's always null
2021-07-18 19:33:37 +02:00
Kira
173294fb56
[Replacements] Testing
2021-04-07 10:33:19 -07:00
Kira
2298beaa6c
[Tests] Fix post replacement controller tests
2021-04-07 10:33:19 -07:00
Kira
76d1999ade
[Rails] Upgrade to rails 6.1 + fix tests
2021-02-25 12:08:09 -08:00
Kira
e685fb87c2
[Tests] Update tests and fix deprecations
2021-02-25 12:08:09 -08:00
Kira
436d2aea38
[Ruby 3] Fix up some deprecations involving ruby 3
...
Still pending are gems that make poor choices and need to be removed,
replaced, or fixed up.
Memoist
ActiveModelSerializers
2020-11-11 21:06:12 -08:00
Kira
db8d4c4773
Normalize EOL style + newline at end of files.
2020-10-24 05:50:32 -07:00
Kira
3d82cc3430
[Tag Relations] Remove secondary validations
2020-07-17 01:34:12 -07:00
Kira
160b0cb22e
Remove saved searches
2019-10-21 02:57:03 -07:00
Kira
81a1b4b544
Make tests about 300x faster by not doing expensive ops
2019-09-09 12:58:18 -07:00
Kira
6fb1e3ceaf
Fix up users being broken in tests and fix a few basic tests
2019-09-09 12:58:18 -07:00
Kira
fffe6b1c19
Fix test fixtures and seeds
2019-09-09 12:58:18 -07:00
evazion
6beb8a81e1
Fix #4106 : Allow moderators to IP ban subnets.
2019-08-13 03:24:26 -07:00
Kira
4024108f1c
Convert builder -> janitor for user rank
2019-06-29 12:58:28 -07:00
Kira
16af051931
Convert platinum -> contributor for user rank
2019-06-29 12:06:13 -07:00