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

Fix ads count isn't increasing for upgrade path #2793

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Conversation

tmancey
Copy link
Collaborator

@tmancey tmancey commented Jun 25, 2019

Fixes brave/brave-browser#5037

Submitter Checklist:

Test Plan:

Confirm after upgrade that legacy timestamps have been migrated by comparing defaults/rewards_service/confirmations.json before and after the upgrade. Also confirm tokens are cashed out and ad notifications received show the correct amounts after an upgrade

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.

@@ -14,4 +14,19 @@ uint64_t Time::NowInSeconds() {
return now.ToDoubleT();
}

uint64_t Time::MigrateToDoubleT(const uint64_t seconds) {
if (date_in_seconds < 10000000000) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe I'm missing it, but what is date_in_seconds? Do you mean seconds?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refactored to be more concise

@tmancey tmancey force-pushed the issues/5037 branch 3 times, most recently from b114a55 to be50abb Compare June 25, 2019 19:10
emerick
emerick previously approved these changes Jun 25, 2019
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

emerick
emerick previously approved these changes Jun 25, 2019
@srirambv srirambv self-requested a review June 26, 2019 02:44
Copy link
Contributor

@srirambv srirambv left a comment

Choose a reason for hiding this comment

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

CI checks complete. Network audit failed but unrelated to the PR. Confirmed with @bbondy

@srirambv srirambv merged commit 97d1757 into master Jun 26, 2019
@bsclifton bsclifton deleted the issues/5037 branch June 26, 2019 05:45
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.

Ads count isn't increasing for upgrade path
4 participants