You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMM-2304: Detect Jetpack status on the application-password path (#23262)
* CMM-2304: Detect Jetpack status on the application-password path
* Address review findings on the Jetpack detection
Resolve the stored row before dispatching a site fetch, carry it into
every WPAPI fetch as previousSite (one carry-forward mechanism with
fresh-over-stale precedence), yield a blog id another row already owns
before writing instead of retrying after the constraint fires, treat
non-null detection results as definitive, and reuse one WpRequestExecutor
in the connection fetcher.
* Derive the Jetpack connection state from the blog id
Collapse the three identical JetpackConnectionState constructions into
one and derive isConnected from wpComSiteId, making the null-iff-
disconnected invariant structural instead of documented.
* Restructure the connection-state guard to satisfy detekt's ReturnCount
* Fix unit-test failures from the review fixes
Replace the UrlUtils scheme handling in storedWPAPISite with plain
string checks (UrlUtils touches unmocked Android APIs under plain
JUnit), and let the fetchSite error tests tolerate the intended
stored-row read while still asserting nothing is written.
* Treat an absent namespaces field as unknown, not as no Jetpack
An absent namespaces list now carries the stored Jetpack state forward
instead of definitively clearing it, and the stored-row lookup tries
both schemes even when the caller's URL already has one.
Copy file name to clipboardExpand all lines: RELEASE-NOTES.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
* [*] Sharing content to the app now lists self-hosted sites connected with an application password.
14
14
* [**] Images and videos shared to the app from the photo picker now upload instead of being silently dropped.
15
15
* [**] Media shared from apps that generate it on the fly, such as an "Enhanced" photo from Google Photos, now keeps its correct file type instead of always uploading as a JPEG, and sharing several photos at once no longer drops some of them. [https://github.com/wordpress-mobile/WordPress-Android/issues/23047]
16
+
* [**] Self-hosted sites added with an application password now have their Jetpack status detected, so opening Stats in the Jetpack app no longer asks you to install a plugin your site already has.
0 commit comments