-
Notifications
You must be signed in to change notification settings - Fork 121
Jetpack Setup: Update response for Jetpack connection data request #15971
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
Jetpack Setup: Update response for Jetpack connection data request #15971
Conversation
|
|
RafaelKayumov
left a comment
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. Works as described. I was able to connect Jetpack on a fresh Jurassic Ninja site.
| /// | ||
| struct JetpackConnectionDataMapper: Mapper { | ||
|
|
||
| /// (Attempts) to extract the updated `currentUser` field from a given JSON Encoded response. |
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.
super nit: Looks like this comment is from deleted JetpackUserMapper.swift
…-to-handle-connection
…-to-handle-connection

Part of WOOMOB-965
Description
In order to integrate Jetpack connection API endpoint to the Jetpack setup flow, we need to determine whether the site has registered a connection with Jetpack first (ref: pe5sF9-401-p2). The
GET jetpack/v4/connection/dataendpoint has been updated with a new fieldisRegisteredfrom Jetpack plugin version 14.4, so this PR updates the response to include this new optional field. Other existing fieldsconnectionOwnerandblogIDhave also been parsed as they will be useful later.To use the new field, I've also updated the response type for the request.
Testing steps
Testing information
Tested with simulator iPhone 16 iOS 18.4.
Screenshots
Simulator.Screen.Recording.-.iPhone.16.-.2025-08-04.at.11.58.37.mp4
RELEASE-NOTES.txtif necessary.