Reset expire date for ads catalog when it is fetched from the server #20843
Labels
enhancement
feature/ads
OS/Desktop
priority/P4
Planned work. We expect to get to it "soon".
QA Pass-Linux
QA/Yes
release-notes/exclude
Milestone
Hypothetically, it could happen that catalog has not been updated server side for 24h and therefor the catalog would expire on all clients even though server would serve the latest catalog. We don't show ads when catalog is expired.
Important: This issue has not been observed in the wild.
Solution is to always reset expire date when catalog is successfully fetched from the server, so the catalog would only expire if not fetched from the server for 24h.
Steps to Reproduce
Actual result:
catalog is downloaded and logs show that catalog is up to date.
ad is not shown due to expired catalog
Expected result:
catalog is downloaded and logs show that catalog is up to date.
ad is shown
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
cc @brave/legacy_qa @rebron @jsecretan @tmancey
The text was updated successfully, but these errors were encountered: