From b16606e6133c93f3cd1605205921e697ff2baecf Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Mon, 22 Jun 2020 17:45:16 -0500 Subject: [PATCH] [deploy] Optimization: Remove followed_user_ids from Async User Data Hash (#8837) --- app/controllers/async_info_controller.rb | 1 - app/javascript/chat/__tests__/util.test.js | 42 ---------------------- 2 files changed, 43 deletions(-) diff --git a/app/controllers/async_info_controller.rb b/app/controllers/async_info_controller.rb index 82a0b4ceb..a0d443988 100644 --- a/app/controllers/async_info_controller.rb +++ b/app/controllers/async_info_controller.rb @@ -58,7 +58,6 @@ class AsyncInfoController < ApplicationController username: @user.username, profile_image_90: ProfileImage.new(@user).get(width: 90), followed_tags: @user.cached_followed_tags.to_json(only: %i[id name bg_color_hex text_color_hex hotness_score], methods: [:points]), - followed_user_ids: @user.cached_following_users_ids, followed_podcast_ids: @user.cached_following_podcasts_ids, reading_list_ids: ReadingList.new(@user).cached_ids_of_articles, blocked_user_ids: @user.all_blocking.pluck(:blocked_id), diff --git a/app/javascript/chat/__tests__/util.test.js b/app/javascript/chat/__tests__/util.test.js index 15c721e4c..c3645fd33 100644 --- a/app/javascript/chat/__tests__/util.test.js +++ b/app/javascript/chat/__tests__/util.test.js @@ -40,48 +40,6 @@ describe('Chat utilities', () => { '/uploads/user/profile_image/41/0841dbe2-208c-4daa-b498-b2f01f3d37b2.png', followed_tag_names: [], followed_tags: '[]', - followed_user_ids: [ - 2, - 31, - 7, - 38, - 22, - 37, - 14, - 26, - 20, - 24, - 11, - 27, - 29, - 3, - 6, - 28, - 4, - 39, - 8, - 40, - 25, - 30, - 35, - 34, - 5, - 12, - 33, - 36, - 21, - 18, - 23, - 1, - 32, - 19, - 15, - 13, - 16, - 9, - 10, - 17, - ], reading_list_ids: [48, 49, 34, 51, 64, 56], saw_onboarding: true, checked_code_of_conduct: false,