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

Hide restore column when completed #1077

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

torchiaf
Copy link
Collaborator

@torchiaf torchiaf commented Jul 22, 2024

Summary

PR Checklist

  • Is this a multi-tenancy feature/bug?
    • Yes, the relevant RBAC changes are at:
  • Do we need to backport changes to the old Rancher UI, such as RKE1?
    • Yes, the relevant PR is at:
  • Are backend engineers aware of UI changes?
    • Yes, the backend owner is:

Related Issue harvester/harvester#6195

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

  • Test Snapshot restores.
  • Test Backups restores.

Areas which could experience regressions

Screenshot/Video

@torchiaf torchiaf requested a review from a110605 July 22, 2024 14:52
@torchiaf torchiaf force-pushed the 6195-hide-restore-column branch from c3cd87d to d0c43eb Compare July 22, 2024 15:40
torchiaf added 2 commits July 22, 2024 18:34
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
@torchiaf torchiaf force-pushed the 6195-hide-restore-column branch from d0c43eb to dde7421 Compare July 22, 2024 16:34
@a110605 a110605 requested a review from WebberHuang1118 July 23, 2024 02:07
@@ -647,6 +647,10 @@ export default class VirtVm extends HarvesterResource {
return null;
}

get isTerminating() {
return this?.metadata?.deletionTimestamp;
Copy link
Collaborator

@a110605 a110605 Jul 23, 2024

Choose a reason for hiding this comment

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

deletionTimestamp is string?

nit: better convert to boolean

return !!this?.metadata?.deletionTimestamp;

Copy link
Collaborator

@a110605 a110605 left a comment

Choose a reason for hiding this comment

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

Test locally are good,

  • restore a VM backup : show restore column with progress bar before completed, hide the restore column once restore completed ✔️
  • restore a VM snapshot: no restore column shown up during restoring ✔️

Screenshot_20240723_155108

Copy link
Member

@WebberHuang1118 WebberHuang1118 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
@torchiaf torchiaf requested a review from a110605 July 23, 2024 08:24
@torchiaf torchiaf merged commit 73be1f9 into harvester:master Jul 23, 2024
7 checks passed
@torchiaf
Copy link
Collaborator Author

@mergify backport release-harvester-v1.3 release-harvester-v1.4

Copy link

mergify bot commented Jul 23, 2024

backport release-harvester-v1.3 release-harvester-v1.4

✅ Backports have been created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants