RSS Feed lastGuid Rotation Handling #584
Labels
No labels
blocked
duplicate
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
won't fix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/vylbot-app#584
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic: #528
Story Points:
Stop treating every item as new when the stored
lastGuidhas rotated off the feed (retention/expiry), so a poll cannot flood a channel.Follow-up from the review on #579 / #530:
GetNewItemscurrently returns the full feed whenlastGuidis set but not present.Acceptance Criteria
GIVEN a parsed feed with items ordered newest-first
AND
lastGuidmatches an item still in the feedWHEN
RssFeedHelper.GetNewItemsis calledTHEN only items newer than
lastGuidare returned, oldest-firstAND existing behaviour is unchanged
GIVEN a parsed feed with items ordered newest-first
AND
lastGuidis set but is not present on any itemWHEN
RssFeedHelper.GetNewItemsis calledTHEN at most 10 items are returned, oldest-first
AND the newest items in the feed are the ones kept if the feed is larger than the cap
GIVEN a parsed feed
AND
lastGuidis missing, null, or emptyWHEN
RssFeedHelper.GetNewItemsis calledTHEN an empty array is still returned (first-poll behaviour is unchanged)
Subtasks
RssFeedHelper.GetNewItemsto cap results whenlastGuidis not found in the feedlastGuid, cap overflow, and the existing match/empty casesNotes
lastGuiddisappears from a feed (retention/rotation), all items are treated as newlastGuidis set but not found; do not flood on first poll (lastGuidabsent still returns[])