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

Refactor selecting network initially to avoid sync timing issues #1343

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Mar 21, 2023

Related to #792 (comment)

Reverts part of c125984 and re-fixes #975 (comment)

Instead of waiting for tabs to be synced before selecting network initially:

  • initialize selecting network without syncing that action
  • using takeLatest cancel initialization task if tabs sync during selectNetwork

@lukaw3d lukaw3d requested a review from buberdds March 21, 2023 04:51
@lukaw3d lukaw3d mentioned this pull request Mar 21, 2023
@cloudflare-pages
Copy link

cloudflare-pages bot commented Mar 21, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d216857
Status: ✅  Deploy successful!
Preview URL: https://44d46b4a.oasis-wallet.pages.dev
Branch Preview URL: https://lw-sync-time.oasis-wallet.pages.dev

View logs

@github-actions
Copy link

github-actions bot commented Mar 21, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 7 0 0.03s
✅ REPOSITORY checkov yes no 15.54s
✅ REPOSITORY git_diff yes no 0.0s
✅ TYPESCRIPT eslint 7 0 0 5.35s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

Copy link
Contributor

@buberdds buberdds left a comment

Choose a reason for hiding this comment

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

not sure why but you have to bump some snapshots

@lukaw3d
Copy link
Member Author

lukaw3d commented Mar 21, 2023

Slightly refactored default network type, so that tests with configureAppStore can stay simple as they were

Reverts part of c125984 and re-fixes
#975 (comment)

Instead of waiting for tabs to be synced before selecting network initially:
- initialize selecting network without syncing that action
- using takeLatest cancel initialization task if tabs sync during selectNetwork
@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Merging #1343 (279c790) into master (7d5942c) will decrease coverage by 0.63%.
The diff coverage is 72.41%.

❗ Current head 279c790 differs from pull request most recent head d216857. Consider uploading reports for the commit d216857 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1343      +/-   ##
==========================================
- Coverage   84.77%   84.15%   -0.63%     
==========================================
  Files         142      142              
  Lines        3612     3628      +16     
  Branches      661      667       +6     
==========================================
- Hits         3062     3053       -9     
- Misses        550      575      +25     
Flag Coverage Δ
cypress 51.15% <70.37%> (-0.49%) ⬇️
jest 79.35% <72.41%> (-0.67%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/app/state/persist/syncTabs.ts 79.31% <ø> (ø)
src/app/state/network/saga.ts 77.08% <68.00%> (-11.81%) ⬇️
src/app/state/network/index.ts 100.00% <100.00%> (ø)
src/app/state/persist/index.ts 41.17% <100.00%> (-4.28%) ⬇️

... and 5 files with indirect coverage changes

@lukaw3d lukaw3d merged commit 21163a8 into master Mar 21, 2023
@lukaw3d lukaw3d deleted the lw/sync-time branch March 21, 2023 21:18
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.

None yet

2 participants