docbrown/app/helpers
Julianna Tetreault af5a391429
Part 2: Shows Relevant Posts in Homepage Sidebar (#12942) [deploy]
* Adjust active_threads class method to display posts in homepage sidebar

* WIP: add specs around active_threads class method

* Uses newer AR query syntax in Article#active_threads

* WIP: Updates article_spec.rb to get tests passing

* WIP: Adjust test to return articles that dont fall into constraints

* Adjusts spec to update articles properly

* Adjust article.update_columns to match initial article columns

* Extracts .active_threads into a query object and removes class method
 - Removes class method from Article model
 - Removes class method tests from article_spec.rb
 - Adds Articles::ActiveThreadsQuery to app/queries/articles
 - Adds active_threads_query_spec.rb to spec/queries/articles
 - Replaces Article.active_threads with Articles::ActiveThreadsQuery
in _homepage_content.html.erb and _sidebar_activity.html.erb
 - General code clean up

* Rename number to count in Articles::ActiveThreadsQuery

* WIP new specs

* Update spec

* Repleaces let! with before block to appease rubocop

* Refactors Articles::ActiveThreadsQuery#call per PR review suggestion

* Calls Articles::ActiveThreadsQuery within articles_helper instead of view

Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2021-03-25 08:03:55 -06:00
..
admin_helper.rb RFC#50-P2 Restructuring the sidebar to add nested nav items + tabbed nav items (#12886) 2021-03-08 13:14:30 +02:00
application_helper.rb Revert "Revert "Removed service worker (#12974)" (#13014)" (#13015) 2021-03-17 10:57:56 -04:00
articles_helper.rb Part 2: Shows Relevant Posts in Homepage Sidebar (#12942) [deploy] 2021-03-25 08:03:55 -06:00
authentication_helper.rb [15 Minute Fix]: Update email footer copy to account for email authentication (#12877) 2021-03-03 08:36:40 -08:00
broadcasts_helper.rb Add ahoy + welcome notification tracking (#8758) [deploy] 2020-06-18 13:40:14 -07:00
chat_channel_memberships_helper.rb 🚀 Ability to allow tag moderators to create chat channels (#9741) 2020-12-08 13:10:36 +07:00
chat_channels_helper.rb 🚀 Ability to allow tag moderators to create chat channels (#9741) 2020-12-08 13:10:36 +07:00
comments_helper.rb Bump rubocop-performance from 1.9.2 to 1.10.1 (#12860) 2021-03-02 10:37:13 +01:00
date_helper.rb [deploy] Add local_date helper to handle dates with respect of user timezone (#9285) 2020-07-16 08:45:44 -06:00
feedback_messages_helper.rb Re-Add Reporter Email Form to /admin/reports (#13011) [deploy] 2021-03-22 08:19:05 -06:00
listing_helper.rb [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
messages_helper.rb [deploy] Reintroduce sticky_nav changes (ab81f36 & 7f92855) (#10263) 2020-09-09 15:33:13 -04:00
notifications_helper.rb Move app/labor/reaction_image.rb to helper (#11678) 2020-12-01 14:15:30 +07:00
organization_helper.rb [deploy] Add org credit management to org mod page (#7761) 2020-05-11 16:49:05 +02:00
rate_limit_checker_helper.rb Make definition of new user configurable (#12999) 2021-03-23 14:13:06 +07:00
settings_helper.rb [deploy] Label Experience Level Scale in User Settings (#8454) 2020-06-16 15:41:30 +02:00
social_image_helper.rb Move GeneratedImage to Images::GenerateSocialmage (#11691) 2020-12-02 11:03:14 +07:00
social_link_helper.rb Refactor internal users index (#7457) 2020-04-24 17:27:07 -04:00