Merge pull request #3412 from aignatov-bio/ai-sci-5568-add-missed-activity-for-tag-removing

Add missed activity for tag removing [SCI-5568]
This commit is contained in:
Alex Kriuchykhin 2021-07-02 10:18:26 +02:00 committed by GitHub
commit 6450e221a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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