Description of problem: Based on https://issues.jboss.org/browse/PRODMGT-315 There should be a way to modify an existing alert condition. Removing the old one and adding a new one is not convenient for users. We should provide a button ("Edit" / "Modify") in UI for allowing it. Version-Release number of selected component (if applicable): 4.6.0-SNAPSHOT How reproducible: always
Only adding a button is not enough, as the underlying mechanism does not yet allow to edit the condition object (the object itself is replaced by a different one ).I was facing that issue in the REST api as well. See org.rhq.enterprise.server.rest.AlertDefinitionHandlerBean#updateCondition
I suggest adding a new method to AlertDefinitionManager and then reuse it from the AlertDefinitionHandlerBean#updateCondition not to replicate the code. The AlertDefinitionHandlerBean has already the reference for the AlertDefinitionManager, so there will be only small change there. I have to still investigate how the history of changes to the definitions will be handled.
master 5adfb9631 f9a6b22f3 9c2e41ff6 b0115d6fe 58a547f70 09236848d b006ad62d 5cd41a121
This is in the latest brew build