today, if you are using RemoveConfirmationPopupView and you want to override the default "Are you sure you want to remove the following items?" [constants.removeConfirmationPopupMessage message], you cannot do that if the dialog's HashName is starting with "remove_" [1]. need to change the code so that we will not depend on the HashName value at all: * set the constants.removeConfirmationPopupMessage message as the default message of this dialog (regardless of HashName). * message can always be overridden (again - regardless of HashName). also need to go over the code and look for all cases in which 'setMessage' is called on a RemoveConfirmationPopupView instance that has its 'HashName' set to something that starts with "remove_". currently, the above "setMessage" invocations are doing nothing. after the fix, they will actually change the message within the dialog - need to make sure that each one of these 'setMessage' invocations is OK (i.e. the message is set to something appropriate to the relevant dialog instance), or maybe the 'setMessage' invocation should be removed, in order to preserve the current behavior of using the default message. [1] From RemoveConfirmationPopupView.java: public void setMessage(String message) { if (getHashName() != null && getHashName().startsWith("remove_")) { //$NON-NLS-1$ super.setMessage(constants.removeConfirmationPopupMessage()); } else { super.setMessage(message); } } more info in thread that has been started by this e-mail: http://lists.ovirt.org/pipermail/engine-devel/2013-October/005731.html
oVirt 3.4.0 alpha has been released including the fix for this issue.
Greg, can you please advise how to test this?
It's a refactor, so only need to test for regressions. No user feature here. As long as remove dialogs still popup and contain a message, we're good. Example: delete anything (host, vm, dc, etc.). If you get a popup that says "Are you sure you want to remove the following items?" then we are good.
works with ovirt-3.4.0-beta2
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released