-
Notifications
You must be signed in to change notification settings - Fork 37
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
feat: Add create instance from snapshot feature [WD-14411] #858
Conversation
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.
Oh nice, a new feature :)
Some suggestions on naming and copy. I think generally we should call it "Create instance from snapshot". And also update notifications to "Instance created" or "Instance creation failed". The context of coming from a snapshot is probably not important for the notifications.
src/pages/instances/actions/snapshots/DuplicateInstanceSnapshotBtn.tsx
Outdated
Show resolved
Hide resolved
src/pages/instances/actions/snapshots/DuplicateInstanceSnapshotBtn.tsx
Outdated
Show resolved
Hide resolved
src/pages/instances/actions/snapshots/DuplicateInstanceSnapshotBtn.tsx
Outdated
Show resolved
Hide resolved
src/pages/instances/actions/snapshots/InstanceSnapshotActions.tsx
Outdated
Show resolved
Hide resolved
db2b937
to
88470b6
Compare
88470b6
to
cd0b55f
Compare
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.
QA looks mostly good. I found one issue where the instance name is wrongly reported as the instance snapshot name. I think this comes from reading the values of the instance creation operation, that contains both the snapshot and the instance as a resource. See the attached screen for more details on this. This is also visible on the instance list, when the instance is being created. I think both paths (operation list and instance list) use the same function getInstanceName
to get the instance name from the operation.
Code also mostly good, some small comments below.
cd0b55f
to
96ea8b8
Compare
Thanks for the hint here @edlerd , I made some adjustments to the |
96ea8b8
to
b32099f
Compare
b32099f
to
57a4e65
Compare
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.
QA and code LGTM, some nitpicks below. Maybe change the commit message also to say "Create instance from snapshot" the current "duplicate snapshot" is misleading.
57a4e65
to
2e9bbfe
Compare
Signed-off-by: Mason Hu <[email protected]>
2e9bbfe
to
8d36467
Compare
Done
Notes
copy
vanilla icon for the duplicate snapshot buttonallowInconsistent
andinstanceOnly
options. These are not relevant for snapshot duplication.QA
migration.stateful
must betrue
and the instance must be running)