You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignee: afuhr
Status: Resolved (closed on 2015-05-15 14:00:45 +00:00)
Target Version: 2.0.0-rc1
Last Update: 2015-05-15 14:00:45 +00:00 (in Redmine)
The monitoring wizard does currently only validate that the connection, such as with any resource, is possible. This should be extended with the following checks:
Check whether the IDO schema has been applied (Result: Error, skip possible)
Can possibly be combined with the next check (It's not required to check whether every single table of the schema exists)
Check whether the IDO's instances table contains at least one instance (Result: Error, skip possible)
Check whether the IDO's instances table does not contain multiple instances (Result: Warning, skip possible)
Please implement this as part of the Icinga\Module\Monitoring\Forms\Config\BackendConfigForm with a descriptive message for each result.
// Please use a static method to allow reuse in the wizard
public static function validateIdoResource(Form $form, ConfigObject $resourceConfig);
You'll need to rethink the message handling of Zend_Form, as Zend_Form only knows about errors, not warnings etc. Adapt the internal error handling (Zend_Form::markAsError), but allow to register different types of messages (Error, Warning, Info => Maybe: Form::error, Form::warning, Form::info). A custom form decorator is also required, I'll leave it up to you how it's going to be called and implemented.
Please also consider adding the addSkipValidationCheckbox as a generic form feature, with also a generic message (such as "Proceed without any further (custom) validation" or the like), so that most of the handling required for processing this checkbox is done by the form base class. (There will still be a need for something like Form::ShouldWeRunACustomValidationOrNot() I suppose)
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9203
Created by gbeutner on 2015-04-30 06:54:25 +00:00
Assignee: afuhr
Status: Resolved (closed on 2015-05-15 14:00:45 +00:00)
Target Version: 2.0.0-rc1
Last Update: 2015-05-15 14:00:45 +00:00 (in Redmine)
The monitoring wizard does currently only validate that the connection, such as with any resource, is possible. This should be extended with the following checks:
Please implement this as part of the Icinga\Module\Monitoring\Forms\Config\BackendConfigForm with a descriptive message for each result.
You'll need to rethink the message handling of Zend_Form, as Zend_Form only knows about errors, not warnings etc. Adapt the internal error handling (Zend_Form::markAsError), but allow to register different types of messages (Error, Warning, Info => Maybe: Form::error, Form::warning, Form::info). A custom form decorator is also required, I'll leave it up to you how it's going to be called and implemented.
Please also consider adding the addSkipValidationCheckbox as a generic form feature, with also a generic message (such as "Proceed without any further (custom) validation" or the like), so that most of the handling required for processing this checkbox is done by the form base class. (There will still be a need for something like Form::ShouldWeRunACustomValidationOrNot() I suppose)
Changesets
2015-05-11 08:32:34 +00:00 by afuhr c3b4ea7
2015-05-15 11:02:54 +00:00 by afuhr 1eb1162
2015-05-15 11:04:01 +00:00 by afuhr 9f35db7
2015-05-15 11:05:24 +00:00 by afuhr 93470db
2015-05-15 11:06:33 +00:00 by afuhr df7b568
2015-05-15 13:49:57 +00:00 by afuhr e6ba3d6
2015-05-15 13:59:18 +00:00 by afuhr 2cbcea2
Subtasks:
The text was updated successfully, but these errors were encountered: