docbrown/app/models
Josh Puetz 802e225a07
[deploy] Add top comments to articles feed (#6988)
* Add 'top_comments' to article feed

* Only include root comments

* Cache and eagerly load top comments

* Clear top comments cache when article score is updated

* Add articles.top_comments to bullet whitelist

* Update app/models/article.rb

Co-Authored-By: rhymes <rhymesete@gmail.com>

* Remove limit in top_comments association, remove Rails caching of top comments

* Remove unnecessary test

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-04-13 10:21:03 -04:00
..
concerns [deploy] refactor data syncing methods to use a base class and take a single argument (#7204) 2020-04-10 11:11:35 -05:00
webhook
api_secret.rb
application_record.rb Switch decorators to Rails builtin decorations - take 2 (#6125) [deploy] 2020-02-19 15:30:53 -05:00
article.rb [deploy] Add top comments to articles feed (#6988) 2020-04-13 10:21:03 -04:00
audit_log.rb
backup_data.rb
badge.rb
badge_achievement.rb [deploy] Strengthen badge achievement code and fix badge email (#7000) 2020-04-02 09:14:10 -04:00
banished_user.rb Introduce BanishedUser table (#5589) [deploy] 2020-01-21 17:15:58 -05:00
block.rb
broadcast.rb Remove onboarding type broadcasts (#7067) [deploy] 2020-04-03 13:11:49 -07:00
buffer_update.rb
chat_channel.rb [deploy] prevent AR unique errors with find_or_create (#7071) 2020-04-03 13:28:11 -04:00
chat_channel_membership.rb [deploy] Connect: move settings to sidecar iframe, improve invitations and remove experimental features (#6903) 2020-04-01 12:13:26 -04:00
classified_listing.rb [deploy] Introduce ClassifiedListingCategory model (#7172) 2020-04-13 09:01:58 -04:00
classified_listing_category.rb [deploy] Introduce ClassifiedListingCategory model (#7172) 2020-04-13 09:01:58 -04:00
collection.rb
comment.rb [deploy] Make root_exists Method Public and Use In Other Callbacks (#7101) 2020-04-06 14:48:41 -05:00
config.rb
credit.rb
data_update_script.rb Fix scripts startup check for development mode (#6520) 2020-03-09 17:15:21 +01:00
display_ad.rb Remove unused columns in display_ads (#6859) 2020-03-27 10:05:46 +01:00
display_ad_event.rb Remove unused columns from display_ad_events (#6806) [deploy] 2020-03-25 17:47:05 -04:00
email_authorization.rb [deploy] Add EmailAuthorization model (#6335) 2020-03-02 12:14:24 -05:00
email_message.rb
event.rb
feedback_message.rb Add single resource admin roles for a few internal pages (#7202) 2020-04-10 12:51:19 -04:00
follow.rb API: add docs for /followers/users and remove organizations endpoint (#6551) 2020-03-11 10:56:43 +01:00
github_issue.rb
github_repo.rb
growth.rb
html_variant.rb Upgrade Rubocop to 0.81 (#7219) 2020-04-11 10:10:04 +02:00
html_variant_success.rb
html_variant_trial.rb
identity.rb
languages.rb
mention.rb Add mentions send email notifications worker (#5549) 2020-01-20 08:24:42 -05:00
message.rb [deploy] Sidecar content fullscreen proof of concept (#7244) 2020-04-12 20:45:09 -04:00
mod.rb
moderator_action.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
negative_reaction.rb Internal: Add a table for negative reactions (#6751) [deploy] 2020-03-24 16:08:24 -04:00
note.rb
notification.rb Allow dynamic authoring of welcome notifications (#6045) [deploy] 2020-02-12 13:50:37 -08:00
notification_subscription.rb
organization.rb [deploy] refactor data syncing methods to use a base class and take a single argument (#7204) 2020-04-10 11:11:35 -05:00
organization_membership.rb Update call to action box text styling (#6795) 2020-03-24 10:49:37 +01:00
page.rb [deploy] Remove unused columns from pages (#7127) 2020-04-08 09:54:10 +02:00
page_view.rb Add two new experiments and one new conversion event (#6633) [deploy] 2020-03-16 18:16:02 -04:00
permission.rb
podcast.rb Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
podcast_episode.rb Upgrade Rubocop to 0.81 (#7219) 2020-04-11 10:10:04 +02:00
poll.rb Remove unused columns from polls (#7125) 2020-04-07 15:49:11 +02:00
poll_option.rb Remove unused columns from poll options (#7124) 2020-04-07 13:15:45 -04:00
poll_skip.rb
poll_vote.rb
pro_membership.rb Move Users::ResaveArticlesJob to Sidekiq (#5398) 2020-01-10 13:56:39 -06:00
profile_pin.rb
rating_vote.rb Create implicit experience level rating vote upon creating of readinglist reaction (#6522) [deploy] 2020-03-10 10:59:49 -04:00
reaction.rb Add Slack messengers: part 2 (#6916) 2020-04-03 17:00:06 +02:00
response_template.rb Add single resource admin roles for a few internal pages (#7202) 2020-04-10 12:51:19 -04:00
role.rb Add mod channel automation to tags (#5731) [deploy] 2020-02-06 16:27:12 -05:00
site_config.rb [deploy] Split out social media options (Important: post deployment task to be run) (#7173) 2020-04-09 19:51:11 +02:00
sponsorship.rb Hide information about expired sponsorships from "partnerships" pages (#6308) 2020-02-26 11:26:39 -05:00
tag.rb [deploy] Index Tags on Creation to via ActsAsTaggableOn in Elasticsearch (#7104) 2020-04-07 10:14:24 -05:00
tag_adjustment.rb
tool.rb
tweet.rb Remove unused columns from tweets (#7128) 2020-04-07 13:19:19 -04:00
user.rb [deploy] Remove unused columns from users (#7131) 2020-04-07 11:13:20 -04:00
user_block.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
user_counter.rb User counters using PostgreSQL JSON (#5373) [deploy] 2020-02-03 10:35:08 -05:00
webhook_endpoint.rb
welcome.rb