-
Notifications
You must be signed in to change notification settings - Fork 18
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 Sync Push Site #662
Add Sync Push Site #662
Conversation
getIpcApi().showErrorMessageBox( { | ||
title: sprintf( __( 'Error pushing to %s' ), connectedSite.name ), | ||
message: __( 'Studio was unable to connect to WordPress.com. Please try again.' ), | ||
} ); |
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'm displaying this generic error. I could also display the error that comes from the backend.
When trying to upload a bakcup bigger than the limit, we cannot grab the actual error message, because we receive a CORS error.
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 good. Works correctly for me - it starts and completes the push. Rewind debugger shows successful backup, and then restore. The site is the same, but i's expected as we haven't connected the logic that restores from the actual file.
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 noticed one missing part - there is not system notification after the finished Push, but we have one for Pull. We can add a separate issue for that, though.
importing: { | ||
key: 'importing', | ||
progress: 80, | ||
message: __( 'Pushing changes…' ), |
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.
Not sure what message we could use here. Any thoughts?
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.
This is the only message that appears in the design. I think it's good to leave it.
Other options:
- Applying changes
- Unpacking changes
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.
We could also split this state using the remote states, so the user will get more information initial_backup_started
, archive_import_started
, etc.
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.
'Applying changes' sounds good for now.
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.
there is not system notification after the finished Push, but we have one for Pull. We can add a separate issue for that, though.
I implemented it in this PR 🥳: 8e22d1b
'Applying changes' sounds good for now.
- I've created the issue: https://github.com/Automattic/dotcom-forge/issues/9847
Related issues
Proposed Changes
Testing Instructions
You can try with a site up to 2GB in size.
STUDIO_SITE_SYNC=true npm start
NERCzq.mp4
Pre-merge Checklist