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

Remove unused lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted Brave Ads state #9022

Closed
tmancey opened this issue Apr 4, 2020 · 1 comment

Comments

@tmancey
Copy link
Collaborator

@tmancey tmancey commented Apr 4, 2020

Remove unused lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted (Default/ads_service/client.json) Brave Ads state

@tmancey tmancey self-assigned this Apr 4, 2020
@tmancey tmancey changed the title Encrypt URLs for locally persisted purchase intent Remove searchActivity, searchUrl, shopActivity and shopUrl from locally persisted client state Apr 4, 2020
@tmancey tmancey added this to New issues in Ads via automation Apr 4, 2020
@tmancey tmancey changed the title Remove searchActivity, searchUrl, shopActivity and shopUrl from locally persisted client state Remove lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted client state Apr 4, 2020
@tmancey tmancey moved this from New issues to Review in Ads Apr 4, 2020
@tmancey tmancey changed the title Remove lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted client state Remove unused lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted client state Apr 4, 2020
@tmancey tmancey changed the title Remove unused lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted client state Remove unused lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl from locally persisted Brave Ads state Apr 4, 2020
@diracdeltas diracdeltas added the privacy label Apr 6, 2020
Ads automation moved this from Review to Done Apr 7, 2020
@tmancey tmancey added this to the 1.9.x - Nightly milestone Apr 7, 2020
@GeetaSarvadnya
Copy link
Collaborator

@GeetaSarvadnya GeetaSarvadnya commented May 11, 2020

Verification passed on


Brave | 1.9.62 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
-- | --
Revision | 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS | Windows 10 OS Version 1803 (Build 17134.1006)

  • Verified the test plan from brave/brave-core#5159
  • Reproduced in 1.8. 95 - lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl are persisted in Default/ads_service/client.json
  • ensured that lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl are NOT persisted in Default/ads_service/client.json in 1.9.x
  • ensured that lastUserActivity, lastUserIdleStopTime, and lastPageClassification fields are also removed from 1.9.x
{
  "adPreferences": {
    "filtered_ads": [],
    "filtered_categories": [],
    "saved_ads": [],
    "flagged_ads": []
  },
  "adsShownHistory": [],
  "purchaseIntentSignalHistory": {},
  "adUUID": "30915544-c707-4a94-aa05-77e03cae3c73",
  "adsUUIDSeen": {},
  "advertisersUUIDSeen": {},
  "nextCheckServeAd": 0,
  "available": true,
  "userModelLanguage": "en",
  "userModelLanguages": [
    "de",
    "en",
    "fr"
  ],
  "pageScoreHistory": [],
  "creativeSetHistory": {},
  "adConversionHistory": {},
  "campaignHistory": {},
  "score": 0,
  "version_code": ""
}

Verified passed with

Brave | 1.9.62 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
-- | --
Revision | 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS | macOS Version 10.14.6 (Build 18G3020)
  • Verified test plan from brave/brave-core#5159

  • Verified for clean and upgrade profiles

  • Confirmed with @tmancey that additional fields missing from client.json when compared with client.json from 1.8.x are expected. These other fields which should be removed are: lastUserActivity, lastUserIdleStopTime, and lastPageClassification.

on the left is client.json from 1.8.95 and on the right is same client.json from 1.9.62:
Screen Shot 2020-05-11 at 1 45 13 PM


Verification passed on

Brave 1.9.62 Chromium: 81.0.4044.138 (Official Build) dev (64-bit)
Revision 8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}
OS Ubuntu 18.04 LTS
  • Verified the test plan from brave/brave-core#5159
  • Reproduced in 1.8. 95 - lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl are persisted in Default/ads_service/client.json
  • ensured that lastSearchTime, searchActivity, searchUrl, lastShopTime, shopActivity and shopUrl are NOT persisted in Default/ads_service/client.json in 1.9.x
{
	"adPreferences": {
		"filtered_ads": [],
		"filtered_categories": [],
		"saved_ads": [],
		"flagged_ads": []
	},
	"adsShownHistory": [],
	"purchaseIntentSignalHistory": {},
	"adUUID": "77dc8a4e-4b83-45fc-879c-8743d7f2982e",
	"adsUUIDSeen": {},
	"advertisersUUIDSeen": {},
	"nextCheckServeAd": 0,
	"available": true,
	"userModelLanguage": "en",
	"userModelLanguages": ["de", "en", "fr"],
	"pageScoreHistory": [],
	"creativeSetHistory": {},
	"adConversionHistory": {},
	"campaignHistory": {},
	"score": 0.0,
	"version_code": ""
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.