-
Notifications
You must be signed in to change notification settings - Fork 16
[Jetpack Remote Install] Refactor of JetpackServiceRemote #145
Conversation
|
@danielebogo thanks for pushing these changes forward, and for taking the initiative to transition some of our legacy code to Swift! I like where this is headed. ✅ I can confirm that the branch builds and tests pass. I have two questions:
If we agree that this PR includes breaking changes for API consumers, we will need to revise the major version in |
|
Thanks @stevebaranski for reviewing this and for your questions! My first implementation had the objc annotation. I removed it because it's used only by the The Jetpack Remote Install task is still in development. The API has been introduced this week here. This is why I updated the minor version. But I completely agree with you. What would you suggest in this case? @jtreanor @jkmassel what's the best way to upgrade the WPKit version to 4.0.0-beta.1? I'm thinking about the other frameworks that have WPKit as dependency with |
|
If this is complete, feel free to tag this as However, you'll need to submit a PR for each dependency in order to have those take on the new version. Those should all have a That should be the best way to ensure no breakage. Does that all make sense? |
|
Thanks @jkmassel ! It makes perfectly sense! |
|
@stevebaranski I was thinking if this is going to be a major update, can we then omit the objc annotation? |
|
Hello again @danielebogo!
If we are changing the major version, then I think it's okay to omit the |
ghost
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.
Approved to merge, pending the dependency wrangling we discussed.
![]()
Description
Refs. #10277
Working on this PR I realized that the
BlogServiceis not the right spot for the Jetpack activities. This because that service requires adotComIDas init value, which is nil for self-hosted sites. So instead of hardcoding an id equal to zero I moved that API to theJetpackServiceRemote.This class was an objective-c class. I converted it in Swift and also fixed the test covering the whole class.
Testing Details