}
}
- /* update comments */
- //OnCommentsChanged(service, Empty, CommentChangedUpdated);
+ /* update comments and downtimes on config change */
+ CommentsChangedHandler(service, Empty, CommentChangedUpdated);
+ DowntimesChangedHandler(service, Empty, DowntimeChangedUpdated);
/* service host config update */
Host::Ptr host = service->GetHost();
Service::Ptr service = static_pointer_cast<Service>(GetObject());
Host::Ptr host = service->GetHost();
+ /* update the host if hostcheck service */
if (!host)
return;
{
if (type == CommentChangedUpdated || type == CommentChangedDeleted) {
/* we cannot determine which comment id is deleted
- * ido schema does not store legacy id
+ * id cache may not be in sync
*/
BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("Service")) {
Service::Ptr service = static_pointer_cast<Service>(object);
{
if (type == DowntimeChangedUpdated || type == DowntimeChangedDeleted) {
/* we cannot determine which downtime id is deleted
- * ido schema does not store legacy id
+ * id cache may not be in sync
*/
BOOST_FOREACH(const DynamicObject::Ptr& object, DynamicType::GetObjects("Service")) {
Service::Ptr service = static_pointer_cast<Service>(object);