Skip to content
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

Update DailyBackupStatus to use the backup from date selected + timezone #40496

Conversation

cleacos
Copy link
Contributor

@cleacos cleacos commented Mar 26, 2020

Changes proposed in this Pull Request

Adapt the DailyBackupStatus to use the backup for the selected date passed from BackupsPage. We apply the time zone of the site to the backup date and also the right format according to design.

Note: No styles applied.

Testing instructions

(see the animation attached)

  1. Check if the display backup date-time is the expected on the site time zone
  2. Set another time zone for your site and check again (1) if the backup date-time matches with the selected time zone.

Bonus:

  1. If you don't have backup performed from today, check the expected copy
  2. If you have a day with a failed backup, check the expected copy

@cleacos cleacos added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Jetpack Cloud Anything related to the Jetpack Cloud (cloud.jetpack.com) labels Mar 26, 2020
@cleacos cleacos requested review from cbauerman and rcoll March 26, 2020 20:53
@cleacos cleacos self-assigned this Mar 26, 2020
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

matticbot commented Mar 26, 2020

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~5 bytes added 📈 [gzipped])

name        parsed_size           gzip_size
entry-main       +117 B  (+0.0%)       +5 B  (+0.0%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~13461 bytes added 📈 [gzipped])

name     parsed_size            gzip_size
backups     +70540 B  (+27.1%)   +13461 B  (+20.3%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

</Button>

<div>
<strong>{ translate( 'Get Real-Time Backups' ) }</strong>
Copy link

Choose a reason for hiding this comment

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

ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 17 times:
translate( 'Get real-time backups' ) ES Score: 11
See 2 additional suggestions in the PR translation status page

@cleacos cleacos force-pushed the update/jetpack-backup-backuppage-create-backup-state-for-selected-date branch from e8bf6ac to 26fde4b Compare March 26, 2020 23:26
@cleacos cleacos force-pushed the update/jetpack-cloud-backup-status-with-selected-backup-plus-timezone branch from 26376cf to a99497a Compare March 26, 2020 23:27
@cleacos cleacos requested a review from enejb March 27, 2020 12:28
@cleacos cleacos changed the base branch from update/jetpack-backup-backuppage-create-backup-state-for-selected-date to master March 27, 2020 16:50
Copy link
Member

@rcoll rcoll left a comment

Choose a reason for hiding this comment

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

This looks great. Make sure canaries pass and then feel free to 🚢 .

@cleacos cleacos force-pushed the update/jetpack-cloud-backup-status-with-selected-backup-plus-timezone branch from 8f93b98 to 3738dee Compare March 28, 2020 11:00
@cleacos cleacos added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 28, 2020
@cleacos cleacos force-pushed the update/jetpack-cloud-backup-status-with-selected-backup-plus-timezone branch from 3738dee to 1695ab9 Compare March 30, 2020 07:10
@cleacos cleacos merged commit 3701a87 into master Mar 30, 2020
@cleacos cleacos deleted the update/jetpack-cloud-backup-status-with-selected-backup-plus-timezone branch March 30, 2020 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jetpack Cloud Anything related to the Jetpack Cloud (cloud.jetpack.com)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants