-
Notifications
You must be signed in to change notification settings - Fork 904
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
561 create site kit permanent dismissal route #21988
561 create site kit permanent dismissal route #21988
Conversation
Pull Request Test Coverage Report for Build e800d8e30b142d4252aea8d6f73acf0eb8daa783Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
I think the implementation is fine just 2 comments 🚧 about naming
* | ||
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded | ||
*/ | ||
class Site_Kit_Widget_Permanent_Dismissal_Route implements Route_Interface { |
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.
I am not sure if we want to call the connection thing a widget
in normal speech and in the code since it does not behave as a widget
in the sense of widgets can be moved around
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.
Maybe we can just call it site_kit_configuration.
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.
Done!
* Moved both the repository and the route under the `Configuration` subfolder namespace * Implemented the endpoint related to the route * Fixed the route to pass `is_dismissed` from the request body and not from the URL
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.
CR + ACC 👍
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
https://YOUR_WORDPRESS_SITE/wp-json/yoast/v1/site_kit_configuration_permanent_dismissal
where
YOUR_WORDPRESS_SITE
is the URL of your WordPress installationwpseo
option array in thewp_options
tablesite_kit_configuration_permanently_dismissed
is set to 1403 - rest_forbidden
responseRelevant test scenarios
Test instructions for QA when the code is in the RC
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes