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

chore(TransactionFeedV2): Merge old stand by transactions that are out of scope of pagination #6185

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

sviderock
Copy link
Contributor

@sviderock sviderock commented Oct 24, 2024

Description

This PR fixes the merging process of pagination data with stand by transactions. Previously, there were still some stand by transactions that didn't get merged, specifically those that are older than the last transaction from pagination. This PR fixes that by merging all the stand by transactions that are "out of scope" of pagination at the very end of the feed.

Test plan

Added test that checks proper merging for old stand by transactions

Related issues

Backwards compatibility

Yes

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.89%. Comparing base (25039d0) to head (26d0f57).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6185      +/-   ##
==========================================
- Coverage   88.90%   88.89%   -0.01%     
==========================================
  Files         733      733              
  Lines       31142    31144       +2     
  Branches     5717     5414     -303     
==========================================
  Hits        27686    27686              
- Misses       3259     3415     +156     
+ Partials      197       43     -154     
Files with missing lines Coverage Δ
src/transactions/feed/TransactionFeedV2.tsx 92.07% <100.00%> (+0.07%) ⬆️

... and 67 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25039d0...26d0f57. Read the comment docs.

Copy link
Member

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

🚀

Comment on lines 625 to 626
await waitFor(() => {
expect(tree.getByTestId('TransactionList')).toBeVisible()
Copy link
Member

@jeanregisser jeanregisser Oct 24, 2024

Choose a reason for hiding this comment

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

Could we wait for just that line instead of the whole thing?

@sviderock sviderock added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit 86106b9 Oct 24, 2024
15 checks passed
@sviderock sviderock deleted the slava/feed-v2-old-stand-by branch October 24, 2024 12:02
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