Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

fixing timelines #236

Merged
merged 1 commit into from
Nov 4, 2023
Merged

fixing timelines #236

merged 1 commit into from
Nov 4, 2023

Conversation

JohnOberhauser
Copy link
Member

For some reason, I started getting 19 statuses back from the API during home timeline paging, even though I'm requesting 20. Our current logic is that if the response count != the request page size, that means we are done paging. We should instead be checking if there is a next link header.

  • Updating all timelines to grab to look at the link header for determining if we should continue paging

@JohnOberhauser JohnOberhauser requested review from a team, devotaaabel and timc-mozilla and removed request for a team November 3, 2023 21:48
).map { it.toExternalModel() }
)

if (!response.isSuccessful) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ideally we'd return a type that can either be a success or error (obviously we're not doing that anywhere but I think that's the ideal state). Just something to aspire towards...

@JohnOberhauser JohnOberhauser merged commit 96f2e93 into main Nov 4, 2023
3 checks passed
@JohnOberhauser JohnOberhauser deleted the homeTimelineBug branch November 4, 2023 00:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants