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

🧹 optimise GoCardless bank sync to use fewer api calls #436

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

matt-fidd
Copy link
Contributor

Depends on merge of #435

Part of #431
Complimentary to PR in actual: actualbudget/actual#3279

The balance fetched from gocardless is used to calculate the starting balance, which is only relevant when a completely blank account is synced. This change lays the groundwork in the server to allow the client side to be more selective in what it retrieves.

@actual-github-bot actual-github-bot bot changed the title 🧹 Optimise GoCardless bank sync to use fewer api calls [WIP] 🧹 Optimise GoCardless bank sync to use fewer api calls Aug 17, 2024
@matt-fidd matt-fidd changed the title [WIP] 🧹 Optimise GoCardless bank sync to use fewer api calls 🧹 Optimise GoCardless bank sync to use fewer api calls Aug 17, 2024
@matt-fidd matt-fidd changed the title 🧹 Optimise GoCardless bank sync to use fewer api calls 🧹 optimise GoCardless bank sync to use fewer api calls Aug 17, 2024
@matt-fidd matt-fidd force-pushed the optimise-gocardless-2 branch 3 times, most recently from 9537442 to 290d0d7 Compare August 17, 2024 17:42
@matt-fidd matt-fidd requested a review from psybers August 17, 2024 17:43
@matt-fidd matt-fidd force-pushed the optimise-gocardless-2 branch from 7362262 to 4ce9d38 Compare August 20, 2024 18:08
@matt-fidd matt-fidd requested a review from MatissJanis August 20, 2024 18:09
@matt-fidd matt-fidd force-pushed the optimise-gocardless-2 branch 2 times, most recently from 66f3a0d to f7ba83b Compare August 25, 2024 15:33
@matt-fidd matt-fidd force-pushed the optimise-gocardless-2 branch from f7ba83b to 0cff3ed Compare August 25, 2024 16:55
@matt-fidd matt-fidd merged commit d613a6b into actualbudget:master Aug 26, 2024
7 checks passed
@matt-fidd matt-fidd deleted the optimise-gocardless-2 branch August 26, 2024 10:04
MMichotte pushed a commit to MMichotte/actual-server that referenced this pull request Sep 9, 2024
)

* don't fetch balance from gocardless unless it's needed

* release note

* refactor into common function

* Update src/app-gocardless/app-gocardless.js

Co-authored-by: Matiss Janis Aboltins <[email protected]>

---------

Co-authored-by: Matiss Janis Aboltins <[email protected]>
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.

4 participants