-
Notifications
You must be signed in to change notification settings - Fork 444
May ads payout recovery #2536
Comments
@NejcZdovc any idea how we can QA this on iOS? We have the ability to QA won't be able to run through the cases outlined via brave/brave-core#5495 (comment) so we'll need to check with someone who's in this case and verify it works (probably difficult unless we get IPA's) or we |
Theoretically the code you're testing should be the exact same, but now that the database is actually the same, building out some sort of import DB functionality actually might not be difficult to do. May give it a go and see if I can add an import feature to debug menu if it's simple and can be done quickly. If not then this will not be testable on iOS |
Verification PASSED on
|
Corrupted DB | After Upgrading (Fixed DB) |
---|---|
Case #2 (x2)
- install
1.16 (20.5.13.1)
which includes the export/import DB feature - skip onboarding and switch over to the
staging
server - once you've restarted, enable rewards and clam the UGP promotion
- export the DB via
Settings
-->View Rewards Debug Menu
-->Export Rewards Database
- open
rewards.db
usingDB Browser for SQLite
- change
status
to1
under thepromotion
table - change
status
to3
under thecreds_batch
table - replace
signed_creds
withblinded_creds
in thecreds_batch
table - save
rewards.db
(write changes) and exitDB Browser for SQLite
- move
rewards.db
back on the device (use AirDrop to make it easier) - import the DB via
Settings
-->View Rewards Debug Menu
-->Import Rewards Database
and close1.16 (20.5.13.1)
- update and open
1.16.1 (20.5.12.20)
(using TF)
23:05:22.996818-0400 Client [Debug] [BraveRewards] > [ledger_impl.cc.538] [ REQUEST ]
23:05:22.997277-0400 Client [Debug] [BraveRewards] > [ledger_impl.cc.538] > url: https://grant.rewards.bravesoftware.com/v2/promotions/reportclobberedclaims
23:05:22.997366-0400 Client [Debug] [BraveRewards] > [ledger_impl.cc.538] > method: UrlMethod::POST
23:05:22.997467-0400 Client [Debug] [BraveRewards] > [ledger_impl.cc.538] > content: {"claimIds":["a6504943-0dcd-44a4-b9ec-dc7b02441cc0"]}
23:05:22.997592-0400 Client [Debug] [BraveRewards] > [ledger_impl.cc.538] > contentType: application/json; charset=utf-8
23:05:22.997752-0400 Client [Debug] [BraveRewards] > [ledger_impl.cc.538] [ END REQUEST ]
- export the DB via
Settings
-->View Rewards Debug Menu
-->Export Rewards Database
- open
rewards.db
usingDB Browser for SQLite
- ensure that the
status
underpromotion
is6
- ensure that the
status
undercreds_batch
is5
@srirambv mind running through the above on your iPhone that has 1GB of RAM to make sure the above process doesn't cause any crashes/issues? Unfortunately my |
Duplicate of brave/brave-browser#9684
Requires brave-core pull
The text was updated successfully, but these errors were encountered: