Closed tofumatt closed 7 months ago
IB :white_check_mark:
Hi @tofumatt,
Could you give me some clarifications regarding the implementation details outlined in this ticket? There seems to be a discrepancy between the Feature Description and the AC, alongside some naming conventions and testing requirements:
Feature Description:
We should fetch the AdSense linked accounts retrieved with the REST API route created in https://github.com/google/site-kit-wp/issues/8046 and save them to the new settings added in https://github.com/google/site-kit-wp/issues/8047 using a new action in the Analytics 4 datastore in JS.
Acceptance Criteria:
The adsenseLinked and adSenseLinkedLastSyncedAt settings from https://github.com/google/site-kit-wp/issues/8047 should be available in the MODULES_ANALYTICS_4 data store.
This raises a question: Should we implement a fetch resolver, a selector, and an action to save the settings, as indicated in the Feature Description, or follow the AC and IB, which suggest adding the settings in the base datastore? Based on #8046, I think we should update the AC according to the description.
Naming Convention for adsenseLinked
: Should this be renamed adSenseLinked
with a capital ‘S’?
Inclusion of Test Coverage in the IB: IB proposes adding test coverage, which seems unnecessary given the current implementation strategy. If we include a fetch resolver and an action according to the Feature Description, adding tests would then be relevant and beneficial.
Thanks!
cc: @aaemnnosttv @nfmohit
adSenseLinked
.Thanks, @tofumatt
getAdSenseLinked
andgetAdSenseLinkedLastSyncedAt
value set to default.
Feature Description
The new settings added in #8047 should be available in the Analytics 4 datastore in JS.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
adSenseLinked
andadSenseLinkedLastSyncedAt
settings from #8047 should be available in theMODULES_ANALYTICS_4
data store.Implementation Brief
Test Coverage
QA Brief
getAdSenseLinked
selector. By default, the value is set tofalse
:getAdSenseLinkedLastSyncedAt
selector. By default, the value is set to0
:setAdSenseLinked
action by setting it withtrue
:setAdSenseLinkedLastSyncedAt
action by setting it with the current date:getAdSenseLinked
andgetAdSenseLinkedLastSyncedAt
selectors and verify the new values are set.Changelog entry