-
Notifications
You must be signed in to change notification settings - Fork 356
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
Storage removal #993
Storage removal #993
Conversation
This PR depends on ManageIQ/manageiq#14724 |
Travis needs ManageIQ/manageiq#14724 first and the test will pass. |
@miq-bot assign @martinpovolny |
Datastores can't be removed if there are relations to hosts or vms. We need provide a way to check whether datastore removal is supported (no vm or host relations). When there condition is not met we need to notify a user that relations needs to be removed first. This PR fixes: https://bugzilla.redhat.com/1439380
Checked commit pkliczewski@2cfe2cf with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Can this to be coded using the And then I would expect the support to be checked in the code that displayes the button and the error message used from the Then here we could check again (and again reuse the error message). Does it make sense? |
It is dependent on backend and it is using supports. Please see ManageIQ/manageiq#14724 |
Right, so then we should reuse the "unsuported reason" to form the flash message and it's done. Something like:
but I don't know how that's done with |
OK, will fix |
why is this fine/yes? |
@dclarizio : shall this go to fine? |
@martinpovolny @durandom I've gotten clarification from PM that this can go to Fine. However, there's some discussion on the related Backend PR as to the general solution. Need to make sure we're all on the same page before moving forward. |
@pkliczewski : I merged this as the backend is merged. Please, deal with the error message in a follow up PR (and ping me). Thx! |
@martinpovolny Sure, I will. |
@miq-bot add_label fine/yes |
@miq-bot remove_label fine/no |
Storage removal (cherry picked from commit befd4da) https://bugzilla.redhat.com/show_bug.cgi?id=1444889
Fine backport details:
|
@martinpovolny I checked and it is not that easy to get |
@pkliczewski : ok, thx |
@pkliczewski could you add this shortcoming to ManageIQ/manageiq#14740 ? I'll collect there what is needed as improvemnts in the supports feature mixin. |
@durandom Done |
Datastores can't be removed if there are relations to hosts or vms.
We need provide a way to check whether datastore removal is supported
(no vm or host relations). When there condition is not met we need
to notify a user that relations needs to be removed first.
This PR fixes:
https://bugzilla.redhat.com/1439380