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

Add First-Party Mode site health and value helpers. #9794

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

benbowler
Copy link
Collaborator

@benbowler benbowler commented Dec 2, 2024

Summary

Addresses issue:

Relevant technical choices

During execution I realised that because First-Party Mode is not a module it's debug fields won't show up. First I updated DebugData before settling on adding the fields in the Analytics and Ads module. The code is in both so that the debug field appears if either module is connected. As they have the same key, only one field shows even if both modules are connected.

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 7.4.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.
  • Ensure there are no unexpected significant changes to file sizes.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

Copy link

github-actions bot commented Dec 2, 2024

Build files for f82d2af have been deleted.

@benbowler benbowler force-pushed the enhancement/9667-fpm-site-health branch from 5cbafdc to fab5ce0 Compare December 2, 2024 03:05

return array(
'first_party_mode_is_enabled' => array(
'label' => __( 'First Party Mode: Enabled', 'google-site-kit' ),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@techanvil, should it be First-Party Mode: Enabled with a hyphen?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting that @hussain-t, you are quite right, "First-Party" should be hyphenated.

I've amended the AC/IB for this issue, and for #9668 accordingly.

Cc @benbowler

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @techanvil. Since I'm reviewing the PR I can amend the changes.

cc: @benbowler

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks Hussain!

Copy link
Collaborator

@hussain-t hussain-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, @benbowler! LGTM 👍

Note: I've verified that the CI build failures are unrelated to this PR.

@hussain-t hussain-t merged commit 2c7046b into develop Dec 2, 2024
19 of 20 checks passed
@hussain-t hussain-t deleted the enhancement/9667-fpm-site-health branch December 2, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants