From bef57eacac7089393516d2356b2b3e0f8315f724 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Wed, 30 Jun 2021 13:34:02 +0200 Subject: [PATCH] Add missed activtiy for tag removing [SCI-5568] --- app/controllers/my_module_tags_controller.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/controllers/my_module_tags_controller.rb b/app/controllers/my_module_tags_controller.rb index 339d08286..d119087e5 100644 --- a/app/controllers/my_module_tags_controller.rb +++ b/app/controllers/my_module_tags_controller.rb @@ -134,6 +134,18 @@ class MyModuleTagsController < ApplicationController def destroy_by_tag_id tag = @my_module.my_module_tags.find_by_tag_id(params[:id]) + Activities::CreateActivityService + .call(activity_type: :remove_task_tag, + owner: current_user, + subject: tag.my_module, + project: + tag.my_module.experiment.project, + team: current_team, + message_items: { + my_module: tag.my_module.id, + tag: tag.tag.id + }) + return render_404 unless tag tag.destroy