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 4 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 c30edc7
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/676b806d33f4cf0008022242
😎 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.64 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/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/workbox-window.prod.es5.js 5.69 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/useAccountPreviewTransactions.js 1.63 kB 0%
static/js/AppliedFilters.js 10.24 kB 0%
static/js/narrow.js 83.36 kB 0%
static/js/wide.js 104.11 kB 0%
static/js/ReportRouter.js 1.58 MB 0%
static/js/index.js 3.71 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.33 MB (+214 B) +0.02%
Changeset
File Δ Size
packages/loot-core/src/server/main.ts 📈 +565 B (+0.80%) 68.92 kB → 69.47 kB
packages/loot-core/src/server/accounts/sync.ts 📈 +98 B (+0.37%) 26.1 kB → 26.19 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.33 MB (+214 B) +0.02%

Smaller

No assets were smaller

Unchanged

No assets were unchanged

Copy link
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Dec 16, 2024
@github-actions github-actions bot removed the Stale label Dec 17, 2024
Copy link
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant