docbrown/app
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
..
assets BETA version 2 of the Storybook Multi Input (Editing and Accessibility) (#17894) 2022-06-23 15:41:45 +02:00
controllers Introducing a quick and dirty fix for abtests/admin (#17982) 2022-06-24 09:26:46 -04:00
decorators Profile attribute names should be unique and non-empty (#16396) 2022-04-04 12:14:02 -05:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
helpers Rename base_roles ui labels (#17938) 2022-06-21 16:17:35 +01:00
javascript API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
lib API V1 transition (#17835) 2022-06-23 14:26:00 -06:00
liquid_tags Ensuring that embed fallback renders URL (#17680) 2022-05-17 07:43:17 -04:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Adding VariantQuery reseed randomization option (#17942) 2022-06-16 15:04:08 -04:00
policies Trusted users can view & use moderator response templates (#17867) 2022-06-16 14:05:49 +02:00
queries Member index: filter by organizations (#17943) 2022-06-21 13:32:50 +01:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove unused methods from User (#16616) 2022-02-18 09:02:17 +07:00
services Fix email confirmation logic when registering via Omniauth (#17878) 2022-06-23 16:26:26 -04:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Remove the "Getting Started" Section from the Config (#16033) 2022-01-20 07:31:35 -07:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views Introducing a quick and dirty fix for abtests/admin (#17982) 2022-06-24 09:26:46 -04:00
workers Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00