discourse/app/models
riking 728e8a262c FIX: Admin panel referral stats not counting topics correctly
Due to what seems to be a bug in ActiveRecord, the distinct: true option
is not recognized on counts with string column names. This commit fixes
that by moving the DISTINCT into the count string.

For robustness, the integration spec for IncomingLinksReport was
rewritten to be an actual integration spec, running the actual interface
on actual fake data.
2014-11-24 12:16:52 -08:00
..
concerns Boolean -> String quoting has changed on Rails master 2014-11-10 01:05:46 -08:00
about.rb FEATURE: serialize the fact we are https in about 2014-11-24 17:54:17 +11:00
admin_dashboard_data.rb this method isn't private 2014-10-08 20:11:28 +02:00
api_key.rb uniqueness constraint is not correct scoping on hidden is not fully correct 2014-11-20 16:48:45 +11:00
backup.rb FIX: stream backups upload to S3 2014-09-25 18:28:51 +02:00
badge_grouping.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
badge_type.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
badge.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
category_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_featured_topic.rb FIX: don't try to feature a topic more than once per category 2014-09-10 16:18:28 +02:00
category_featured_user.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_group.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_list.rb PERF: use preloader trick to load topic categories 2014-11-17 18:03:11 +11:00
category_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
category_user.rb SPEC: make sure digest doesn't pick any topics in categories that are muted 2014-11-03 16:57:50 +01:00
category.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
color_scheme_color.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
color_scheme.rb FIX: expire stylesheet cache on save 2014-11-21 08:32:32 +11:00
digest_email_site_setting.rb Enum site settings can have translatable names in dropdown. Add setting for how often users get digest emails by default: default_digest_email_frequency. 2013-08-23 17:36:25 -04:00
discourse_single_sign_on.rb FIX: sso with avatar override may fail on first account creation 2014-11-21 11:36:14 +11:00
discourse_version_check.rb Drop Rails3 support 2014-02-17 19:42:08 +01:00
draft_sequence.rb BUGFIX: eliminate drafts for system user 2014-06-25 10:55:35 +10:00
draft.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
email_log.rb Add API support for querying admin reports by date range 2014-11-05 13:11:37 -05:00
email_token.rb FIX: honor email_token_grace_period_hours setting correctly 2014-10-11 15:02:15 -07:00
error_log.rb Fix access specifiers with private_class_methods instead of removing directly 2014-10-04 09:20:41 +05:30
export_csv.rb FIX: crashing job 2014-08-26 16:22:13 +10:00
facebook_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
github_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
global_setting.rb Fix access specifiers with private_class_methods instead of removing directly 2014-10-04 09:20:41 +05:30
google_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group_user.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group.rb API addition: HTTP PATCH support for /groups/xxx: incremental membership changes 2014-11-20 09:29:56 -08:00
incoming_domain.rb FIX: catch specific exception 2014-08-06 10:00:55 +10:00
incoming_link.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
incoming_links_report.rb FIX: Admin panel referral stats not counting topics correctly 2014-11-24 12:16:52 -08:00
incoming_referer.rb FIX: catch specific exception 2014-08-06 10:00:55 +10:00
invite_redeemer.rb FEATURE: send set password instructions after invite redemption 2014-10-11 14:13:05 +05:30
invite.rb FIX: invite email should be verified against email_domains_blacklist 2014-10-09 20:21:01 +05:30
invited_group.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
locale_site_setting.rb Fix access specifiers with private_class_methods instead of removing directly 2014-10-04 09:20:41 +05:30
notification.rb FEATURE: List moderator warnings on admin dashboard 2014-09-08 13:25:02 -04:00
oauth2_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
optimized_image.rb FEATURE: allow animated thumbnails 2014-11-13 23:30:34 +01:00
permalink.rb FEATURE: permalinks lookup table can redirect to any arbitrary url 2014-10-08 11:51:24 -04:00
plugin_store_row.rb update annotations 2014-04-08 17:35:44 +02:00
plugin_store.rb removed useless assignments at some places 2014-08-19 18:10:23 +05:30
post_action_type.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_action.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
post_alert_observer.rb LOTS of changes to properly handle post/topic revisions 2014-10-27 22:06:43 +01:00
post_analyzer.rb Not initializing variable for looping if unused in loop 2014-08-15 03:24:55 +05:30
post_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_detail.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_mover.rb [patch] When a post is split out to be a new topic 2014-10-16 12:38:26 -07:00
post_reply.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_revision.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
post_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
post_timing.rb PERF: stop mucking with user stats every 15 minutes 2014-08-07 14:20:42 +10:00
post_upload.rb update annotations 2014-04-08 17:35:44 +02:00
post.rb Add more logging for blank posts to detect culprit 2014-11-24 10:34:29 +11:00
quoted_post.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
report.rb Add API support for querying admin reports by date range 2014-11-05 13:11:37 -05:00
rtl.rb Enable RTL direction in emails. 2014-08-27 14:38:03 +03:00
s3_region_site_setting.rb Fix access specifiers with private_class_methods instead of removing directly 2014-10-04 09:20:41 +05:30
screened_email.rb fix most deprecations in the specs (still some left) 2014-09-25 17:44:48 +02:00
screened_ip_address.rb FIX: when adding an IP to the spammer list, check the broader ban list 2014-11-21 18:16:06 +01:00
screened_url.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
search_observer.rb FIX: don't crash from observer if user record is bad 2014-11-20 16:08:06 +11:00
single_sign_on_record.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
site_customization.rb FIX: expire stylesheet cache on save 2014-11-21 08:32:32 +11:00
site_setting.rb correct annotations 2014-08-27 15:30:17 +10:00
site_text_type.rb Renaming site contents to site text 2014-09-24 16:08:14 -04:00
site_text.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
site.rb Adds support for a description to user fields. 2014-10-02 15:56:52 -04:00
top_lists.rb BUGFIX: show the draft on top page 2014-02-06 11:39:43 +01:00
top_menu_item.rb BUGFIX: proper handling of top_menu_items 2014-02-03 16:08:00 +01:00
top_topic.rb private methods need to be called as method_name instead of ClassName#method_name 2014-10-04 09:53:46 +05:30
topic_allowed_group.rb update annotations 2014-04-08 17:35:44 +02:00
topic_allowed_user.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_embed.rb LOTS of changes to properly handle post/topic revisions 2014-10-27 22:06:43 +01:00
topic_featured_users.rb FIX: ensure consistency on topic featured users 2014-08-18 17:13:32 +10:00
topic_invite.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_link_click.rb FIX: Could not download exported data on some sites 2014-11-20 14:02:10 -05:00
topic_link.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_list.rb FIX: ActiveRecord error when calling find for the topic list key. 2014-10-15 15:29:45 -04:00
topic_notifier.rb Perform the where(...).first to find_by(...) refactoring. 2014-05-06 14:41:59 +01:00
topic_participants_summary.rb FEATURE: add the first 3 participants in a private message 2014-05-12 09:32:49 +02:00
topic_poster.rb topic_poster.rb: Fix formatting of the attributes return value 2013-03-23 19:09:01 +05:30
topic_posters_summary.rb FIX: missing avatar when sizing down window 2014-09-19 12:35:35 +10:00
topic_status_update.rb FIX: insert different message when auto-closing a topic based on the last post 2014-10-29 21:26:32 +01:00
topic_tracking_state.rb PERF: work around LIMIT breaking query plan 2014-09-10 22:19:49 +10:00
topic_user.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
topic_view_item.rb Avoid using to_s when performing String Interpolation 2014-08-14 23:55:27 +05:30
topic.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
trust_level3_requirements.rb FEATURE: trust level 3: likes received must be on min_likes_received/3 different days, and be from min_likes_received/4 different users 2014-10-07 15:52:54 -04:00
trust_level_setting.rb Fix access specifiers with private_class_methods instead of removing directly 2014-10-04 09:20:41 +05:30
twitter_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
upload.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
user_action_observer.rb LOTS of changes to properly handle post/topic revisions 2014-10-27 22:06:43 +01:00
user_action.rb FIX: unlisted topics listed in activity stream 2014-10-03 15:37:51 +10:00
user_avatar.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_badge.rb FIX: remove faulty "ensure consistency" badge job 2014-08-11 09:21:06 +10:00
user_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_email_observer.rb Drop Rails3 support 2014-02-17 19:42:08 +01:00
user_field_serializer.rb FEATURE: Support for a required setting on user fields. 2014-10-08 15:10:19 -04:00
user_field.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
user_history.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
user_open_id.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_profile.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
user_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
user_search.rb FIX: Don't show profile pages for inactive users and don't show them in 2014-08-13 13:30:25 -04:00
user_stat.rb PERF: stop mucking with user stats every 15 minutes 2014-08-07 14:20:42 +10:00
user_visit.rb Work in progress (up till about?) 2014-11-05 12:39:25 -05:00
user.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
username_validator.rb [0] is shorter than [0,1] :) 2013-12-17 16:30:25 +01:00
warning.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00