-
Notifications
You must be signed in to change notification settings - Fork 812
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
Identity Crisis: add unit tests for has_identity_crisis and get_mismatched_urls #21754
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. |
1ae6ac0
to
8033e49
Compare
…tched_urls Also, in get_mismatched_urls, return false if the jetpack_sync_error_idc option is missing one of the required keys.
e70df75
to
d7e41a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome, thanks Kim!
* master: (28 commits) Prepare for 10.4-a.7 (#21797) Check if maxwidth exists before trying to call .length (#21785) Podcast Player: Increase podcast shown (#21661) licensing: jetpack-js-test-runner is a dev dependency (#21794) Update dependency @mdn/browser-compat-data to v4.0.11 (#21792) Tests: Fix unit tests for wpcom (#21649) SSO: Fix Button Text Alignment on Mobile (#18770) Add/my jetpack skeleton (#21464) Identity Crisis: add unit tests for has_identity_crisis and get_mismatched_urls (#21754) Remove special cases for calling changelogger on packages/changelogger (#21783) eslint-config-target-es: Release 1.0.0! (#21766) Revert "WPCOM no longer forces home_urls to be http" (#21769) WPCOM no longer forces home_urls to be http (#21747) Revert and fix "Revert "Assets: do not use the new method yet (#21760)"" (#21763) eslint-config-target-es: Fix README.md (#21743) codesniffer: Disable CI on PHP 8.1 (#21742) RNA Pricing card component: Fix case where prices before and after match (#21757) Janitorial: update Jetpack version for 10.4-a.6 cycle (#21762) Releases: prepare changelog for 10.4-a.5 release (#21758) Assets: do not use the new method yet (#21760) ...
* master: (28 commits) Prepare for 10.4-a.7 (#21797) Check if maxwidth exists before trying to call .length (#21785) Podcast Player: Increase podcast shown (#21661) licensing: jetpack-js-test-runner is a dev dependency (#21794) Update dependency @mdn/browser-compat-data to v4.0.11 (#21792) Tests: Fix unit tests for wpcom (#21649) SSO: Fix Button Text Alignment on Mobile (#18770) Add/my jetpack skeleton (#21464) Identity Crisis: add unit tests for has_identity_crisis and get_mismatched_urls (#21754) Remove special cases for calling changelogger on packages/changelogger (#21783) eslint-config-target-es: Release 1.0.0! (#21766) Revert "WPCOM no longer forces home_urls to be http" (#21769) WPCOM no longer forces home_urls to be http (#21747) Revert and fix "Revert "Assets: do not use the new method yet (#21760)"" (#21763) eslint-config-target-es: Fix README.md (#21743) codesniffer: Disable CI on PHP 8.1 (#21742) RNA Pricing card component: Fix case where prices before and after match (#21757) Janitorial: update Jetpack version for 10.4-a.6 cycle (#21762) Releases: prepare changelog for 10.4-a.5 release (#21758) Assets: do not use the new method yet (#21760) ...
Fixes #21656
Changes proposed in this Pull Request:
Identity_Crisis::get_mismatched_urls
, check that thejetpack_sync_error_idc
option value has all of the required keys, and return false if it doesn't.Identity_Crisis::has_identity_crisis
andIdentity_Crisis::get_mismatched_urls
methods.Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
If testing with JN, you'll need this plugin activated.