-
Notifications
You must be signed in to change notification settings - Fork 293
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 AdSense functionality related to tag permission checks #4627
Comments
ACs LGTM 👍 |
Works for me! I guess for now it makes sense to leave the check inline, so IB ✅ |
QA Update:
|
Hey @wpdarren we are mostly removing the checks for tags for AdSense. Basically you need to go through the AdSense setup and check if everything is works, i.e nothing is broken. Let me know if that makes sense 😁 |
QA Update ✅
|
Feature Description
The functionality around existing tag checks for AdSense is being simplified along with other modules. Compared to the other modules, the behavior for AdSense is the simplest regarding existing tags.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
hasExistingTagPermission
hasTagPermission
getTagPermission
.Essentially everything not provided by
createExistingTagStore
hasExistingTagPermission
in AdSense components should be replaced with a simple check whether the client ID from an existing tag matches the selected client IDGET:tag-permission
datapoint should be removed entirely (including thehas_access_to_client
method only used there)The PR for this issue should target the
feature/existing-tag-simplification
branchImplementation Brief
In
assets/js/modules/adsense/datastore/tags.js
:existingTagStore
tostore
and export it .combineStore
and everything else related to it such asfetchGetTagPermissionStore
,baseSelectors
,baseResolvers
etc.In
assets/js/modules/adsense/datastore/tags.test.js
:hasExistingTagPermission
,hasTagPermission
andgetTagPermission
.In
assets/js/modules/adsense/datastore/__fixtures__
.In
Google\Site_Kit\Modules\AdSense
class:GET:tag-permission
from theget_datapoint_definitions
andcreate_data_request
.has_access_to_client
protected function from the class.GET:tag-permission
fromAdSenseTest
.In
assets/js/modules/adsense/components/setup/SetupAccountApproved.js
:clientID
using thegetClientID
selector ofMODULES_ADSENSE
store.hasExistingTagPermission
, remove the usage ofhasExistingTagPermission
selector. Use simple check to see ifexistingTag === clientID
.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: