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
def post_update(self, instance_dict): comment = comments_service.reset_mentions(instance_dict) if self.task_status_change: task_id = comment["object_id"] task = 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 }, project_id=task["project_id"]) tasks_service.clear_comment_cache(comment["id"]) notifications_service.reset_notifications_for_mentions(comment) return comment
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
def post_update(self, instance_dict): comment = tasks_service.reset_mentions(instance_dict) notifications_service.reset_notifications_for_mentions(comment) return comment