docbrown/app/views
Jeremy Friesen b8533172e3
Introducing a quick and dirty fix for abtests/admin (#17982)
This is a "quick and dirty" hack.  Do I like it?  No.  Do I want to delve
into further debugging/refactoring of [a 72 line method][1]?  Not at the
moment.  There are a few pathways forward, but for now, this is the
pathway to hopefully give us insight into the

**Why will this likely address the issue?**

Prior to this commit, for an experiment we would render each of the
goals (anywhere from 8 to 11); each of which would require 2 expensive
queries; which means about 16 expensive queries.

After this commit, the experiment page has none of those expensive
queries; instead each goal now runs the 2 expensive queries.

The hope is that this will help us show the results (albeit on multiple
pages) while coming in under the response time out handlers we have in
place.

**Why no tests?**

Ugh; I know right?!?  I'm beginning to ask that myself.  But for now,
because this is only visible to tech_admins, the consequences of
breaking are limited.  In otherwords, this is not a customer facing
feature, so it can be a bit less robust in it's testing.  At least
that's the rationalization I'm establishing.

Further, local tests would not reveal the production environment
complications of large data sets.  The aforementioned expensive queries
are blisteringly fast on my local machine...in part because I don't much
field_test experiment data.

Closes forem/forem#17981

Related to:

- forem/forem#17895
- forem/forem#17869

[1]:ab2d7d29d0/lib/field_test/experiment.rb (L98-L160)
2022-06-24 09:26:46 -04:00
..
admin Member Index View Actions: "Adjust Credit Balance" (#17974) 2022-06-23 14:30:10 -06:00
api API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
articles Allow Moderator Role to Unpublish Single Post (#17795) 2022-06-03 12:48:20 -04:00
badges views/badges etc i18n (#15021) 2021-10-20 09:36:30 -06:00
collections Hide 'Save' button on posts that belong to the current user (#17293) 2022-04-28 12:33:01 -04:00
comments Track clicks and views in comments on article page (#17886) 2022-06-21 09:19:55 -05:00
credits Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
dashboards Adding logic to hide Create Post on empty dashboard (#17149) 2022-04-11 13:52:35 -04:00
deep_links Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
devise Remove name from invitation flow (#17438) 2022-05-03 09:33:12 +01:00
email_subscriptions I18nize views misc & non-HTML templates (#15136) 2021-12-08 11:28:16 -05:00
feedback_messages views/feedback_messages i18n (#15038) 2021-10-27 12:34:56 +01:00
field_test/experiments Introducing a quick and dirty fix for abtests/admin (#17982) 2022-06-24 09:26:46 -04:00
fields views/tags etc i18n (#15039) 2021-10-20 08:13:51 -06:00
followings Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
github_repos Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
homepage
kaminari Admin member index - minor UI/a11y fixes (#17246) 2022-04-14 07:59:31 +01:00
layouts Update Bootstrap from 4.4.1 to 4.5.3 (#17391) 2022-04-22 07:37:12 -04:00
liquid_embeds Move work from template to controller (#16092) 2022-01-18 11:21:25 -05:00
liquids Fix Stackoverflow liquid embedded styles (#17541) 2022-05-26 11:59:32 +01:00
listings Replace listings tag component (#16855) 2022-03-30 16:51:40 +01:00
mailers Conditionally removing listing reference (#17211) 2022-04-11 13:02:17 -04:00
moderations Allow Moderator Role to adjust post tags (#17858) 2022-06-14 10:55:19 -04:00
notifications Conditionally removing listing reference (#17211) 2022-04-11 13:02:17 -04:00
open_search Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
organizations Make Follow Buttons in User, Org and Tag Embeds "secondary" (#17602) 2022-05-10 16:37:39 -04:00
pages Use correct trademarks in supported embeds (#17195) 2022-04-11 07:32:45 -06:00
podcast_episodes Always show the browse section of podcasts regardless of featured (#16329) 2022-03-22 12:56:54 -04:00
podcasts views/podcasts, views/podcast_episodes i18n (#15020) 2021-10-25 14:32:51 +01:00
profile_field_groups Add ProfileFieldGroupsController to API (#10124) 2020-09-03 10:12:53 +07:00
profile_preview_cards Profile attribute names should be unique and non-empty (#16396) 2022-04-04 12:14:02 -05:00
reading_list_items views/reading_list_items i18n (#15041) 2021-10-18 11:32:57 -07:00
response_templates Trusted users can view & use moderator response templates (#17867) 2022-06-16 14:05:49 +02:00
service_worker Revert "Revert "Removed service worker (#12974)" (#13014)" (#13015) 2021-03-17 10:57:56 -04:00
shared Fix duplicate IDs on homepage (#17092) 2022-04-14 10:48:55 +01:00
sidebars fix grid col overflow in right sidebar in safari (#16771) 2022-03-03 07:51:16 -06:00
sitemaps Fix legacy sitemap logic (#14926) 2021-10-07 08:59:16 -04:00
social_previews Render social previews for tags with one of the two custom colors set (#16557) 2022-02-15 09:56:57 -06:00
stories feat: tagged articles page title can render tag pretty name (#17944) 2022-06-17 10:30:50 +01:00
tags Make Follow Buttons in User, Org and Tag Embeds "secondary" (#17602) 2022-05-10 16:37:39 -04:00
users Move API keys from Account tab to Extensions tab in settings (#17862) 2022-06-09 09:44:50 -05:00
videos Update jQuery from 3.3.1 to 3.6.0 on /videos/new (#17205) 2022-04-19 11:00:30 -04:00