Commit Graph

15 Commits (0c690511c220d2ee9de9fc41e0d1f94b3cdb0b88)

Author SHA1 Message Date
Matt Jankowski 0ac43700d8
Add coverage for `REST::AnnualReportEventSerializer` and two `ActivityPub::*` serializers (#33355)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
3 weeks ago
Matt Jankowski 870bb06994
Add coverage for misc serializers (#32781) 2 months ago
Matt Jankowski b1c10969ac
Reduce factory creation (48 -> 8) in `AP::Note` serializer spec (#32492) 3 months ago
Matt Jankowski 5405bdd344
Remove unused E2EE messaging code (#31193) 4 months ago
Matt Jankowski f1003b2560
Enable "zero monkey patching" mode in RSpec (#31614) 4 months ago
Matt Jankowski 1d51e10510
Consolidate JSON parsing in serializers specs (#27693) 1 year ago
Matt Jankowski b06284c572
Fix `RSpec/HookArgument` cop (#27747) 1 year ago
Claire 3262d1f1b6
Fix incorrect serialization of regional languages in `contentMap` (#27207) 1 year ago
Matt Jankowski 4c5aa0e470
Update rubocop-rspec to version 2.22.0, fix `RSpec/IndexedLet` cop (#24698) 2 years ago
Matt Jankowski c42591356d
Fix `RSpec/DescribedClass` cop (#25104) 2 years ago
Matt Jankowski 56bddfbfa3
Serializers spec coverage (#24017) 2 years ago
Nick Schonning 19614ba247
Rename ActivityPub Serializer Specs (#23844) 2 years ago
Nick Schonning 4552685f6b
Autofix Rubocop RSpec/LeadingSubject (#23670) 2 years ago
ThibG 9a90ec3b3b Fix account URI in UpdatePollSerializer (#11194)
* Fix account URI in UpdatePollSerializer

Fixes #11185

* Add specs
6 years ago
ThibG 9d3c6f1849 Improved remote thread fetching (#10106)
* Fetch up to 5 replies when discovering a new remote status

This is used for resolving threads downwards. The originating
server must add a “replies” attributes with such replies for it to
be useful.

* Add some tests for ActivityPub::FetchRepliesWorker

* Add specs for ActivityPub::FetchRepliesService

* Serialize up to 5 public self-replies for ActivityPub notes

* Add specs for ActivityPub::NoteSerializer

* Move exponential backoff logic to a worker concern

* Fetch first page of paginated collections when fetching thread replies

* Add specs for paginated collections in replies

* Move Note replies serialization to a first CollectionPage

The collection isn't actually paginable yet as it has no id nor
a `next` field. This may come in another PR.

* Use pluck(:uri) instead of map(&:uri) to improve performances

* Fix fetching replies when they are in a CollectionPage
6 years ago