docbrown/app/services
Jeremy Friesen 3fb085b3d9
Adding more context to /admin/abtests (#17821)
* Adding more context to `/admin/abtests`

Prior to this commit, the `/admin/abtests` was fully rendered by the
field_test gem (see
https://github.com/ankane/field_test/blob/master/app/views/field_test/experiments/index.html.erb
and
https://github.com/ankane/field_test/blob/master/app/views/field_test/experiments/show.html.erb).

With this commit, we're pre-pending our own
partial (e.g. `app/views/field_test/experiments/_experiments.html.erb`)
in the view paths; which means instead of rendering
https://github.com/ankane/field_test/blob/master/app/views/field_test/experiments/_experiments.html.erb
we render our newly created
`app/views/field_test/experiments/_experiments.html.erb`)

Why the ugly antics in the view?  As I'm not fully certain if this will
"meet" the full needs of those monitoring the experiments.  I'm also
constructing this to most closely match the spreadsheet that has been
assembled for tracking this information.

Why introduce another caching layer for the variant assembly?  The
original caching
layer (e.g. `Articles::Feeds::VariantAssembler.pre_assembled_variants`)
is in place to provide the quickest access to the assembled variants.
But due to the nature of the implemented view, we are needing a
programmatic representation of all variants.  And the added Rails cache
is there to minimize disk reads.

Closes forem/forem#17820

* Update app/models/articles/feeds/variant_assembler.rb

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>

* Update app/models/articles/feeds/variant_assembler.rb

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2022-06-03 11:27:09 -04:00
..
admin Display analytics up to yesterday instead of today (#17064) 2022-04-04 15:17:32 -04:00
articles Adding more context to /admin/abtests (#17821) 2022-06-03 11:27:09 -04:00
audit Adding :internal auditing for admin/spaces#update (#17010) 2022-03-25 14:25:13 -04:00
authentication Removing yard doc generation warnings (#17090) 2022-04-04 15:03:22 -04:00
badges Remove Community Wellness badge feature flag (#17623) 2022-05-11 12:08:40 -06:00
broadcasts/welcome_notification app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
color Color tokens (#16107) 2022-01-21 07:41:03 +01:00
credits More ListingsToolkit refactoring (#16221) 2022-01-27 09:47:41 +07:00
discover Add Forem Discover registration worker and service (#14865) 2021-10-01 10:27:31 -04:00
edge_cache Favoring explicit class declaration (#17042) 2022-03-29 13:52:11 -04:00
error_messages Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
exporter Fix app/services' ruby 2.7 kwargs warnings (#13177) 2021-04-01 18:40:50 -04:00
fastly_config Abstract DatadogStatsClient to ForemStatsClient (#12304) 2021-01-27 11:25:44 -05:00
feeds Removing yard doc generation warnings (#17090) 2022-04-04 15:03:22 -04:00
follows Fix UI showing "Following" after unfollowing a user (#13757) 2021-05-19 17:40:38 +01:00
giphy Deduplicate giphy_img? function and add tests (#4590) 2019-10-30 11:40:17 -04:00
github Spelling (#15702) 2021-12-07 06:59:10 -07:00
homepage Extracting duplicate logic (#16035) 2022-01-10 15:19:04 -05:00
html Refactor FastImage usage (#16304) 2022-01-26 09:48:03 -05:00
images Addressing rubocop violations (#16156) 2022-01-17 17:21:06 -05:00
listings More listings refactoring (#16343) 2022-02-23 13:44:30 +07:00
loggers Rubocop fixes (#15892) 2021-12-28 09:11:41 -06:00
mailchimp Remove sustaining member newsletter, and its settings (#17514) 2022-04-29 11:47:12 -05:00
markdown_processor Allowing dependency injection for LiquidTag policy (#16511) 2022-02-10 07:47:16 -05:00
mentions Issue #9077 has already been resolved, added specs (#15342) 2021-11-17 11:27:50 +02:00
moderator added ability to assign moderator role via admin/super admin (#17759) 2022-05-26 10:57:08 -04:00
notification_subscriptions Add Article post_commit when user_id changes with specs (#15132) 2021-10-25 10:53:21 +07:00
notifications Context Notifications (#17243) 2022-04-18 10:30:30 +03:00
organizations Organizations delete optimizations and refactoring (#13610) 2021-05-11 12:14:55 +03:00
payments app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
podcasts Don't create podcast episodes without any media (#17449) 2022-04-27 11:21:03 -05:00
profile_fields Refactor profile refreshing (#14643) 2021-09-13 12:15:04 -04:00
push_notifications Have specs run without Redis and refactor ConsumerApp and Device (#13647) 2021-05-07 08:03:16 +02:00
re_captcha Spelling fixes to live code (#15670) 2021-12-06 12:11:25 +02:00
search validate sort direction (#17439) 2022-04-27 08:59:13 -05:00
settings Addressing rubocop violations (#16156) 2022-01-17 17:21:06 -05:00
slack Ensure arguments to perform_async are json safe (#16285) 2022-01-25 18:07:40 -06:00
spam app/models i18n (#16124) 2022-02-03 13:41:42 -05:00
tag_moderators Refactoring questions asked of user (#15762) 2021-12-21 12:45:12 -05:00
twitter_client Match error class using case instead of if/elsif/else (#16952) 2022-03-21 15:34:49 -05:00
user_subscriptions app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
users Permanently delete users from Mailchimp automatically (#17395) 2022-04-26 09:48:50 -04:00
analytics_service.rb app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
application_service.rb [deploy] Refactor 🚀 : Replaced Chat Channel Setting page with Preact component. (#8271) 2020-06-10 16:58:37 -04:00
article_api_index_service.rb Factoring code to define Article.approved (#15600) 2021-12-01 22:45:32 -05:00
article_with_video_creation_service.rb app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
bulk_sql_delete.rb Remove txn from with_statement_timeout block (#15088) 2021-10-15 14:53:35 -04:00
email_digest.rb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
email_digest_article_collector.rb Extracting a not_authored_by scope (#16123) 2022-01-17 15:20:49 -05:00
feature_flag.rb Add FeatureFlag.all (#16496) 2022-02-11 13:38:17 +07:00
flare_tag.rb [Search 2.0] Homepage query (#13339) 2021-04-21 12:41:24 +02:00
instrumentation.rb Bump ddtrace from 0.54.2 to 1.0.0 (#17662) 2022-05-18 15:46:49 -04:00
markdown_processor.rb Extracting container for allowed tags & attrs (#15338) 2021-12-16 12:24:45 -05:00
medium_article_retrieval_service.rb app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
notifications.rb Remove notifiable access from articles and comments notifications (#5415) [deploy] 2020-01-09 10:19:45 -05:00
open_graph.rb Ensuring that embed fallback renders URL (#17680) 2022-05-17 07:43:17 -04:00
rate_limit_checker.rb app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
tag_adjustment_creation_service.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
tag_adjustment_update_service.rb [WIP] Allow mods to remove tags and send user notification (#1252) 2018-12-04 16:45:32 -05:00