Exemplo n.º 1
0
 def post_update(self, instance_dict):
     comment = tasks_service.reset_mentions(instance_dict)
     if self.task_status_change:
         tasks_service.reset_task_data(comment["object_id"])
     tasks_service.clear_comment_cache(comment["id"])
     notifications_service.reset_notifications_for_mentions(comment)
     return comment
Exemplo n.º 2
0
    def post_update(self, instance_dict):
        comment = tasks_service.reset_mentions(instance_dict)
        if self.task_status_change:
            task_id = comment["object_id"]
            tasks_service.reset_task_data(task_id)
            events.emit(
                "task:status-changed", {
                    "task_id": task_id,
                    "new_task_status_id": comment["task_status_id"],
                    "previous_task_status_id": self.previous_task_status_id
                })

        tasks_service.clear_comment_cache(comment["id"])
        notifications_service.reset_notifications_for_mentions(comment)
        return comment
Exemplo n.º 3
0
 def post_update(self, instance_dict):
     comment = tasks_service.reset_mentions(instance_dict)
     tasks_service.clear_comment_cache(comment["id"])
     notifications_service.reset_notifications_for_mentions(comment)
     return comment
Exemplo n.º 4
0
 def post_update(self, instance_dict):
     comment = tasks_service.reset_mentions(instance_dict)
     notifications_service.reset_notifications_for_mentions(comment)
     return comment