Jetpack Section: Backup Status and Backup Complete#15633
Conversation
|
You can trigger an installable build for these changes by visiting CircleCI here. |
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
| } | ||
|
|
||
| private func pollBackupStatus(for downloadID: Int) { | ||
| Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { [weak self] timer in |
There was a problem hiding this comment.
@zwarm 👋
On Android, what polling interval are you using for fetching the backup status?
I'm polling the backup status every second (just for now)
...ViewRelated/Jetpack/Jetpack Restore/Restore Complete/BaseRestoreCompleteViewController.swift
Show resolved
Hide resolved
...s/ViewRelated/Jetpack/Jetpack Restore/Restore Status/JetpackBackupStatusViewController.swift
Outdated
Show resolved
Hide resolved
| private let site: JetpackSiteRef | ||
| private let view: JetpackBackupStatusView | ||
|
|
||
| init(site: JetpackSiteRef, |
There was a problem hiding this comment.
Just a heads up, I had issues using the JetpackSiteRef for the scanning view because I later needed more metadata that the Blog entity contains. I recently switched to using Blog instead of JetpackSiteRef.
Not sure if you'll later need metadata such as site name, timezone, etc.
There was a problem hiding this comment.
Ah, good to know! Will switch to Blog instead if I end up needing that metadata. Thanks for the heads up! ❤️
Generated by 🚫 dangerJS |
Part of #15191
Notes:
To test:
Download BackupCreate downloadable fileScreen.Recording.2021-01-13.at.19.55.21.mov
PR submission checklist:
RELEASE-NOTES.txtif necessary.