-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix the app not being refreshed after disconnecting from WordPress.com in Jetpack Settings #19634
Merged
staskus
merged 6 commits into
trunk
from
fix/19051-disconnect-from-wp.com-doesnt-work-properly
Nov 25, 2022
Merged
Fix the app not being refreshed after disconnecting from WordPress.com in Jetpack Settings #19634
staskus
merged 6 commits into
trunk
from
fix/19051-disconnect-from-wp.com-doesnt-work-properly
Nov 25, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blocking UI while while loading is in progress since navigating from this view controller during Jetpack connection or disconnection process can leave the application in an undetermined state.
Previously the blog was made not visible after disconnecting, however that leaves the app in the undetermined state until refresh happens
When all the blogs are removed, split screen details view should not have any view controllers set
In a case when the blog is removed when Jetpack view is opened, we don't need to reload the view if the blog no longer exists
You can test the changes in WordPress from this Pull Request by:
|
You can test the changes in Jetpack from this Pull Request by:
|
salimbraksa
reviewed
Nov 24, 2022
WordPress/Classes/ViewRelated/Blog/My Site/MySiteViewController.swift
Outdated
Show resolved
Hide resolved
salimbraksa
approved these changes
Nov 25, 2022
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.
LGTM! I left one suggestion about a minor typo. 🚀
Tests Done:
- I created a fake wordpress.com account and a self-hosted site using Jurassic Ninja
- salimbraksademo.wordpress.com
- nursing-marsupial.jurassic.ninja
- I launched WP app and signed into my wordpress.com account
- I disconnected the Jurassic site and the app returned to the main view and the other site was selected
- To simulate a single-site environment, I connected Jetpack plugin to the Jurassic site and deleted the wp.com site.
- I disconnected the Jurassic site and the app showed the "Create site message". ( and on iPad, the details screen was empty ).
…r.swift Co-authored-by: Salim <salim.braksa@automattic.com>
Generated by 🚫 dangerJS |
Thank you, @salimbraksa! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #19501
Description
When My Site → Jetpack Settings → Manage Connection → "Disconnect from WordPress.com button" is tapped, the site is not removed immediately causing subsequent errors.
Solution
visible = false
and waiting for an app refreshTesting instructions
Test on both iPhone and iPad. Some specific changed were made to support split view
Case 1 Multi-site account (iPhone and iPad):
Case 2 Single-site account (iPhone and iPad):
Regression Notes
Additional issues raising when immediately removing the site, instead of making it invisible and waiting for the refresh
Manual testing
None
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Images & Videos
Single-site - iPhone
Jetpack.disconnect.-.single.site.-.iPhone.mp4
Single-site - iPad
Jetpack.disconnect.-.Single.site.-.iPad.mov
Multi-site - iPad
Jetpack.disconnect.-.Multi-site.-.iPad.mov