-
Notifications
You must be signed in to change notification settings - Fork 34
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: limit functionalities for storage pool with driver that's not fully supported in the UI [WD-9345] #708
feat: limit functionalities for storage pool with driver that's not fully supported in the UI [WD-9345] #708
Conversation
Demo starting at https://lxd-ui-708.demos.haus |
@@ -219,7 +223,7 @@ const StoragePoolForm: FC<Props> = ({ formik, section, setSection }) => { | |||
readOnly={formik.values.readOnly} | |||
> | |||
<Notification severity="information" title="YAML Configuration"> | |||
This is the YAML representation of the storage pool. | |||
{`${!supportedStorageDrivers.has(formik.values.driver) ? `The ${formik.values.driver} driver is not fully supported in the web interface. ` : ""}This is the YAML representation of the storage pool.`} |
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.
Thought it would be good to add some info here indicating that the driver for the storage pool is not fully supported in the UI. Open to suggestions for better copy 🙂
@piperdeck I think the easiest way to do a design review for this PR is to jump on a call and go through the changes. Let me know when you have some time? |
fbad9f9
to
a8ad838
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.
Some more ideas to simplify flow and clarify on naming.
a8ad838
to
9763c81
Compare
Had a design review session with @piperdeck, everything is okay on that front. |
…ully supported in the UI - remove volumes tab in storage detail page - remove main configuration form menu tab and default to show yaml configs editor - filter out storage pool options with unsupported drivers (applies to creating custom volumes, selecting root storage pool for instance and profile, creating custom volume while creating instance, uploading custom iso) Signed-off-by: Mason Hu <mason.hu@canonical.com>
9763c81
to
87cb136
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.
LGTM, thanks for the fixes :)
Done
QA
lxc storage create cephfs-pool cephfs source=my-filesystem cephfs.create_missing=true cephfs.data_pool=my-data cephfs.meta_pool=my-metadata
to create acephfs
storage pool.cephfs-pool
. Ensure the volumes tab is gone, ensure main configurations form menu item is gone, try updating the storage pool config using the yaml editor (cephfs.create_missing
config can be changed without negative consequences)cephfs-pool
.cephfs-pool
.cephfs-pool
as an option