From b06b5c4d1f2f86a0c3324440ea4a1b8e9d0a87be Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Sun, 5 Feb 2023 23:27:22 +0400 Subject: [PATCH 1/3] Check what's up with user_my_modules_controller#index_old action, and remove/rename it [SCI-7848] --- app/controllers/user_my_modules_controller.rb | 4 ++-- app/views/canvas/full_zoom/_my_module.html.erb | 4 ++-- .../{_index_old.html.erb => _assignees.html.erb} | 0 .../controllers/user_my_modules_controller_spec.rb | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename app/views/user_my_modules/{_index_old.html.erb => _assignees.html.erb} (100%) diff --git a/app/controllers/user_my_modules_controller.rb b/app/controllers/user_my_modules_controller.rb index 37125a1c1..f601f8d1a 100644 --- a/app/controllers/user_my_modules_controller.rb +++ b/app/controllers/user_my_modules_controller.rb @@ -7,14 +7,14 @@ class UserMyModulesController < ApplicationController before_action :check_view_permissions, except: %i(create destroy) before_action :check_manage_permissions, only: %i(create destroy) - def index_old + def assignees @user_my_modules = @my_module.user_my_modules respond_to do |format| format.json do render json: { html: render_to_string( - partial: 'index_old.html.erb' + partial: 'assignees.html.erb' ), my_module_id: @my_module.id, counter: @my_module.designated_users.count # Used for counter badge diff --git a/app/views/canvas/full_zoom/_my_module.html.erb b/app/views/canvas/full_zoom/_my_module.html.erb index fa42b51d0..b9ca48d67 100644 --- a/app/views/canvas/full_zoom/_my_module.html.erb +++ b/app/views/canvas/full_zoom/_my_module.html.erb @@ -9,7 +9,7 @@ data-module-x="<%= my_module.x %>" data-module-y="<%= my_module.y %>" data-module-conns="<%= construct_module_connections(my_module) %>" - data-module-users-tab-url="<%= index_old_my_module_user_my_modules_url(my_module_id: my_module.id, format: :json) %>" + data-module-users-tab-url="<%= assignees_my_module_user_my_modules_url(my_module_id: my_module.id, format: :json) %>" data-module-tags-url="<%= my_module_tags_experiment_path(my_module.experiment, format: :json) %>">
@@ -83,7 +83,7 @@