-
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 support for instance/profile host path devices [WD-17682] #1019
Conversation
b2466f5
to
f13a0eb
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.
This looks good on the overview page, but on the configuration page it is still a bit broken:
I think the easiest solution is to filter the host path devices from displaying in the configuration form.
Edit: the resource link for the host path on the overview page, should then direct to the yaml editor. |
Aaah yes didn't catch this one. I don't think filtering them is correct though, since these are still legit disk devices. Perhaps instead of "Pool/Volume", we can have "Host path" and remove Mount point. Also we can disable the edit functionality for a host path disk device for now. Wdyt? |
We could, then we'd half support them :) Ideally we allow adding them and editing as well, I wanted to keep the scope small, so hiding seemed like the easiest fix. Up to you how to solve it. Just having a read only would work as well, but then should add a way that guides to the YAML editor for editing it. |
I think adding/editing host path disk devices may require some design input. For example, maybe we follow a similar approach as migrate instance modal where we have multiple steps, and the first step would be to choose the type of disk device to add. Furthermore, to add/edit a host path disk device, we can let the user provide the input by using a directory picker. In any case, for now limiting the cope to read only seems appropriate with the redirection to the yaml editor. I can create an issue to do a follow up task for the new disk device type? |
f13a0eb
to
626aa70
Compare
@edlerd please do wait a bit to review this PR, I'm not entirely happy with the implementation yet, will remove draft status once it's ready |
d76c478
to
0846d1f
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.
This is a really nice interaction now. Some ideas to refine the UX a bit and some other ideas about code. Most of them are very small suggestions
f0e07a8
to
195bc45
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.
Thanks for the quick iteration, just a handful of ideas then this should be good to merge.
195bc45
to
5260624
Compare
Signed-off-by: Mason Hu <[email protected]>
Signed-off-by: Mason Hu <[email protected]>
5260624
to
3ce9a14
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.
Thanks for the change, I find the code still got a bit too complicated around change device. Maybe it can be improved?
Signed-off-by: Mason Hu <[email protected]>
3ce9a14
to
662280b
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.
Code lgtm! Thanks for the additional features and making this nice and round :)
Didn't QA yet, if you are confident on the QA feel free to merge right away.
I'm confident about the functionality as I've tested it extensively. However, I think it's still a good idea to have a QA pass, perhaps just for things that are not covered in the PR description? |
QA looks also very good 👍 |
Done
QA