-
Notifications
You must be signed in to change notification settings - Fork 5
Notification does not handle error when value below minimum/default #120
Comments
configuration does get updated, as in can be verified from |
Steps are incomplete. The configuration is not saved as the memory assignment is below the threshold/default. |
🤔 so I need to updated them manually? |
I am only saying your description is incomplete. Details like |
No, my description is exactly describing what I did. I did not notice the values for memory, but to be fair I just assume that should be automate updated? Also now I try and seeing this: so memory box seems too short for bigger values (at least when increasing from podman preset). Do I create a new one for this? |
Yeah you are right with valid amounts it is saved |
Defaults are not returned from the backend, or appropriately handled and would therefore be considered 'new functionality'. This is a known issue that has been an ongoing discussion. We could try to see if the actual 'failing' configuration gets returned. Can you verify if the other values where stored? |
The error returns:
We do not show this in the error returned, but it would be better to have validation, for this crc-org/crc#2869 is needed. |
The problem with the error returned is that the body can not easily be parsed. Especially with multiple issues:
|
I guess that would be the best approach...to be able to automate update values accordingly with preset selection. On the other hand, I guess that value validation error can not be show on the notification message?. As at the moment you see it...but as I said from a user perspective you have no clue what is going on specially because the openshift preset is shown as selected.. |
Unfortunately not easy. They are formatted as if they are written on the command line. I probably will change the notification first to be : "Error occurred saving the configuration" or so. And for the time being use the component to deal with the basic validation: crc-org/crc-react-components#33. This makes the component prevent these saves from happening... so if they occur it is most likely something else. This is not recommended, but I have seen this discussion going back and forth quite a while now. The component would be the quickest way to a working scenario. Though I will leave the option to provide them remotely. |
Steps
The preset is stored, but the memory assignment is not persisted as the set value is below the default of the preset.
Expected
Configuration should be updated
Actual
Configuration seems persisted, as if I open the configuration window again I can see openshift preset as selected (and Openshift tab is now accessible) but when I did the step
2
I got this notification which seems confusingYou can see the second time I opened the configuration window with the openshift preset selected but the notification from previous change and save
The text was updated successfully, but these errors were encountered: