Conversation
abdelmalekkkkk
left a comment
There was a problem hiding this comment.
Looks great @ankitrox. I left a couple minor comments. Thanks!
| $request = $this->datapoint->create_request( $data_request ); | ||
| $this->analytics->get_client()->execute( $request ); | ||
|
|
||
| $this->assertStringContainsString( |
There was a problem hiding this comment.
It would be more helpful to assert the full request URL to make sure the datapoint is hitting the right GTM service endpoint. WDYT?
includes/Modules/Analytics_4.php
Outdated
| 'POST:set-google-tag-id-mismatch' => new Set_Google_Tag_ID_Mismatch( | ||
| array( | ||
| 'transients' => $this->transients, | ||
| 'service' => '', |
There was a problem hiding this comment.
Setting service to empty string seems redundant as it already default to an empty string in the Datapoint class. Can we remove it?
includes/Modules/Analytics_4.php
Outdated
| array( | ||
| 'transients' => $this->transients, | ||
| 'settings' => $this->get_settings(), | ||
| 'service' => '', |
includes/Modules/Analytics_4.php
Outdated
| 'POST:save-resource-data-availability-date' => new Save_Resource_Data_Availability_Date( | ||
| array( | ||
| 'resource_data_availability_date' => $this->resource_data_availability_date, | ||
| 'service' => '', |
|
@abdelmalekkkkk Thank you for reviewing the PR. I've addressed the suggestions and assigning this to you for another pass. |
|
Thanks @ankitrox! LGTM ✅ I confirmed the CI failures are unrelated. |
|
Thanks @abdelmalekkkkk , I have added the QAB and resolved the conflicts in the PR, so assigning you again to check everything, if all looks good. |
nfmohit
left a comment
There was a problem hiding this comment.
LGTM ✅
Note: I've verified that the failing E2E test in CI is unrelated to the changes in this PR.
Summary
Addresses issue:
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist