----- Original Message -----
From: "Ravi Nori" <rnori(a)redhat.com>
To: engine-devel(a)ovirt.org
Sent: Tuesday, October 9, 2012 6:40:56 PM
Subject: [Engine-devel] "wipe after delete" Matching defaults from GUI
to Backend
I am working on the bug where the defaults values in the GUI for disk
actions don't correspond to the default values in the API/Backend.
For
example the "wipe after delete" flag defaults to true in the GUI but
false in the backend code. Default values are not sent from the
frontend
to the backend. Please refer to the bugzilla link
https://bugzilla.redhat.com/show_bug.cgi?id=845466
After discussing with Michael as to how to approach fixing this, we
think the best way to do it would be to fix it in the Backend class
businessentities.Disk by replacing primitives with reference types
and
forcing business logic in the class to set the default values to
match
the default values in the client.
I would appreciate some feedback on this and also on what the default
values are for Disk operations on the GUI.
GUI behavior is as follows:
For File storage domains - WipeAfterDelete check-box is unchangeable and unchecked
(false).
For Block storage domains - WipeAfterDelete check-box is changeable and
the default value is according to 'SANWipeAfterDelete' configuration value.
I think you should simply utilize the same configuration value in
REST or backend when creating a new disk.
Thanks
Ravi
_______________________________________________
Engine-devel mailing list
Engine-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel