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

Ads history will not be shown at all if there is an ad older than 7 days #7743

Closed
btlechowski opened this issue Jan 15, 2020 · 10 comments
Closed

Comments

@btlechowski
Copy link

Found when testing #5863
We show 7 day ads history, if there is an ad older than 7 days, the whole ads history will not be shown. This is a regression in 1.3.x.

Important: This issue is not reproducible on 1.2.x, 1.4.x, 1.5.x
Important: Talked to @tmancey, and he said that this issue is fixed by #6757

Steps to Reproduce

  1. Clean install
  2. Enable rewards
  3. Open brave://rewards
  4. Close Brave
  5. Copy generated ads history file to User Data\Default\ads_service\ (ask @btlechowski for the file)
  6. Launch Brave
  7. Reload brave://rewards few times

Actual result:

7-day Ads History link is not shown at all on brave://rewards

Expected result:

7-day Ads History link is shown
image

Reproduces how often:

100% repro rate

Brave version (brave://version info)

Reproducible on

Brave 1.3.91 Chromium: 79.0.3945.117 (Official Build) beta (64-bit)
Revision 04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019}
OS Windows 7 Service Pack 1 (Build 7601.24530)

Not reproducible on

Brave 1.5.36 Chromium: 79.0.3945.117 (Official Build) nightly (64-bit)
Revision 04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019}
OS Windows 7 Service Pack 1 (Build 7601.24530)
Brave 1.4.60 Chromium: 79.0.3945.117 (Official Build) dev (64-bit)
Revision 04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019}
OS Windows 7 Service Pack 1 (Build 7601.24530)

Version/Channel Information:

  • Can you reproduce this issue with the current release? no
  • Can you reproduce this issue with the beta channel? yes
  • Can you reproduce this issue with the dev channel? no
  • Can you reproduce this issue with the nightly channel? no

cc @brave/legacy_qa @rebron @tmancey @NejcZdovc

@tmancey
Copy link
Contributor

tmancey commented Jan 16, 2020

Needs investigation to confirm if resolved by #6757

@tmancey tmancey added priority/P2 A bad problem. We might uplift this to the next planned release. QA/Yes labels Jan 20, 2020
@tmancey tmancey changed the title ads history will not be shown at all if there is an ad older than 7 days Ads history will not be shown at all if there is an ad older than 7 days Jan 20, 2020
@tmancey tmancey added the bug label Jan 20, 2020
@tmancey tmancey assigned tmancey and btlechowski and unassigned tmancey Jan 21, 2020
@tmancey
Copy link
Contributor

tmancey commented Jan 21, 2020

@btlechowski I have tested and all is working as expected for me, however as ads history requires that ads are initialized it can take a few seconds for ads to initialize before the link will be shown

Here is my test client.json:
client.json.zip

@btlechowski
Copy link
Author

@tmancey I think the client.json you provided will always be a false-positive as the oldest ad shares the uuid with other ad and therefor will never be shown.

@tmancey
Copy link
Contributor

tmancey commented Jan 22, 2020

@btlechowski Re-checking now, thanks

@tmancey
Copy link
Contributor

tmancey commented Jan 22, 2020

@btlechowski Tested with: And works as expected on both 1.3 and 1.5. Can you please send your client.json to show the issue. Thanks

client.json.zip

1.5.x:
1 5 x

1.3.x (not sorted as we only implemented sorting on 1.4 and above.):
Screenshot 2020-01-22 at 11 00 00

@btlechowski
Copy link
Author

The issue only reproduces on 1.3.x.

I still see duplicate uuid in the new client.json
image

This is the file I use when the issue reproduces: client.zip
The file contains 8 ads, an ad is shown each day.
If I delete Test Ad 001 (ad from 8th day), the history is shown

@tmancey
Copy link
Contributor

tmancey commented Jan 27, 2020

@LaurenWags @btlechowski I have now reproduced the issue on 1.3. A decision needs to be made if we should uplift both #7869 and #6757 to resolve this issue

@tmancey tmancey assigned btlechowski and unassigned btlechowski Jan 27, 2020
@LaurenWags
Copy link
Member

cc @kjozwiak @rebron re: #7743 (comment)

@LaurenWags
Copy link
Member

Closing issue as it was not reproduced in 1.4.x milestone by @btlechowski (original reporter) and it will not be fixed for 1.3.x.

Additionally, we will have to test #8046 with this issue.

@btlechowski
Copy link
Author

btlechowski commented Feb 12, 2020

Verification passed on

Brave 1.4.85 Chromium: 80.0.3987.87 (Official Build) beta (64-bit)
Revision 449cb163497b70dbf98d389f54e38e85d4c59b43-refs/branch-heads/3987@{#801}
OS Windows 7 Service Pack 1 (Build 7601.24544)

Verified steps from the description. File used: client.zip
It has 1000 ads, 10 ads per day. Only most recent ads are shown.
image

Verification passed on

Brave 1.4.84 Chromium: 80.0.3987.87 (Official Build) beta (64-bit)
Revision 449cb163497b70dbf98d389f54e38e85d4c59b43-refs/branch-heads/3987@{#801}
OS Ubuntu 18.04 LTS

Verified steps from the description. File used: client.zip
It has 1000 ads, 10 ads per day. Only most recent ads are shown.
image

Verified passed with

Brave 1.4.85 Chromium: 80.0.3987.87 (Official Build) beta (64-bit)
Revision 449cb163497b70dbf98d389f54e38e85d4c59b43-refs/branch-heads/3987@{#801}
OS macOS Version 10.14.6 (Build 18G103)
  • Verified using STR from description and file provided by @btlechowski
    Confirmed only the most recent ads are shown

Screen Shot 2020-02-12 at 5 05 04 PM

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

No branches or pull requests

4 participants