Found when testing https://github.com/brave/brave-browser/issues/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 https://github.com/brave/brave-browser/issues/6757
brave://rewardsUser Data\Default\ads_service\ (ask @btlechowski for the file)brave://rewards few times
7-day Ads History link is not shown at all on brave://rewards
7-day Ads History link is shown

100% repro rate
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)
cc @brave/legacy_qa @rebron @tmancey @NejcZdovc
Needs investigation to confirm if resolved by https://github.com/brave/brave-browser/issues/6757
@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
@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.
@btlechowski Re-checking now, thanks
@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
1.5.x:

1.3.x (not sorted as we only implemented sorting on 1.4 and above.):

The issue only reproduces on 1.3.x.
I still see duplicate uuid in the new client.json

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
@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
cc @kjozwiak @rebron re: https://github.com/brave/brave-browser/issues/7743#issuecomment-578671946
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.
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.

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.

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)
