-
Notifications
You must be signed in to change notification settings - Fork 973
Ledger table entries removed after payment is processed #12245
Comments
Same behaviour on production wallet as well. |
I found something interesting. When I close the browser and open nothing happens to the table. When I switched to the inactive tabs which were having the sites from the table, most entries vanished from the ledger table and finally 3-4 of them were back on the ledger table |
Confirmed with @mrose17 - the ledger should ALWAYS keep the last 30 days of activity (ex: items would only fall off the list off if 30 days went by) Assigning myself to check this out |
@NejcZdovc is this intentional? During the prune synopsis, it calls an action (which saves synopsis)... but then it also saves synopsis itself browser-laptop/app/browser/api/ledger.js Lines 358 to 368 in 94a24e3
browser-laptop/app/browser/reducers/ledgerReducer.js Lines 429 to 439 in 94a24e3
|
@bsclifton yes this is intentionally. So we need to save this new state into our state, because when pruning actually happens is here browser-laptop/app/browser/api/ledger.js Line 1963 in 94a24e3
ledgerState.saveSynopsis so that we have up to date state (same as in the action) which we can use then in run function
|
@NejcZdovc ah ok- makes sense. Thanks for the explanation 😄 When I was debugging, I saw that and it definitely caught my eye (even though I reviewed the original PR LOL) @srirambv the history issue you also reported may be related to this. After you see the entry disappear, can you please try hitting Ctrl + R and see if it refreshes? @LaurenWags @kjozwiak if my suspicion is correct, this bug would only be happening on Windows. Are either of you able to repro on macOS? |
@bsclifton Am unable to reproduce the issue consistently now on the latest build. Entries are not getting removed when I follow the steps from initial issue |
@srirambv awesome- I'd like to propose closing the issue until we see it again and can confirm the above (do the entries re-show if you do Ctrl + R) |
Sounds good. Will try to reproduce and see if Ctrl+R brings back the entries 👍 |
Unable to reproduce on 0.19.117. All entries are retained even after payment is processed |
Description
Ledger table entries removed after payment is processed
Steps to Reproduce
LEDGER_ENVIRONMENT=staging <path to browser>
reconcileStamp
insession-store-1
andledger-state.json
file to an older date to trigger payment processLEDGER_NO_FUZZING=true LEDGER_VERBOSE=true LEDGER_ENVIRONMENT=staging <path to browser>
, ensure Next contribution readsOverdue
LEDGER_NO_FUZZING=true LEDGER_VERBOSE=true LEDGER_ENVIRONMENT=staging <path to browser>
Actual result:
Ledger table entries removed after payment is processed.
https://youtu.be/pKeH_n2Ll6M
Expected result:
Ledger table entries should not be lost when browser is quit and relaunched
Reproduces how often:
100%
Brave Version
about:brave info:
Reproducible on current live release:
Not sure. Yet to verify
Additional Information
#9938
cc: @kjozwiak @LaurenWags @mrose17 @evq
The text was updated successfully, but these errors were encountered: