Matt Jankowski
0ea9d8164b
Remove `body_class_string` helper ( #33072 )
2024-11-26 07:19:20 +00:00
Matt Jankowski
74df47ad9c
Add coverage for `Webhook` validations ( #33026 )
2024-11-25 08:19:16 +00:00
Matt Jankowski
ab9c62e8c7
Add coverage for `User` validations ( #33028 )
2024-11-25 08:18:10 +00:00
Matt Jankowski
fd90f04f0e
Add coverage for `UserRole` validations ( #33029 )
2024-11-25 08:18:07 +00:00
Claire
f740611820
Merge commit 'd0753ec276502ea28a1e853cbc6487020a0602e3' into glitch-soc/merge-upstream
2024-11-24 18:56:15 +01:00
Claire
6374937147
Merge commit 'e68b26c8df2056182564abcee230927ed53200c8' into glitch-soc/merge-upstream
...
Conflicts:
- `app/models/trends/statuses.rb`:
Upstream added a date restriction to trendable posts, while glitch-soc had
slightly different conditions.
Added the date restriction to glitch-soc's conditions.
2024-11-24 16:46:28 +01:00
Christian Schmidt
0518613dd7
LinkDetailsExtractor adjustments ( #31357 )
2024-11-22 08:00:14 +00:00
Christian Schmidt
7385016837
`rel="me"` check should be case-insenstive ( #32238 )
2024-11-21 14:37:25 +00:00
Emelia Smith
4517e18b79
Update dependency doorkeeper to v5.8.0 ( #33000 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 13:48:30 +00:00
Paulo Vilarinho
2526b32ad3
block scheduled status from frozen users ( #30729 )
2024-11-20 19:06:41 +00:00
Matt Jankowski
b66fbaeec2
Add `AccountWarning` case to `Report#history` spec ( #32984 )
2024-11-20 07:52:00 +00:00
Eugen Rochko
2b5faa2ba3
Change lists to reflect added and removed users retroactively ( #32930 )
2024-11-19 10:04:12 +00:00
Matt Jankowski
87e7ad9b8f
Add `LoginActivity` model spec and `BrowserDetection` concern shared example ( #32959 )
2024-11-19 09:15:05 +00:00
Matt Jankowski
425982841d
Use group/count approach in annual report classes ( #32914 )
2024-11-19 08:51:34 +00:00
Matt Jankowski
295ad6f19a
Prep work for coverage addition to `ActivityPub::DeliveryWorker` spec ( #32944 )
2024-11-18 16:37:21 +00:00
Matt Jankowski
30a7986569
Add coverage for fixing the thing with the dates in the search area ( #32958 )
2024-11-18 15:42:45 +00:00
Matt Jankowski
c0c34d35e2
Move self destruct check to `config_for` and add constant for verifier string ( #32943 )
2024-11-18 09:57:16 +00:00
Eugen Rochko
911d7dbbf6
Fix `min_id` and `max_id` causing error in search API ( #32857 )
2024-11-18 09:37:01 +00:00
Matt Jankowski
03ee08c2da
Use `nil` instead of `false` for datetime value in spec ( #32926 )
2024-11-18 09:31:25 +00:00
Matt Jankowski
be413d67de
`Form::Import` spec reduce factories ( #32924 )
2024-11-18 09:22:09 +00:00
Matt Jankowski
a1ac2a73ff
Remove remnants of embed views ( #32419 )
2024-11-16 20:48:10 +00:00
Claire
4f1242964b
Merge commit '44d92fa4f6aac5c45ad358287af48cd879f5665e' into glitch-soc/merge-upstream
2024-11-15 18:44:32 +01:00
Matt Jankowski
9d3fcc3546
Remove unused failure action in api/base controller spec ( #32905 )
2024-11-15 16:10:20 +00:00
Matt Jankowski
7bd7705f59
Combine shared-setup examples across `spec/controllers/auth/*` specs ( #32906 )
2024-11-15 16:07:26 +00:00
Matt Jankowski
319109029d
Fix logic in "last used at per application" oauth token list ( #32912 )
2024-11-15 15:52:37 +00:00
Matt Jankowski
297ce9ef44
Move body class to shared partial for web app controller concern views ( #31797 )
2024-11-15 15:49:26 +00:00
Claire
f1ef7b5b43
Fix uploading higher-than-wide GIF profile picture with libvips enabled ( #32911 )
2024-11-15 15:35:30 +00:00
Matt Jankowski
766358e52b
Add coverage for malformed version cleanup in `SoftwareUpdateCheckService`, add helper query methods ( #32876 )
2024-11-14 14:03:57 +00:00
Matt Jankowski
62d65504f6
Add `DomainResource` class to wrap MX lookup/normalize ( #32864 )
2024-11-14 13:47:29 +00:00
Claire
e8b6607ece
Fix titles being escaped twice ( #32889 )
2024-11-14 13:28:00 +00:00
Claire
8f5cbf5370
Fix list creation limit check ( #32869 )
2024-11-13 10:22:11 +00:00
Matt Jankowski
a6d829e86f
Fix error in CLI EmailDomainBlocks when supplying `--with-dns-records` ( #32863 )
2024-11-13 08:39:58 +00:00
Emelia Smith
2bd56f726a
Add client_secret_expires_at to OAuth Applications ( #30317 )
2024-11-12 22:06:13 +00:00
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
Claire
f0f807cec7
Merge commit '1e71c4e247eb8900a718b04113ffce9c1b8ad2f4' into glitch-soc/merge-upstream
2024-11-10 13:18:43 +01: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
Claire
f624ef2778
Merge commit 'b06fd54c305915527e3a6edc575dc23b623143ef' into glitch-soc/merge-upstream
...
Conflicts:
- `app/helpers/formatting_helper.rb`:
Upstream wrapped some code glitch-soc had modified in an OTEL instrumentation span.
Wrapped the modified code.
2024-11-03 20:51:58 +01: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
Claire
8103e69b17
Merge commit '77cd16f4ee7ab807df6fffb1538a6659a8182a9e' into glitch-soc/merge-upstream
...
Conflicts:
- `app/javascript/styles/mastodon/components.scss`:
Conflict caused by glitch-soc changing the path to images, and upstream
removing styling using such an image.
Removed the styling as upstream did.
- `app/models/account.rb`:
Conflict due to upstream changing lines adjacent to a change made in glitch-soc
to have configurable limits.
Ported upstream's changes.
- `yarn.lock`:
Dependencies adjacent to glitch-soc-only dependencies updated.
Updated them as well.
2024-10-26 13:38:07 +02: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
Claire
6281c4dedd
Merge commit '1fc165de02d79294c8a218f5fa82bcd477484ca1' into glitch-soc/merge-upstream
...
Conflicts:
- `.env.production.sample`:
Upstream added a block of three environment variables, while glitch-soc
has a different version of the file overall.
Added upstream's changes.
- `app/helpers/application_helper.rb`:
Upstream added a helper, while glitch-soc had extra helpers.
Added upstream's helper.
2024-10-19 19:13:32 +02: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
Claire
4d9b4ef72f
Merge commit '7c10b0fb7a078661558fef86399d86831423260c' into glitch-soc/merge-upstream
2024-10-14 19:46:52 +02: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
Claire
7e06d724c9
Merge commit '4238da6ee3c93dfd5752e9133cbec958f8ebb18a' into glitch-soc/merge-upstream
2024-10-07 20:45:07 +02:00
Leni Kadali
4238da6ee3
Add error message when user tries to follow their own account ( #31910 )
2024-10-07 12:05:46 +00:00
Claire
b28ce2424c
Merge commit 'c40ab43dc703be988c277d4ba6b7987a3a80e16c' into glitch-soc/merge-upstream
...
Conflicts:
- `app/helpers/application_helper.rb`:
Upstream added a helper where glitch-soc had its own, not really
a conflict.
Added upstream's helper.
- `lib/sanitize_ext/sanitize_config.rb`:
Upstream renamed a constant that was used slightly differently in glitch-soc.
Renamed it as upstream did.
2024-10-06 16:07:58 +02: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
Claire
7ef25ae53b
Merge commit '9d664f87a04b6a5157ddbe60ee33b5b7a960198e' into glitch-soc/merge-upstream
2024-09-29 11:06:09 +02: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
Claire
633165ba9c
Merge commit '28966fa0a6d7b98ee94696acdc79e45449ce8349' into glitch-soc/merge-upstream
2024-09-25 17:41:37 +02: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
Claire
c6039f99ce
Merge commit '70988519df66f0b8edeb6ca95140f1d3e436fea8' into glitch-soc/merge-upstream
2024-09-24 19:34:30 +02: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
Claire
c2c3a66478
Merge commit '5dfdec645313e556413147597138a8008bc35996' into glitch-soc/merge-upstream
2024-09-23 20:24:18 +02: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
Matt Jankowski
0ba3ad4a35
Remove `body_json_ids` from api/v2/admin/accounts spec ( #32003 )
2024-09-23 08:45:05 +00:00
Matt Jankowski
e0b45b35c9
Combine repeated parsed_body assertions into single ( #32002 )
2024-09-23 08:42:52 +00:00
Claire
221bba1897
Merge commit '7ed9c590b98610f8d68deab9ef8df260eec6d8f0' into glitch-soc/merge-upstream
2024-09-21 15:06:06 +02:00
Matt Jankowski
d55f4fbda1
Add content type checks to api/v2 request specs ( #31983 )
2024-09-20 13:19:53 +00:00
Matt Jankowski
171394e914
Add coverage for CSV responses for severed relationships ( #31962 )
2024-09-20 13:13:47 +00:00
Matt Jankowski
66326065b0
Add `response.content_type` checks for JSON to `api/v1` request specs ( #31981 )
2024-09-20 13:13:04 +00:00
Matt Jankowski
04a939d640
Add `reviewed` and `unreviewed` scopes to `Reviewable` model concern ( #31988 )
2024-09-20 08:51:37 +00:00
Matt Jankowski
9a03902ab6
Capture actual behavior in v2/notifications "someone else" dismiss scenario ( #31985 )
2024-09-20 08:16:19 +00:00
Matt Jankowski
5a8f2fe31d
Convert `settings/exports` controller spec to system/request specs ( #31965 )
2024-09-19 13:43:40 +00:00
renovate[bot]
6801afa12f
Update dependency devise-two-factor to v6 [SECURITY] ( #31957 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Roetzel <david@roetzel.de>
2024-09-19 10:56:09 +00:00
Matt Jankowski
b071e618e7
Combine API request spec assertions ( #31970 )
2024-09-19 10:15:21 +00:00
Matt Jankowski
e3baa1cdda
Add coverage for `AccountDeletionRequest` class ( #31937 )
2024-09-18 13:29:57 +00:00
Matt Jankowski
bf8eaaa9a5
Convert controller spec for security_key_options endpoint to request spec ( #31938 )
2024-09-18 09:42:36 +00:00
Matt Jankowski
5405bdd344
Remove unused E2EE messaging code ( #31193 )
2024-09-18 09:27:43 +00:00
Matt Jankowski
eb16763bff
Use `have_http_link_header` matcher in `api/v1/trends/*` specs ( #31940 )
2024-09-18 08:22:07 +00:00
Matt Jankowski
943738671c
Remove unneeded `to_s` on `Link` header comparison in statuses controller spec ( #31941 )
2024-09-18 08:21:31 +00:00
Claire
665e9129fe
Merge commit 'e0648a916ab81925545504173bf4f43ec64d4f3c' into glitch-soc/merge-upstream
...
Conflicts:
- `app/models/custom_emoji.rb`:
An upstream refactor touched lines adjacent to ones modified in glitch-soc.
Ported upstream's changes.
2024-09-16 21:08:58 +02:00
Claire
e0648a916a
Rename `/api/v2_alpha/notifications*` to `/api/v2/notifications*` ( #31840 )
2024-09-16 12:10:02 +00:00
Matt Jankowski
c54cbf7943
Remove `follow` creation from `ListAccount` fabricator ( #31902 )
2024-09-16 08:56:40 +00:00
Matt Jankowski
abd2f5654a
Add validation coverage for `CustomEmoji` shortcode value ( #31906 )
2024-09-16 07:53:03 +00:00
Matt Jankowski
822e918a56
Add coverage for `Bookmark` validation and reblog/status check callback ( #31907 )
2024-09-16 07:52:22 +00:00
Claire
4b40d13cb3
Increase preview card image size limit from 2MB to 8MB when using libvips ( #31904 )
2024-09-14 00:16:02 +00:00
Claire
117ac13d12
Merge commit '5ba3405be4c1f708f198580b481f822698dab392' into glitch-soc/merge-upstream
2024-09-13 21:37:34 +02:00
David Roetzel
c1b2c4fd9a
Strip protocol from attribution domains ( #31900 )
2024-09-13 11:37:15 +00:00
Claire
ba81e4e019
Fix inability to locally suspend remotely-suspended accounts in moderation interface ( #31899 )
2024-09-13 09:11:10 +00:00
Matt Jankowski
a2c4f5f5c0
Add coverage for `ListAccount` follow/follow_request set up ( #31896 )
2024-09-13 08:49:03 +00:00
Matt Jankowski
202077517c
Add "search" group for chewy classes in simplecov config ( #31890 )
2024-09-12 20:09:55 +00:00
Claire
83b553c7d1
Merge commit '0226bbe5165a53658b29e46ddbef6a10507fdc8c' into glitch-soc/merge-upstream
2024-09-12 21:32:39 +02:00
Claire
3465d39494
Merge commit '24ef8255b3f9b44cb54f49bc78fe3382a7070b1a' into glitch-soc/merge-upstream
...
Conflicts:
- `app/helpers/accounts_helper.rb`:
Upstream removed a helper, textually adjacent to a glitch-soc-only one.
Not really a conflict.
Removed the helper as upstream did.
- `app/views/layouts/embedded.html.haml`:
Conflicts due to theming system.
Adapted upstream's change to our theming system.
- `app/views/statuses/_simple_status.html.haml`:
Removed upstream, but we had local changes.
Removed as upstream did.
2024-09-12 20:05:08 +02:00
Claire
90d7a4bac4
Merge commit 'a27f7f4e561c9d2fe21d984059603d2f500c005b' into glitch-soc/merge-upstream
2024-09-12 17:22:06 +02:00
Matt Jankowski
207c073bf8
Remove debug output in migration controller spec ( #31886 )
2024-09-12 14:04:46 +00:00
Taylor Chaparro
1b6a82b799
Fix invalid date searches returning 503 ( #31526 )
2024-09-12 13:40:20 +00:00
Matt Jankowski
4aa600387e
Move redirect/base body class to view ( #31796 )
2024-09-12 13:31:50 +00:00
Christian Schmidt
8cdc148167
Handle invalid visibility ( #31571 )
2024-09-12 13:29:55 +00:00
Matt Jankowski
17c57c46e7
Add coverage for title/limit validations in `List` model ( #31869 )
2024-09-12 13:25:23 +00:00
Claire
a496aeabcb
Change form-action Content-Security-Policy directive to be more restrictive ( #26897 )
2024-09-12 13:24:19 +00:00
Claire
c35ea59ee6
Fix security context sometimes not being added in LD-Signed activities ( #31871 )
2024-09-12 12:58:12 +00:00
David Roetzel
ab763c493f
Ignore `undefined` as canonical url ( #31882 )
2024-09-12 11:14:42 +00:00
Claire
10e2b87774
Merge commit '0c3c06f7cc50c9207a44f56e184ce6a41f953171' into glitch-soc/merge-upstream
2024-09-12 12:09:21 +02:00
Eugen Rochko
3d46f47817
Change embedded posts to use web UI ( #31766 )
...
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-09-12 09:41:19 +00:00
Claire
b240bad61a
Merge commit '5260233b81c301cf7b0c79b179858748b693460b' into glitch-soc/merge-upstream
2024-09-11 20:58:35 +02:00
Matt Jankowski
cdcd834f3c
Add coverage for `AnnualReport::*` source child classes ( #31849 )
2024-09-11 08:01:32 +00:00
Matt Jankowski
cee71b9892
Remove `fa_` prefix from status visibility icon method ( #31846 )
2024-09-11 07:47:16 +00:00
Eugen Rochko
e0c27a5047
Add ability to manage which websites can credit you in link previews ( #31819 )
2024-09-10 12:00:40 +00:00
Matt Jankowski
d0ab94c4d2
Add `FeaturedTag` coverage, use `pick` in model ( #31828 )
2024-09-09 19:57:19 +00:00
Claire
441af2632d
Merge commit '2caa3f365ded73be17b623177967110e66f14061' into glitch-soc/merge-upstream
2024-09-09 18:22:41 +02:00
Mike Dalessio
a0ea2fa3b0
Change fetch link card service to parse as HTML5 ( #31814 )
2024-09-09 10:59:42 +00:00
Matt Jankowski
c6a0768fe5
Use shared system spec helper methods ( #31784 )
2024-09-09 08:01:26 +00:00
Mike Dalessio
afa2e257e4
Change verify link service to use CSS selectors instead of a complex XPath query ( #31815 )
2024-09-08 18:50:22 +00:00
Claire
af6ca96a4e
Fix tests in glitch-soc
2024-09-06 20:00:19 +02:00
Claire
29124990a2
Merge commit '7335a43b6dac0e82c305ce4dec9db4da114c769e' into glitch-soc/merge-upstream
...
Conflicts:
- `app/helpers/application_helper.rb`:
Upstream reworked how CSS classes for the document's body are computed.
Slight conflict due to glitch-soc's different theming system.
Updated as upstream did.
2024-09-06 19:25:31 +02:00
Matt Jankowski
4f81ad2494
Add coverage for `media#player`, move body class to view ( #31790 )
2024-09-06 16:46:25 +00:00
Emelia Smith
c88ba523ee
Fix sort order of moderation notes on Reports and Accounts ( #31528 )
2024-09-06 14:58:36 +00:00
Matt Jankowski
a9d0b48b65
Set "admin" body class from `admin` nested layout ( #31269 )
2024-09-06 13:58:46 +00:00
Matt Jankowski
6b6a80b407
Remove `body_as_json` in favor of built-in `response.parsed_body` for JSON response specs ( #31749 )
2024-09-06 09:58:46 +00:00
Matt Jankowski
7efe0bde9d
Add `have_http_link_header` matcher and set header values as strings ( #31010 )
2024-09-05 20:05:38 +00:00
Matt Jankowski
09017dd8f0
Add worker spec for annual report worker ( #31778 )
2024-09-05 19:51:17 +00:00
Claire
1a0ef0c526
Merge commit '5acec087caed4a2fdf0fd8ed11f891222496f321' into glitch-soc/merge-upstream
2024-09-05 20:36:25 +02:00
Matt Jankowski
5acec087ca
Simplify basic presence validations ( #29664 )
2024-09-05 15:36:05 +00:00
David Roetzel
f85694acfd
Add credentials to redis sentinel configuration ( #31768 )
2024-09-05 14:06:58 +00:00
Matt Jankowski
e820cc30b8
Convert invites controller spec to system/request specs ( #31755 )
2024-09-05 11:54:27 +00:00
Matt Jankowski
ba9fd1c32e
Add coverage for `Account#prepare_contents` callback ( #31748 )
2024-09-05 09:48:33 +00:00
David Roetzel
7d91723f05
Support `REDIS_SENTINEL_PORT` variables ( #31767 )
2024-09-05 09:26:49 +00:00
Matt Jankowski
4d5c91e99a
Remove `before` block in spec with TODOs which have been TO-DONE already ( #31754 )
2024-09-04 19:51:40 +00:00
Claire
cb1eaa10f2
Fix glitch-soc-only tests
2024-09-04 20:07:23 +02:00
Claire
5a55180b95
Merge commit 'fe04291af46d7cb9d3439fa73739b2ffb2b53d72' into glitch-soc/merge-upstream
...
Conflicts:
- `spec/lib/sanitize/config_spec.rb`:
Upstream rewrote top-level `describe` calls to `RSpec.describe`, and
glitch-soc had differences in the first few tests because of the wider
subset of HTML it accepts.
Changed `describe` to `RSpec.describe` as upstream did, keeping
glitch-soc's tests.
2024-09-04 19:38:52 +02:00
Matt Jankowski
e1b5f3fc6f
Use `response.parsed_body` for html response checks ( #31750 )
2024-09-04 17:29:05 +00:00
David Roetzel
ef2bc8ea26
Add redis sentinel support to ruby part of code ( #31744 )
2024-09-04 14:10:45 +00:00
Claire
1fcffa573c
Fix 500 error in `GET /api/v2_alpha/notifications` when there are no notifications to return ( #31746 )
2024-09-04 12:54:15 +00:00
Matt Jankowski
14af5b47ac
Add coverage for model normalizations ( #31734 )
2024-09-04 05:12:40 +00:00
Matt Jankowski
9ed1aab9b7
Remove accidental matcher debug code ( #31732 )
2024-09-04 05:12:35 +00:00
Matt Jankowski
f1003b2560
Enable "zero monkey patching" mode in RSpec ( #31614 )
2024-09-04 05:12:25 +00:00
Claire
fef055db96
Merge commit 'c9ea91f8683cd5c0cfac14071a17e3956ac6d3b0' into glitch-soc/merge-upstream
...
Conflicts:
- `spec/requests/api/v1/timelines/tag_spec.rb`:
Upstream refactored this file, while we had a change to switch a default setting.
Updated as upstream did.
- `spec/views/statuses/show.html.haml_spec.rb`:
Upstream refactored this file, while we stubbed different methods.
Updated as upstream did, and updated the stubs accordingly.
2024-09-03 21:51:53 +02:00
Matt Jankowski
c9ea91f868
Add coverage for `api/v1/annual_reports` area ( #31730 )
2024-09-03 16:10:48 +00:00
Matt Jankowski
19849eb91d
Skip paperclip spoof detector unless opted into attachment processing specs ( #31454 )
2024-09-03 15:39:19 +00:00
Matt Jankowski
69dbc23038
Only enable chewy in search-tagged specs ( #30583 )
2024-09-03 15:38:38 +00:00
Matt Jankowski
7c26e5e4a1
Add `Reviewable` model concern ( #31152 )
2024-09-03 15:37:45 +00:00
Matt Jankowski
2f0d0fc127
Add coverage for `CLI::Accounts#fix_duplications` task ( #30639 )
2024-09-03 15:36:59 +00:00
Matt Jankowski
e1fa456c7c
Add `have_cacheable_headers` matcher for responses ( #31727 )
2024-09-03 15:35:19 +00:00
Matt Jankowski
490bdb7944
Add coverage for `StatusesHelper#media_summary` method ( #31726 )
2024-09-03 15:34:09 +00:00
Matt Jankowski
8922786ef4
Fix `RSpec/LetSetup` cop in api/v1/timelines/tag spec ( #30796 )
2024-09-03 15:32:12 +00:00
Matt Jankowski
67faaf5557
Simplify account model username presence validation spec ( #31013 )
2024-09-03 15:30:57 +00:00
Matt Jankowski
fcb83be8b2
Improve coverage specificity for Webhook enable/disable/secret specs ( #31194 )
2024-09-03 15:30:13 +00:00
Matt Jankowski
928390c2ba
Convert `admin/settings` controller specs to system specs ( #31548 )
2024-09-03 15:29:32 +00:00
Matt Jankowski
ef4920c6c9
Pull out https/hostname setup for request specs to shared config ( #31622 )
2024-09-03 15:28:57 +00:00
Matt Jankowski
79b1841805
Disable `without_verify_partial_doubles` in statuses/show view spec ( #29132 )
2024-09-03 15:23:57 +00:00
Matt Jankowski
5b595b8a5a
Remove usage of `assigns` in controller specs ( #30195 )
2024-09-03 15:23:16 +00:00
Claire
ea0d691e19
Add `GET /api/v2_alpha/notifications/:group_key/accounts` ( #31725 )
2024-09-03 14:32:26 +00:00
Matt Jankowski
219458d7d4
Convert `tags` controller spec to system and request specs ( #31708 )
2024-09-03 13:18:53 +00:00
Claire
ac4002fe08
Merge commit '611533cd12059d365ca0267342b750e615637bd4' into glitch-soc/merge-upstream
2024-09-03 12:12:23 +02:00
Matt Jankowski
31c00108a4
Add first pass coverage for `AnnualReport` class ( #31704 )
2024-09-03 09:05:26 +00:00
Matt Jankowski
b8957241af
Add coverage for `JsonLdHelper#uri_from_bearcap` method ( #31700 )
2024-09-03 08:41:11 +00:00
Matt Jankowski
25bbb01666
Remove unused helper method in spec ( #31699 )
2024-09-03 08:04:22 +00:00
Matt Jankowski
24a0b20408
Use `body_as_json` directly instead of via local var assignment ( #31696 )
2024-09-03 08:03:08 +00:00
Christian Schmidt
a5bbe83dfd
media_ids is an array of strings ( #31709 )
2024-09-02 20:18:09 +00:00
Claire
402c1e116d
Merge commit '491033c86cc9c29302bfe68cc94dabad82ded4cc' into glitch-soc/merge-upstream
2024-09-02 17:43:10 +02:00
Christian Schmidt
491033c86c
Reject status creation with invalid `media_ids` parameter ( #31681 )
2024-09-02 15:30:48 +00:00
Matt Jankowski
40f993b3a0
Use built-in `response.parsed_body` for JSON response specs ( #31674 )
2024-09-02 14:25:21 +00:00
David Roetzel
388d5473e1
Refactor (ruby) redis configuration ( #31694 )
2024-09-02 14:19:55 +00:00
Claire
6f35e93f72
Merge commit '02633d6ebbe944a8769c8f2229fa9e0d6c7d1142' into glitch-soc/merge-upstream
2024-08-31 16:06:04 +02:00
Matt Jankowski
1ee1c329cc
Convert `admin/announcements` controller spec to system spec ( #31655 )
2024-08-30 07:15:28 +00:00
Claire
ad0a28a8bf
Add `grouped_types` parameter to allow clients to restrict which notifications types get grouped ( #31594 )
2024-08-29 12:39:07 +00:00
Matt Jankowski
02585d8789
Convert `media` controller spec to request spec ( #31634 )
2024-08-29 08:46:00 +00:00
Matt Jankowski
b9269c8d38
Convert `admin/reset` controller spec to system spec ( #31643 )
2024-08-29 08:38:17 +00:00
Matt Jankowski
0ef636f72d
Convert `shares` controller spec to system spec ( #31619 )
2024-08-28 07:58:40 +00:00
Matt Jankowski
00586d27cb
Convert `instance_actor` controller spec to request spec ( #31621 )
2024-08-28 07:56:07 +00:00