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

Fixes split one time tip #5776

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Fixes split one time tip #5776

merged 1 commit into from
Jun 9, 2020

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented Jun 8, 2020

Resolves brave/brave-browser#10153

Submitter Checklist:

Test Plan:

defined in the issue

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@NejcZdovc NejcZdovc added this to the 1.12.x - Nightly milestone Jun 8, 2020
@NejcZdovc NejcZdovc requested a review from a team June 8, 2020 20:16
@NejcZdovc NejcZdovc self-assigned this Jun 8, 2020
Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one minor comment

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NejcZdovc
Copy link
Contributor Author

CI failed on test-install, all good

@NejcZdovc NejcZdovc merged commit a017cc7 into master Jun 9, 2020
@NejcZdovc NejcZdovc deleted the split-scenario branch June 9, 2020 04:48
NejcZdovc pushed a commit that referenced this pull request Jun 9, 2020
NejcZdovc pushed a commit that referenced this pull request Jun 9, 2020
@LaurenWags
Copy link
Member

LaurenWags commented Jun 9, 2020

Verification completed using

Brave | 1.12.11 Chromium: 83.0.4103.61 (Official Build) nightly (64-bit)
-- | --
Revision | 94f915a8d7c408b09cc7352161ad592299f384d2-refs/branch-heads/4103@{#561}
OS | macOS Version 10.14.6 (Build 18G3020)

Scenario 1 (as originally reported in issue):

pre-req: have a staging wallet which was funded anonymously previously w/ BAT - should have a decent amount

  1. Launch clean profile w/ flags /Applications/Brave\ Browser\ Nightly.app/Contents/MacOS/Brave\ Browser\ Nightly --enable-logging=stderr --vmodule=*/bat-native-ledger/*=6,*/brave_rewards/*=6 --log-level=2 --rewards=staging=true --brave-ads-staging
  2. Enable Rewards
  3. Claim UGP grant (30 BAT).
  4. Restore the wallet, note balance (should be at least 20 BAT)

note - here is my Balance info from brave://rewards-internals prior to the tip for reference:
Screen Shot 2020-06-09 at 9 25 06 AM

  1. Tip kjozwiakstaging.github.io 50 BAT.
  2. Give the tip a bit of time to process.
  3. Confirmed ending wallet balance was as expected:

Screen Shot 2020-06-09 at 9 30 45 AM

  1. Confirmed Balance info on brave://rewards-internals was as expected (all Rewards BAT used for tip and remaining was deducted from Deposited BAT):

Screen Shot 2020-06-09 at 9 30 55 AM

  1. Confirmed Tips panel shows what I would expect for tip (it is broken into 2 due to the 2 different funding sources):

Screen Shot 2020-06-09 at 9 33 25 AM

  1. Confirmed Monthly Statement shows what I would expect for the tip (it is broken into 2 due to the 2 different funding sources):

Screen Shot 2020-06-09 at 9 33 35 AM

Encountered and logged brave/brave-browser#10176 - after restarting the browser a portion of the tip contributes again.


Scenario 2: (same funding sources as scenario 1, but recurring tip instead of one time tip)
pre-req: have a staging wallet which was funded anonymously previously w/ BAT - should have a decent amount

  1. Launch clean profile w/ flags /Applications/Brave\ Browser\ Nightly.app/Contents/MacOS/Brave\ Browser\ Nightly --enable-logging=stderr --vmodule=*/bat-native-ledger/*=6,*/brave_rewards/*=6 --log-level=2 --rewards=staging=true,reconcile-interval=10 --brave-ads-staging
  2. Enable Rewards
  3. Claim UGP grant (30 BAT).
  4. Restore the wallet, note balance (should be at least 20 BAT)

note - here is my Balance info from brave://rewards-internals prior to the tip for reference:
Screen Shot 2020-06-09 at 11 21 26 AM

  1. Set up monthly tip to kjozwiakstaging.github.io 50 BAT. (leave AC table empty)
  2. Wait for recurring tip to contribute
  3. Confirmed ending wallet balance was as expected:

Screen Shot 2020-06-09 at 11 31 24 AM

  1. Confirmed Balance info on brave://rewards-internals was as expected (all Rewards BAT used for tip and remaining was deducted from Deposited BAT):

Screen Shot 2020-06-09 at 11 31 33 AM

  1. Confirmed Monthly Contributions panel shows what I would expect for recurring tip:

Screen Shot 2020-06-09 at 11 29 55 AM

  1. Confirmed Monthly Statement shows what I would expect for the tip (it is broken into 2 due to the 2 different funding sources):

Screen Shot 2020-06-09 at 11 32 42 AM

  1. Restart the browser (ensuring enough time before next short reconcile due to flag used on initial launch). Confirmed a portion of the tip was not contributed again.

Scenario 3 (same as scenario 1 but with different funding source):
pre-req: have a staging wallet which was funded anonymously previously w/ BAT - should have a decent amount

  1. Launch clean profile w/ flags /Applications/Brave\ Browser\ Nightly.app/Contents/MacOS/Brave\ Browser\ Nightly --enable-logging=stderr --vmodule=*/bat-native-ledger/*=6,*/brave_rewards/*=6 --log-level=2 --rewards=staging=true --brave-ads-staging
  2. Enable Rewards
  3. Claim UGP grant (30 BAT).
  4. Connect a KYC'd uphold wallet, note balance (should be at least 20 BAT)

note - here is my Balance info from brave://rewards-internals prior to the tip for reference:

Screen Shot 2020-06-09 at 11 42 28 AM

  1. Tip kjozwiakstaging.github.io 50 BAT.
  2. Give the tip a bit of time to process.
  3. Confirmed ending wallet balance was as expected:

Screen Shot 2020-06-09 at 11 44 19 AM

  1. Confirmed Balance info on brave://rewards-internals was as expected (all Rewards BAT used for tip and remaining was deducted from Deposited BAT):

Screen Shot 2020-06-09 at 11 44 05 AM

  1. Confirmed Tips panel shows what I would expect for tip (it is broken into 2 due to the 2 different funding sources):

Screen Shot 2020-06-09 at 11 44 25 AM

  1. Confirmed Monthly Statement shows what I would expect for the tip (it is broken into 2 due to the 2 different funding sources):

Screen Shot 2020-06-09 at 11 44 37 AM

  1. Confirmed Uphold portion of the tip (20 BAT) shows in Uphold acct activity:

Screen Shot 2020-06-09 at 11 45 40 AM

Encountered brave/brave-browser#10176 - after restarting the browser a portion of the tip contributes again.


Scenario 4 (same as scenario 3 but with tipping a non-KYC'd, verified publisher):
pre-req: have a staging wallet which was funded anonymously previously w/ BAT - should have a decent amount

  1. Launch clean profile w/ flags /Applications/Brave\ Browser\ Nightly.app/Contents/MacOS/Brave\ Browser\ Nightly --enable-logging=stderr --vmodule=*/bat-native-ledger/*=6,*/brave_rewards/*=6 --log-level=2 --rewards=staging=true --brave-ads-staging
  2. Enable Rewards
  3. Claim UGP grant (30 BAT).
  4. Connect a KYC'd uphold wallet, note balance (should be at least 20 BAT)
  5. Tip duckduckgo.com 10 BAT.
  6. Tip duckduckgo.com 1 BAT.
  7. Tip duckduckgo.com 10 BAT. (your remaining UGP grant balance is now 9 BAT, you can check this on brave://rewards-internals)
  8. Tip duckduckgo.com 10 BAT again.
  9. Confirmed only VG grant balance was used to tip DDG, the remaining amount (1 BAT) which would have come from Uphold was sent to pending tip as expected:

Screen Shot 2020-06-09 at 11 59 55 AM

Screen Shot 2020-06-09 at 12 00 04 PM

Screen Shot 2020-06-09 at 12 00 12 PM

Screen Shot 2020-06-09 at 12 00 32 PM

Encountered brave/brave-browser#10176 - after restarting the browser the Uphold portion of the tip tries to contribute, but is sent to pending list.

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.

[Desktop] split scenarios are not contributing BAT as expected
4 participants