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

Extensions: Zoninator - Implement the data layer for Zoninator's zone locks #21209

Merged
merged 4 commits into from
Jan 15, 2018

Conversation

ice9js
Copy link
Member

@ice9js ice9js commented Jan 1, 2018

This PR implements the data-layer needed to request zone locks in the Zoninator extension.

It's fairly straight forward - requesting a lock and dispatching an updateLock action when successful and requestLockError otherwise.
No error notices are displayed on error. That'll be handled specifically in the Edit Zone UI as you won't be able to make any changes as long as the lock isn't successful.

The lock endpoint is implemented in Automattic/zoninator#64.

Testing

npm run test-client client/extensions/zoninator/state/data-layer/locks

@matticbot
Copy link
Contributor

@ice9js ice9js force-pushed the add/zoninator-locks-data-layer branch from 097f61a to 57f241d Compare January 12, 2018 10:22
@ice9js ice9js added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Jan 12, 2018
Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

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

Code looks good to me. I didn't test it though.

@ice9js ice9js merged commit 0cf5f52 into master Jan 15, 2018
@ice9js ice9js deleted the add/zoninator-locks-data-layer branch January 15, 2018 09:44
@ice9js ice9js removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants