Commit graph

2616 commits

Author SHA1 Message Date
Matt Jankowski
884bbf7ae2
Prepare the way for banning a bunch of usernames (#32856) 2024-11-12 15:43:55 +00:00
Matt Jankowski
5d9dde3ec0
Add age/expiry duration constants to BulkImport class (#32839) 2024-11-12 08:57:06 +00:00
Matt Jankowski
c099797700
Use mastodon config namespace to load software update default value via config_for (#30534) 2024-11-12 08:28:31 +00:00
Matt Jankowski
c78dc23b49
Move account sensitize-related methods to concern (#28865) 2024-11-11 13:08:23 +00:00
Matt Jankowski
d033920b7e
Move account silence-related methods to concern (#28866) 2024-11-11 08:29:55 +00:00
Matt Jankowski
4ef3a1a38d
Match dependency-generator output for require_relative usage (#32800) 2024-11-08 09:55:15 +00:00
Matt Jankowski
870bb06994
Add coverage for misc serializers (#32781) 2024-11-07 15:37:26 +00:00
Matt Jankowski
41227aeb95
Update Rails to version 7.2.2 (#30391) 2024-11-07 14:58:20 +00:00
Claire
2bea74e69d
Avoid latest featured tag use on post removal unless necessary (#32787) 2024-11-06 10:51:54 +00:00
Eugen Rochko
90f4ffa31d
Fix performance of percentile calculation for annual reports (#32765) 2024-11-04 10:11:06 +00:00
Matt Jankowski
ff490daa58
Reduce factory generation in AccountStatusesFilter spec (#32727) 2024-11-04 09:00:01 +00:00
Matt Jankowski
b231c3c1bf
Drop support for ruby 3.1 (#32363) 2024-10-31 15:12:08 +00:00
Matt Jankowski
a20ac20302
Add model spec for Tombstone (#32697) 2024-10-31 13:27:47 +00:00
Eugen Rochko
c2b498a2b0
Fix IDs not being serialized as strings in annual reports API (#32710) 2024-10-31 09:38:00 +00:00
Emelia Smith
e1b7382ea6
Add userinfo oauth endpoint (#32548) 2024-10-30 14:38:10 +00:00
Matt Jankowski
babee06794
Add coverage for StatusTrend and PreviewCardTrend models, add locales class method to RankedTrend (#32688) 2024-10-29 15:46:32 +00:00
Matt Jankowski
df3b954720
Add DomainHelpers spec support module for DNS/MX stub (#32690) 2024-10-29 15:35:25 +00:00
Emelia Smith
d94a367aeb
Add test coverage for POST /api/v2/media's max description length (#32683) 2024-10-29 09:25:38 +00:00
Matt Jankowski
b107fc2e65
Use nil for timestamp column in admin/confirmations spec (#32682) 2024-10-29 08:54:30 +00:00
Matt Jankowski
1edb527072
Enhance coverage for StatusPin model (#32515) 2024-10-28 07:34:58 +00:00
Jonny Saunders
9074c1fac9
Use likes and shares totalItems on status creations and updates (#32620) 2024-10-28 04:55:18 +00:00
Matt Jankowski
1775e151ec
Simplify model validation specs for DomainAllow (#32496) 2024-10-25 08:42:14 +00:00
Matt Jankowski
9464281f29
Simplify model validation specs for AccountStatusCleanupPolicy (#32495) 2024-10-25 08:41:24 +00:00
Matt Jankowski
15f6336cdd
Simplify model validation specs for AccountMigration (#32494) 2024-10-25 08:02:13 +00:00
Matt Jankowski
86132f7dd3
Provide establish_policy helper method in AccountStatusesCleanupPolicy spec (#32490) 2024-10-25 08:00:58 +00:00
Matt Jankowski
2a13d6824c
Use subject for FeedManager lib spec (#32486) 2024-10-25 07:59:31 +00:00
Matt Jankowski
2e3bbb6861
Move account suspension related coverage to concern spec (#32432) 2024-10-25 07:58:41 +00:00
Matt Jankowski
4134ccdbe0
Simplify model validation specs for WebauthnCredential (#32466) 2024-10-25 07:55:45 +00:00
Matt Jankowski
e5be4bf8d8
Simplify model validation specs for PreviewCard (#32469) 2024-10-25 07:55:33 +00:00
Matt Jankowski
37bcbeab4a
Simplify model validation spec in AccountModerationNote/ReportNote (#31792) 2024-10-24 12:52:38 +00:00
Matt Jankowski
dea6c454fd
Contribute more coverage for Account model (#32474) 2024-10-24 12:47:06 +00:00
Matt Jankowski
b16435e79f
Explore more resplendent model validation specs for Form::AdminSettings (#32465) 2024-10-24 12:44:13 +00:00
Matt Jankowski
67504dbf9c
Simplify uniqueness validation spec for IpBlock (#32066) 2024-10-24 12:43:40 +00:00
Matt Jankowski
5c910dc82e
Add coverage for DatabaseHelper primary/replica methods (#32642) 2024-10-24 08:04:29 +00:00
Matt Jankowski
745c4f900a
Remove unused ApplicationHelper#visibility_icon helper method (#32644) 2024-10-24 08:02:54 +00:00
Matt Jankowski
5a4f4f3e83
Remove single-use ProfileStories method (#31164) 2024-10-23 13:31:03 +00:00
Matt Jankowski
2f906ed55a
Constants for account refresh (#32420) 2024-10-23 13:29:01 +00:00
David Roetzel
05f23df3b7
Add endpoint to remove web push subscription (#32626) 2024-10-23 08:02:31 +00:00
Matt Jankowski
d1b20ea8f7
Worker specs coverage increase (#32541) 2024-10-23 07:50:20 +00:00
Matt Jankowski
bd0c826a3d
Simplify model validation specs for Announcement (#32481) 2024-10-23 07:47:46 +00:00
Matt Jankowski
c0f46e9031
Fortify coverage for Follow model (#32472) 2024-10-23 07:46:55 +00:00
Matt Jankowski
1f3722904f
Top off coverage for Appeal model (#32464) 2024-10-23 06:42:57 +00:00
Matt Jankowski
67403e7b01
Add coverage for ActivityPub likes/shares endpoints (#32305) 2024-10-23 06:41:07 +00:00
Matt Jankowski
0a4a73f9a6
Add coverage for api/v1/domain_blocks/preview endpoint (#32303) 2024-10-23 06:40:29 +00:00
Matt Jankowski
6d2f865862
Add coverage for AccountAlias validations (#31936) 2024-10-23 06:39:19 +00:00
Matt Jankowski
bfe3d49cca
Add inline_jobs to admin/reset spec (#32517) 2024-10-16 08:06:34 +00:00
Matt Jankowski
c40cd79c4d
Convert admin/invites controller specs to system specs (#32450) 2024-10-15 14:27:46 +00:00
Matt Jankowski
9e8f099d38
Improve app/policies coverage (#32426) 2024-10-15 14:24:12 +00:00
Matt Jankowski
28131b4b00
Convert status embed controller to request spec (#32448) 2024-10-15 14:18:20 +00:00
Matt Jankowski
b78597979a
Fix missing content warning text in rss formatter (#32406) 2024-10-15 14:12:54 +00:00
Matt Jankowski
b742ce9d09
Reduce factory creation (17 -> 0) in PlainTextFormatter spec (#32487) 2024-10-15 13:58:45 +00:00
Matt Jankowski
e9b27852be
Reduce factory creation (14 -> 8) in ActivityPub::Activity::Block spec (#32488) 2024-10-15 13:51:52 +00:00
Matt Jankowski
27f05e9016
Expand coverage for User#token_for_app (#32434) 2024-10-15 13:43:08 +00:00
Matt Jankowski
bfb41e61a3
Expand coverage for Block model (#32480) 2024-10-15 13:30:17 +00:00
Christian Schmidt
227d46883f
Translate to regional language variant (e.g. pt-BR) (#32428) 2024-10-15 13:26:20 +00:00
Matt Jankowski
6a39212b02
Reduce factories (36 > 12) in AccountReachFinder spec (#32482) 2024-10-15 13:18:57 +00:00
Matt Jankowski
92bb19773a
Use context for repeated scenarios in AccountStatusCleanupPolicy spec (#32489) 2024-10-15 13:12:58 +00:00
Matt Jankowski
d1d2278e70
Reduce factory creation (73 -> 64) in PublicFeed spec (#32491) 2024-10-15 13:10:29 +00:00
Matt Jankowski
b1c10969ac
Reduce factory creation (48 -> 8) in AP::Note serializer spec (#32492) 2024-10-15 13:10:03 +00:00
Matt Jankowski
a11b599ffa
Expand coverage for Scheduler::IpCleanupScheduler worker (#32499) 2024-10-15 13:09:25 +00:00
Matt Jankowski
0cc21f1ded
Reduce factory creation (132 -> 40) in lib/vacuum/* specs (#32498) 2024-10-15 12:54:56 +00:00
Matt Jankowski
d74c2c583a
Extend spec coverage for Poll model (#32500) 2024-10-15 12:48:10 +00:00
Matt Jankowski
cc70acc11c
Augment coverage for Status model (#32468) 2024-10-14 12:52:47 +00:00
Matt Jankowski
d8eab3d81f
Reinforce coverage for DomainBlock model (#32473) 2024-10-14 12:51:01 +00:00
Matt Jankowski
06d6b35e88
Convert admin/tags controller specs to system specs (#32447) 2024-10-14 08:31:12 +00:00
Claire
d9fbb071da
Fix notification requests from suspended accounts still being listed (#32354) 2024-10-09 17:29:02 +00:00
Matt Jankowski
f49161ab1d
Oauth system spec cleanup / helper method extraction (#32287) 2024-10-08 13:30:54 +00:00
Leni Kadali
4238da6ee3
Add error message when user tries to follow their own account (#31910) 2024-10-07 12:05:46 +00:00
Matt Jankowski
ebdeac0731
Add coverage for missing status scenario in NotificationMailer (#32256) 2024-10-04 14:15:14 +00:00
Matt Jankowski
e4e07b1c34
Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
Matt Jankowski
463f9197d8
Add regression coverage for admin reports resolution button within form (#32248) 2024-10-04 12:21:55 +00:00
Matt Jankowski
cc8d723e71
Register an XML encoder for response tests (#32220) 2024-10-03 13:10:27 +00:00
Matt Jankowski
d95f6f4410
Extract ExportSummary class for account object counts (#32227) 2024-10-03 13:09:58 +00:00
Matt Jankowski
b7bb850efd
Enable hostname config for all system specs (#32109) 2024-10-02 13:56:26 +00:00
Matt Jankowski
d270d6dd4f
Provide use_path to qr generator for svg data size reduction (#32127) 2024-10-02 13:26:46 +00:00
Matt Jankowski
2151dfb8d6
Add relevant_params to ReportFilter (matches account filter) (#32136) 2024-10-02 13:24:40 +00:00
Matt Jankowski
4aa26eba53
Extract WebPushRequest from push notification worker and subscription (#32208) 2024-10-02 11:11:52 +00:00
Matt Jankowski
ebab3b80c7
Expand coverage for Export utility class (#32212) 2024-10-02 09:43:04 +00:00
Christian Schmidt
33d3ca7cf1
Support /.well-known/host-meta.json (#32206) 2024-10-02 09:23:44 +00:00
Jeong Arm
66b2bc1c84
Ignore error if mentioned account was not processable (#29215)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-10-02 08:08:02 +00:00
David Roetzel
e6cda8388c
Move OTP secret length to configuration (#32125) 2024-10-01 09:38:42 +00:00
Matt Jankowski
cdd7526531
Remove completed TODO note in tags request spec (#32108) 2024-09-27 08:22:40 +00:00
Claire
513f187daf
Add “A Mastodon update is available.” message on admin dashboard for non-bugfix updates (#32106) 2024-09-26 19:27:57 +00:00
Matt Jankowski
db57fe80c8
Remove page_json var from ap/replies spec (#32000) 2024-09-26 08:54:01 +00:00
Renaud Chaput
28966fa0a6
Remove deprecated v2_alpha endpoint for grouped notifications (#32089) 2024-09-25 15:21:11 +00:00
Matt Jankowski
51777fe3e2
Prefer structure checks over multi-line size/parts checks in parsed_body (#32063) 2024-09-25 13:54:22 +00:00
Renaud Chaput
3dc4ddc663
Fix search params being dropped when redirected to non-deck path (#31984) 2024-09-25 13:35:37 +00:00
Matt Jankowski
83574f641a
Add coverage and use mailer callback to check functional user in notification mailer (#32055) 2024-09-25 08:07:48 +00:00
Matt Jankowski
c2ef83ea4c
Consolidate shared a scope example parts into one attributes check (#32046) 2024-09-25 07:56:42 +00:00
Matt Jankowski
c3b6a7a297
Reduce factory creation (36 -> 12) in spec/controllers/oauth/* area (#32045) 2024-09-25 07:56:08 +00:00
Matt Jankowski
06ecf9008b
Remove single-use shared examples in controller specs (#32044) 2024-09-25 07:50:15 +00:00
André Menrath
556837f156
Fix the summary of converted object types to be treated as HTML (#28629) 2024-09-24 15:57:53 +00:00
Claire
c36a76b9eb
Fix error when accepting appeal for sensitive posts deleted in the meantime (#32037)
Co-authored-by: David Roetzel <david@roetzel.de>
2024-09-24 15:19:55 +00:00
Matt Jankowski
780e2e9d66
Convert notification mailer spec shared examples to matchers (#32047) 2024-09-24 12:07:16 +00:00
Matt Jankowski
5dfdec6453
Convert settings/applications controller spec to system/request specs (#32006) 2024-09-23 13:37:32 +00:00
Matt Jankowski
bbf7752256
Combine assertions in Notification model spec (#32015) 2024-09-23 10:45:34 +00:00
Matt Jankowski
2b4bda8004
Add response_avatar_link helper to webfinger request spec (#31999) 2024-09-23 10:44:52 +00:00
Matt Jankowski
447d0a3e88
Remove double no-records cases in api/v1/admin req specs (#32014) 2024-09-23 09:27:53 +00:00
Matt Jankowski
66ed7ea4b5
Move status creation to "with rss" context in accounts request spec (#32020) 2024-09-23 09:20:43 +00:00
Matt Jankowski
cd7b670cd8
Reduce factory creation in User#reset_password! spec (#32021) 2024-09-23 09:18:04 +00:00