You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/tests/Feature/Timeline
Ashley 2099fa6593 Keep a populated home feed when a forced warm publishes nothing
A forced warm that came up with no publishable candidates deleted the
live feed key. For a per-user feed that is destructive in exactly the
wrong direction: the warm can come up empty because the viewer's cached
following list is stale or because the statuses behind the candidates
could not be resolved, and the user who was reading their timeline a
moment ago is left with nothing. The scratch key is dropped instead and
the live feed is untouched. The instance-wide feeds keep their
clear-on-empty behaviour, which now has a comment saying why they differ.

warmCache also returns the number of members it published instead of a
constant 1, which is what lets a caller tell "rebuilt and ready" from
"nothing to show". The unused $returnIds parameter is gone; all four
call sites discarded it.

Verified standalone off staging:
HomeWarmEmptyResultTest 2 passed; HomeChronologicalOrderTest green;
tests/Feature/Timeline + HomeFeed 73 passed.
7 days ago
..
AdminRemoveCwFeedTest.php
…
FeedJobLockExpiryTest.php
…
HashtagInsertFanoutAgeTest.php
…
HashtagRemoveFanoutTest.php
…
HashtagUnfollowPipelineTest.php
…
HomeChronologicalOrderTest.php Keep a populated home feed when a forced warm publishes nothing 7 days ago
HomeColdStartServesContentTest.php Serve the home feed with 200 after a synchronous cold warm 2 weeks ago
HomeEmptyCursorTest.php Serve the home feed with 200 after a synchronous cold warm 2 weeks ago
HomeFanoutNoCreateTest.php
…
HomeFilteredWindowTest.php
…
HomeReadMuteFilterTest.php
…
HomeTimelineApiTest.php Merge pull request #7753 from pixelfed/timeline-fix/home-cold-empty-200 2 weeks ago
HomeWarmEmptyResultTest.php Keep a populated home feed when a forced warm publishes nothing 7 days ago
HomeWarmPerAccountTest.php Represent every followed account when warming the home feed 2 weeks ago
InternalTimelineLimitTest.php
…
LocalTimelineApiTest.php Return the newest posts above min_id, not the immediately-newer window 2 weeks ago
NetworkTimelineApiTest.php Return the newest posts above min_id, not the immediately-newer window 2 weeks ago
NetworkTimelineInsertTest.php
…
NetworkTimelineScopeTest.php
…
NetworkWarmOrderTest.php Revert timeline sorted-set feed changes (#7800) 1 week ago
NsfwEditFeedTest.php
…
PublicTimelineAtomicWarmTest.php
…
PublicTimelineMinIdTest.php Score cached timelines by created_at instead of status id 2 weeks ago
PublicTimelineNoRewarmTest.php
…
PublicTimelineWarmCacheTest.php
…
RankedMinIdNewestTest.php test: seed snowflake-shaped ids in ranked timeline pagination tests 1 week ago
RebuildHomeFeedsCommandTest.php Represent every followed account when warming the home feed 2 weeks ago
TimelineScrollPaginationTest.php Resolve rounded snowflake cursors to the real feed member 2 weeks ago