Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Reconcile date is pushing back from last reconcileStamp rather than currentDate #14042

Closed
jasonrsadler opened this issue May 7, 2018 · 1 comment · Fixed by #14057
Closed

Comments

@jasonrsadler
Copy link
Contributor

jasonrsadler commented May 7, 2018

Description

When Brave is started, and reconcile requirements have not been met, Brave pushes the reconcile date forward from the previous reconcileStamp rather than the current date.

Steps to Reproduce

  1. Start Brave, enable payments, visit site to place in ledger.
  2. Exit Brave.
  3. Change reconcileStamp to 5 days before current date.
  4. Start Brave
  5. Next Contribution will show 'Overdue' and reconcile date will have advanced to 3 days after the reconcileStamp that was set (2 days before current date)
  6. Exit Brave and restart
  7. Next Contribution will show 'Overdue' and reconcile date will have advanced another 3 days after previous reconcileStamp (1 day after current date)
  8. Exit and restart Brave.
  9. reconcileStamp will advance 3 more days but reconcile date in Brave will be the same as in step 7.
  10. Quit and restart Brave.
  11. Reconcile date will no longer be pushed out and will now match reconcileStamp

Actual result:

If browser has not been used for up to 5 days past reconcile stamp and browsing requirements haven't been met, the browser will push the reconcile date forward 3 days from the last reconcile stamp. This will keep occurring every time the browser is started until the reconcile date is past 3 day pushback threshold.

If browser has not been used for over 5 days past reconcile stamp and browsing requirements haven't been met, the browser will push the reconcile date forward 30 days from the current date.

Expected result:
If browser has not been used for some time past reconcile date and contribution browsing requirements have not been met, it is expected that the contribution date will be pushed out by 4 days (3 days + 1 day to give the user time to fulfill browsing requirements since a check and push is done when less than 3 days is detected)

Reproduces how often:

100

Brave Version

about:brave info:

Brave: 0.24.0
V8: 6.5.254.41
rev: 30cc25b
Muon: 5.1.2
OS Release: 17.5.0
Update Channel:
OS Architecture: x64
OS Platform: macOS
Node.js: 7.9.0
Brave Sync: v1.4.2
libchromiumcontent: 65.0.3325.181

Reproducible on current live release:
Unknown

Additional Information

#14006 partially addresses with push back message but reconcileStamp issue remains present.

@jasonrsadler jasonrsadler added this to the 0.22.x Release 3 (Beta channel) milestone May 7, 2018
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue May 8, 2018
Resolves brave#14042

Auditors:

Test Plan:
@NejcZdovc NejcZdovc mentioned this issue May 8, 2018
10 tasks
bsclifton added a commit that referenced this issue May 8, 2018
bsclifton added a commit that referenced this issue May 8, 2018
bsclifton added a commit that referenced this issue May 8, 2018
@srirambv
Copy link
Collaborator

srirambv commented May 11, 2018

Verified on Windows x64

Verified with macOS 10.12.6 using

  • 0.22.709 e043144
  • muon 6.0.9
  • libchromiumcontent 66.0.3359.139

Verified with Mint 18.3 x64 using the following build:

  • 0.22.711 31d6bcc
  • Muon: 6.0.9
  • libchromiumcontent: 66.0.3359.139

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.