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

Rewards summary is not retained between browser restarts. #3055

Closed
btlechowski opened this issue Jan 23, 2019 · 10 comments · Fixed by brave/brave-core#1423
Closed

Rewards summary is not retained between browser restarts. #3055

btlechowski opened this issue Jan 23, 2019 · 10 comments · Fixed by brave/brave-core#1423

Comments

@btlechowski
Copy link

Follow up from #2332

Steps to Reproduce

  1. Clean install
  2. Tip a verified publisher
  3. Check Rewards summery in brave://rewards
  4. Restart browser
  5. Check Rewards summery in brave://rewards

Actual result:

Rewards summery is empty
Rewards summery is shown for given month (January on the screen shot), which indicates that all transactions are included.
image

Note: Tips table retains the data.

Expected result:

Rewards summery is retained

Reproduces how often:

always

Brave version (brave://version info)

Brave 0.59.26 Chromium: 72.0.3626.64 (Official Build) beta (64-bit)
Revision eaa9668e80ce5405e7f1902579558ea725c06ca1-refs/branch-heads/3626@{#708}
OS Windows

cc @brave/legacy_qa @NejcZdovc

@NejcZdovc
Copy link
Contributor

@btlechowski can you test this on 0.60 please. I couldn't reproduce it

@kjozwiak
Copy link
Member

kjozwiak commented Jan 23, 2019

Nice find @btlechowski 👍@NejcZdovc I managed to reproduce it on both 0.60.16 Chromium: 72.0.3626.64 and 0.59.26 Chromium: 72.0.3626.64 using macOS 10.14.2 x64. Example:

tipdisappearing

This one is pretty bad as it's clearing the Rewards Summary. Should probably figure out what's going on and fix 0.59.x as well.

@NejcZdovc NejcZdovc added the priority/P2 A bad problem. We might uplift this to the next planned release. label Jan 23, 2019
@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Jan 23, 2019

Reproducible on Windows 10 x64 - 0.59.26. After browser restart Total tips this month value is also getting cleared from Tips panel.

image

Reproduced on macOS

Brave 0.59.28 Chromium: 72.0.3626.64 (Official Build) beta(64-bit)
Revision eaa9668e80ce5405e7f1902579558ea725c06ca1-refs/branch-heads/3626@{#708}
OS Mac OS X
  • Also encountered what was mentioned above - after browser restart Total tips this month value/amount is also getting cleared from Tips table

@NejcZdovc NejcZdovc self-assigned this Jan 23, 2019
@kjozwiak
Copy link
Member

Jumped on a quick call with @NejcZdovc and narrowed down the issue. This only happens when there's only a tip being listed under Summary no other entries. Example:

Case that's reproducible:

  • launch Brave with a new profile and restore a wallet (no entries in the summary)
  • tip a verified publisher and a tip entry appears in the summary (only entry)
  • restart the browser and you'll notice that the tip entry is removed

Case that's not reproducible:

  • launch Brave with a new profile and accept a grant (now there's a grant entry in the summary)
  • tip a verified publisher and a tip entry appears in the summary (now there's two entries)
  • restart the browser and you'll notice that the tip doesn't disappear from the summary this time

NejcZdovc added a commit to brave/brave-core that referenced this issue Jan 23, 2019
@rebron rebron changed the title Rewards summery is not retained between browser restarts. Rewards summary is not retained between browser restarts. Jan 23, 2019
@NejcZdovc NejcZdovc modified the milestones: 1.x Backlog, 0.60.x - Dev Jan 23, 2019
@kjozwiak
Copy link
Member

@bbondy @rebron what do you guys think about uplifting this into 0.59.x? As mentioned in #3055 (comment), this only happens when you only have tip entries in the summary and nothing else. Users that restore wallets are more prone to run into this. Users who accept grants (majority of our users) won't see this.

I'm fine leaving this in 0.60.x but wanted to see what you guys thought about a possible uplift.

@bbondy
Copy link
Member

bbondy commented Jan 23, 2019

I'm fine with whatever you think is best.

@srirambv
Copy link
Contributor

@kjozwiak @bbondy I'd just leave it for 0.60.x. Its not like we are losing the actual tip, restart workaround just works fine.

@kjozwiak
Copy link
Member

Lets leave it for 0.60.x 👍

@NejcZdovc
Copy link
Contributor

@srirambv restart will not work as if you have negative total, we don't load reports and because of that you will lose summary data. If you restore wallet, do a tip, restart browser, do a tip, restart browser, do a tip, at the end in summary you will only see the last tip, not sum.

@LaurenWags
Copy link
Member

LaurenWags commented Feb 8, 2019

Verified passed with

Brave 0.60.23 Chromium: 72.0.3626.96 (Official Build) beta(64-bit)
Revision 84098ee7ef8622a9defc2ef043cd8930b617b10e-refs/branch-heads/3626@{#836}
OS Mac OS X

Verification passed on

Brave 0.60.23 Chromium: 72.0.3626.96 (Official Build) beta (64-bit)
Revision 84098ee7ef8622a9defc2ef043cd8930b617b10e-refs/branch-heads/3626@{#836}
OS Windows 10

Verification passed on

Brave 0.60.26 Chromium: 72.0.3626.96 (Official Build) beta(64-bit)
Revision 84098ee7ef8622a9defc2ef043cd8930b617b10e-refs/branch-heads/3626@{#836}
OS Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants