-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Improve error handling in backup status banner #23604
Conversation
); | ||
|
||
// If no backups yet, show warning | ||
if (!lastBackup) { |
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.
It could be that the last (first, as there are not backups yet) attempt failed, we don't show that now.
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.
Right, we should move the last attempt test before that case.
For a next PR, we should create a gallery page with all the different states, you probably already have something like that to develop (seeing the screenshots), would help others too :-) |
Not really but I will create a PR for that 😅 |
* Improve error handling in backup status banner * Fix completion * Fix loading * Check attempt and completion date first
Proposed change
Improve backup status and fix config and info refresh.
Here's the different cases that are covered by the banner.
No backup available
Backup success
Backup failure : backup creation failure
With previous successful backup
Without previous successful backup
Backup failure : not uploaded to all locations
With previous successful backup
Without previous successful backup
No backup for X days
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: