Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Add Jetpack backup and restore endpoints#321

Merged
momo-ozawa merged 10 commits intodevelopfrom
task/jetpack-backup-and-restore-endpoints
Jan 7, 2021
Merged

Add Jetpack backup and restore endpoints#321
momo-ozawa merged 10 commits intodevelopfrom
task/jetpack-backup-and-restore-endpoints

Conversation

@momo-ozawa
Copy link
Copy Markdown
Contributor

Description

Testing Details

🟢 Tests should be good!

  • Please check here if your pull request includes additional test coverage.

Copy link
Copy Markdown
Contributor

@emilylaguna emilylaguna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looking good. I left a couple suggestions below. I'm also thinking we should preface some of the generic class names such as Backup and RestoreTypes with Jetpack to prevent any confusion in the future.

What do you think?

///
/// - Returns: A restoreID to check the status of the rewind request.
///
@objc public func restoreSite(_ siteID: Int,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this method is used in any Objective-C files so I'm thinking we can drop the @objc modifier. Thoughts?

@momo-ozawa momo-ozawa changed the title Task/jetpack backup and restore endpoints Add Jetpack backup and restore endpoints Dec 23, 2020
@momo-ozawa
Copy link
Copy Markdown
Contributor Author

@emilylaguna Thanks for reviewing! Addressed the suggestions -- back to you!

Copy link
Copy Markdown
Contributor

@emilylaguna emilylaguna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Sorry it took so long for me to re-review. I left a few comments below for ya. let me know your thoughts.

@@ -0,0 +1,30 @@
import Foundation

public class JetpackRestoreTypes: NSObject {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about converting this into a struct so we can remove the init boilerplate code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! 32c3410

@momo-ozawa momo-ozawa requested a review from emilylaguna January 6, 2021 02:26
Copy link
Copy Markdown
Contributor

@emilylaguna emilylaguna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Looks good to me! 🚢

@momo-ozawa momo-ozawa merged commit 7c9ece4 into develop Jan 7, 2021
@leandroalonso leandroalonso deleted the task/jetpack-backup-and-restore-endpoints branch January 7, 2021 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants