Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove timestamp-reference transaction from start of page #2189

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

iamacook
Copy link
Member

Summary

We group transactions by day, in between which we add date labels.

When fetching the first page of transactions (offeset=0), we group/label the result as is. For subsequent pages (offset>0), we modify the pagination to request the last transaction of the previous page in order to determine whether we return an initial date label or not, before removing it and mapping the remanining transactions.

Currently, the removal of this "extra" transaction is not assigning correctly due to abstraction into a separate function. This adjusts the logic flow to ensure the "extra" transaction is removed where it is passed to the mapper.

Changes

  • Move slice into main mapping function.

@iamacook iamacook self-assigned this Dec 10, 2024
@iamacook iamacook requested a review from a team as a code owner December 10, 2024 15:43
@PooyaRaki
Copy link
Contributor

It looks good to me 👍 ; I just have one remaining question.

@iamacook iamacook requested a review from PooyaRaki December 17, 2024 07:30
@iamacook iamacook merged commit 2f1af10 into main Dec 17, 2024
20 checks passed
@iamacook iamacook deleted the duplicate-page-transactions branch December 17, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants