question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`claimed_at` db timestamp value resets to zero after sending one time or recurring tip

See original GitHub issue

Description

Found while testing https://github.com/brave/brave-browser/issues/7297

claimed_at db timestamp value resets to zero after sending one time or recurring tip

Steps to Reproduce

  1. Clean profile 1.4.x launch brave using brave.exe --rewards=staging=true
  2. Enable rewards
  3. Open publisher_info_db and check promotion shows claimed_at value as 0 (expected)
  4. Claim UGP grants in browser
  5. Repeat step 3 and make sure claimed_at value shows UGP grants claimed timestamp
  6. Send a one-time tip or recurring tip to a verified pub
  7. Repeat step 3, claimed_at value resets to 0

Actual result:

Before claiming UGP grants: Just enable rewards image After claiming UGP grants: image After setting one-time or recurring tip image

Expected result:

claimed_at db timestamp value should not reset to zero after sending a one-time tip or recurring tip

Reproduces how often:

Always

Brave version (brave://version info)

Brave 1.4.84 Chromium: 80.0.3987.87 (Official Build) beta (64-bit)
Revision 449cb163497b70dbf98d389f54e38e85d4c59b43-refs/branch-heads/3987@{#801}
OS Windows 10 OS Version 1803 (Build 17134.1006)

Version/Channel Information:

  • Can you reproduce this issue with the current release? NA
  • Can you reproduce this issue with the beta channel? Yes
  • Can you reproduce this issue with the dev channel? Yes
  • Can you reproduce this issue with the nightly channel? Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? NA
  • Does the issue resolve itself when disabling Brave Rewards? NA
  • Is the issue reproducible on the latest version of Chrome? NA

Miscellaneous Information:

cc: @brave/legacy_qa @NejcZdovc @rebron @bsclifton

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
GeetaSarvadnyacommented, Feb 18, 2020

The issue is reported in 1.4.x. The PR https://github.com/brave/brave-core/pull/4202 is not merged in 13.116 hence moving the issue out of 1.3.x hotfix.

0reactions
GeetaSarvadnyacommented, Feb 21, 2020

Verification passed on

Brave 1.4.93 Chromium: 80.0.3987.116 (Official Build) (64-bit)
Revision dc00a510e4c2ae25c4d084cc3d946fc782249224-refs/branch-heads/3987@{#917}
OS Windows 10 OS Version 1803 (Build 17134.1006)
  • Verified the STR from the description

Before claiming UGP grants: image

After claiming UGP grants: image

After setting a one-time or recurring tip image

[ REQUEST ]
> url: https://grant.rewards.bravesoftware.com/v1/promotions/reportclobberedclaims
> method: UrlMethod::POST
> content: {"claimIds":["c20c16bf-5ce9-4f7f-946a-28e15fa5c1e7"]}
> contentType: application/json; charset=utf-8
[ END REQUEST ]

Also ensured that both the promotion and promotion_creds tables were empty in publisher_info_db once the browser was restarted.


Verification passed on

Brave 1.4.93 Chromium: 80.0.3987.116 (Official Build) (64-bit)
Revision dc00a510e4c2ae25c4d084cc3d946fc782249224-refs/branch-heads/3987@{#917}
OS Linux
  • Verified the STR from the description

Before claiming UGP grants: image

After claiming UGP grants: image

After setting a one-time or recurring tip image


Verification PASSED on macOS 10.15.3 x64 using the following build:

Brave 1.4.93 Chromium: 80.0.3987.116 (Official Build) (64-bit)
Revision dc00a510e4c2ae25c4d084cc3d946fc782249224-refs/branch-heads/3987@{#917}
OS macOS Version 10.15.3 (Build 19D76)

Before claiming UGP & Ad grants:

Screen Shot 2020-02-20 at 7 19 07 PM

After claiming UGP & Ad grants:

Screen Shot 2020-02-20 at 7 19 44 PM

After tipping 10 BAT:

Screen Shot 2020-02-20 at 7 20 13 PM
Read more comments on GitHub >

github_iconTop Results From Across the Web

Time stamp resets to zero when entering edit mode
It seems that the time stamp on a cell resets to zero when entering edit mode. From our multiple tests, the results are...
Read more >
Store timestamp with time 00:00:00 - Stack Overflow
I've usually set the date with the call, and then reset the time to ... a Carbon::startOfDay() method that will set the appropriate...
Read more >
TIMESTAMP - MariaDB Knowledge Base
If a column uses the TIMESTAMP data type, then any inserted values are converted from the session's time zone to Coordinated Universal Time...
Read more >
DATE, TIMESTAMP and format masks - Oracle APEX
This article gives an overview on working with DATE, TIMESTAMP and format ... When the output of a TIMESTAMP WITH TIME ZONE value...
Read more >
Timestamps, Time Zones, Time Ranges, and Date Formats
During ingestion, we can detect the message timestamp, convert it to Unix epoch time (the number of milliseconds since midnight, January 1, 1970...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found