mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix(backups): surface skipped scheduled backups with a Skipped label
Cloud now writes a terminal archive doc with status='skipped' for cron ticks that were dropped because the previous run hadn't finished yet. Map that to the neutral 'waiting' Status visual and override the label so the user sees "Skipped" instead of the auto-capitalized "Waiting". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
384d3e2998
commit
7d7935a33b
1 file changed
+10
-1
+10
-1
@@ -99,11 +99,20 @@
|
||||
return 'processing';
|
||||
case 'failed':
|
||||
return 'failed';
|
||||
case 'skipped':
|
||||
return 'waiting';
|
||||
default:
|
||||
return 'waiting';
|
||||
}
|
||||
}
|
||||
|
||||
function getBackupStatusLabel(backup: Models.BackupArchive): string {
|
||||
if (backup.status === 'skipped') {
|
||||
return 'Skipped';
|
||||
}
|
||||
return capitalize(getBackupStatus(backup));
|
||||
}
|
||||
|
||||
async function deleteSingleBackup(archiveId: string) {
|
||||
try {
|
||||
await sdk
|
||||
@@ -231,7 +240,7 @@
|
||||
</Table.Cell>
|
||||
<Table.Cell column="status" {root}>
|
||||
{@const backupStatus = getBackupStatus(backup)}
|
||||
<Status status={backupStatus} label={capitalize(backupStatus)} />
|
||||
<Status status={backupStatus} label={getBackupStatusLabel(backup)} />
|
||||
<!--{#if backup.status === 'Failed'}-->
|
||||
<!-- <span class="u-underline">Get support</span>-->
|
||||
<!--{/if}-->
|
||||
|
||||
Reference in new issue
Block a user