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

[WIP] Fix issue where the UI is stuck sync'ing if no data from server #3941

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

psybers
Copy link
Contributor

@psybers psybers commented Dec 8, 2024

A user reported a problem where the server sent no data (it sent an empty {} object). This results in the UI being "stuck" showing it synchronizing the banks forever.

This detects the issue of an empty object and throws a BankSync exception.

It also updates the SF batch sync code to properly handle if an exception happens, by setting every account to error status. I don't know if that is what we want, but it definitely reports an error and definitely stops it from being stuck.

@actual-github-bot actual-github-bot bot changed the title Fix issue where the UI is stuck sync'ing if no data from server [WIP] Fix issue where the UI is stuck sync'ing if no data from server Dec 8, 2024
Copy link

netlify bot commented Dec 8, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit b502e4b
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/6755dc537ed0470008336c69
😎 Deploy Preview https://deploy-preview-3941.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@psybers
Copy link
Contributor Author

psybers commented Dec 8, 2024

@matt-fidd Is this the logic we want? For me, this would result in 29 error messages. But in some sense that is correct, as I requested 29 accounts to sync.

Copy link
Contributor

github-actions bot commented Dec 8, 2024

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
10 5.45 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/workbox-window.prod.es5.js 5.69 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/useAccountPreviewTransactions.js 1.63 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/AppliedFilters.js 21.32 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/narrow.js 82.96 kB 0%
static/js/wide.js 241.53 kB 0%
static/js/ReportRouter.js 1.52 MB 0%
static/js/index.js 3.44 MB 0%

Copy link
Contributor

github-actions bot commented Dec 8, 2024

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.32 MB → 1.32 MB (+214 B) +0.02%
Changeset
File Δ Size
packages/loot-core/src/server/main.ts 📈 +565 B (+0.88%) 62.7 kB → 63.25 kB
packages/loot-core/src/server/accounts/sync.ts 📈 +98 B (+0.37%) 25.76 kB → 25.86 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
kcab.worker.js 1.32 MB → 1.32 MB (+214 B) +0.02%

Smaller

No assets were smaller

Unchanged

No assets were unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant