-
Notifications
You must be signed in to change notification settings - Fork 111
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
Integerate notification settings endpoint to disable notifications for hidden stores #14730
Integerate notification settings endpoint to disable notifications for hidden stores #14730
Conversation
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
|
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.
Nice work @itsmeichigo, code looks good 👏 .
Just sharing something for information, it seems WordPressKit already has a networking implementation of the same endpoint here, so a different approach could be to just wrap it instead of adding a new one, but I don't believe this is necessary.
Thanks for the review @hichamboushaba!
I'm aware of this, but I prefer not to depend on WordPressKit in case we want to remove the dependency sometime in the future. |
Part of #14658
Description
This PR updates the Networking and Yosemite to support updating notification settings for a device ID given site IDs and settings. This is necessary to disable notification settings for stores hidden from the store picker, which will be handled in a future PR.
Steps to reproduce
The new endpoint hasn't been used yet so just unit tests passing is sufficient.
Testing information
I added unit tests for the Networking and Yosemite layers to ensure everything works as expected.
Screenshots
N/A
RELEASE-NOTES.txt
if necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: