Wrong account balance after account deletion and creation
Created by: nicofrand
Steps to reproduce:
- Delete the account
- Launch the account sync
- Wait for weboob to fetch everything (account + operations) (see log below to ensure I waited enough)
What happens:
- The account balance is -400, which is incorrect (both in the menu and the page content).
- The operations list for this account is empty
What I expect:
- The account balance is OK.
- The account's operation list is full
Once I refresh the page, everything is OK.
On the client side:
Store - cache hit for operations
main.js:38 Store - cache hit for categories
main.js:38 Store - cache hit for banks
main.js:38 Store - cache hit for accounts
Logs:
[Tue, 01 Sep 2015 14:04:07 GMT] - DELETE /accounts/e589541f64243439cb2ee2d7825e5ee8 - 204 - 965.534 ms - -
[2015-09-01 16:04:56:577] info - sources/weboob | Fetch started: running process ./weboob/scripts/accounts.sh...
[2015-09-01 16:04:59:811] info - sources/weboob | weboob exited with code 0
[2015-09-01 16:04:59:811] info - sources/weboob | weboob exited normally with non-empty JSON content, continuing.
[2015-09-01 16:04:59:811] info - accounts-manager | -> 3 bank account(s) found
[2015-09-01 16:04:59:834] info - accounts-manager | Account was already present.
[2015-09-01 16:04:59:835] info - accounts-manager | Account was already present.
[2015-09-01 16:04:59:835] info - accounts-manager | New account found.
[2015-09-01 16:04:59:862] info - sources/weboob | Fetch started: running process ./weboob/scripts/operations.sh...
[2015-09-01 16:05:47:577] info - sources/weboob | weboob exited with code 0
[2015-09-01 16:05:47:592] info - sources/weboob | weboob exited normally with non-empty JSON content, continuing.
[2015-09-01 16:06:03:746] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:783] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:799] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:804] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:807] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:812] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:846] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:851] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:897] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:900] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:903] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:907] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:939] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:943] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:959] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:963] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:966] info - accounts-manager | New operation found!
[2015-09-01 16:06:03:993] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:1] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:7] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:22] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:26] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:58] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:66] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:76] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:83] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:89] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:134] info - accounts-manager | New operation found!
[2015-09-01 16:06:04:141] info - accounts-manager | New operation found!
[2015-09-01 16:06:05:92] info - accounts-manager | Updating 'last checked' date for all accounts...
[2015-09-01 16:06:05:285] info - accounts-manager | Informing user new operations have been imported...
[2015-09-01 16:06:05:285] info - accounts-manager | Checking alerts for accounts balance...
[2015-09-01 16:06:05:469] info - accounts-manager | Checking alerts for operations amount
[2015-09-01 16:06:05:836] info - accounts-manager | Post process: done.
[Tue, 01 Sep 2015 14:06:05 GMT] - GET /accesses/e589541f64243439cb2ee2d7820255a0/fetch/accounts - 200 - 69291.138 ms - 2
[Tue, 01 Sep 2015 14:06:05 GMT] - GET /banks/e589541f64243439cb2ee2d78201d3a7/accounts - 200 - 66.182 ms - 920
[Tue, 01 Sep 2015 14:06:06 GMT] - GET /accounts/e589541f64243439cb2ee2d78202635c/operations - 200 - 149.571 ms - 8593
[Tue, 01 Sep 2015 14:06:07 GMT] - GET /accounts/e589541f64243439cb2ee2d78202731f/operations - 200 - 1264.375 ms - 396297