This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/models
Joffrey JAFFEUX f0ef307d2d
FIX: topic timer offset applied two times
timezone offset was calculated and sent from browser to server, it would be applied on utc time generated from '2013-11-22 5:00' format for example and then sent back to browser which would display it thinking it's UTC time using `moment(utc time)` when it's in fact an UTC time we have offseted with the initial user timezone.

This is impossible to automatically test in the current app state. Easiest reproduction is in live browser after setting your timezone to `America/New_York`, when setting a topic timer to later_today, after save, the time under the topic should be off to something roughly equal +1/-1  hour to your timezone offset.
2017-12-07 14:42:58 +01:00
..
concerns minor, ensure ordering of custom fields is consistent 2017-11-16 15:14:10 +11:00
about.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_dashboard_data.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
api_key.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
application_request.rb Explicitly avoid all readonly protection and scoping 2017-10-25 13:31:44 +11:00
auto_track_duration_site_setting.rb fix the build 2015-09-14 10:48:24 +02:00
backup.rb FEATURE: allow specifying s3 config via globals 2017-10-06 16:20:01 +11:00
badge_grouping.rb update annotations 2017-12-05 21:03:20 +05:30
badge_type.rb update annotations 2017-12-05 21:03:20 +05:30
badge.rb update annotations 2017-12-05 21:03:20 +05:30
category_and_topic_lists.rb FEATURE: new 'categories_and_latest' endpoint 2016-08-29 22:47:44 +02: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 all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
category_featured_user.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
category_group.rb FEATURE: Log staff actions for Category changes. 2015-09-18 10:53:08 +08:00
category_list.rb Fix the build. 2017-08-01 17:57:26 +09:00
category_page_style.rb UX: new 'category_page_style' site setting 2016-08-22 23:01:43 +02:00
category_search_data.rb annotate models 2017-08-16 10:38:11 -04:00
category_tag_group.rb update annotations 2017-12-05 21:03:20 +05:30
category_tag.rb update annotations 2017-12-05 21:03:20 +05:30
category_user.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
category.rb update annotations 2017-12-05 21:03:20 +05:30
child_theme.rb update annotations 2017-12-05 21:03:20 +05:30
color_scheme_color.rb update annotations 2017-12-05 21:03:20 +05:30
color_scheme.rb update annotations 2017-12-05 21:03:20 +05:30
custom_emoji.rb Update annotations. 2017-03-22 14:26:53 +08:00
developer.rb missing annotation 2016-08-15 17:59:36 +10:00
digest_email_site_setting.rb FEATURE: More digest email frequency options. Digests can be sent as often as every 30 minutes. 2016-03-02 15:43:47 -05:00
directory_item.rb FIX: stop counting PMs, deleted topics and whispers in directory and user stats 2017-11-20 16:44:09 +11:00
discourse_single_sign_on.rb FIX: SSO email match should be case insensitive 2017-11-08 20:37:41 +05:30
discourse_version_check.rb REFACTOR: Avoid duplicated logic on server and client. 2017-11-21 17:10:04 +08:00
draft_sequence.rb update annotations 2017-12-05 21:03:20 +05:30
draft.rb update annotations 2017-12-05 21:03:20 +05:30
email_change_request.rb FIX: Don't allow invalid email to be saved. 2016-12-21 17:47:11 +08:00
email_log.rb update annotations 2017-12-05 21:03:20 +05:30
email_token.rb update annotations 2017-12-05 21:03:20 +05:30
embeddable_host.rb update annotations 2017-12-05 21:03:20 +05:30
embedding.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
emoji_set_site_setting.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
emoji.rb FIX: be more lenient when deleting a custom emoji 2017-11-20 23:50:23 +01:00
facebook_user_info.rb update annotations 2017-12-05 21:03:20 +05:30
github_user_info.rb update annotations 2017-12-05 21:03:20 +05:30
given_daily_like.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
global_setting.rb FEATURE: Allow plugins to easily add defaults to GlobalSetting 2017-11-16 08:39:29 +11:00
google_user_info.rb update annotations 2017-12-05 21:03:20 +05:30
group_archived_message.rb update annotations 2017-12-05 21:03:20 +05:30
group_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group_history.rb FEATURE: Group logs. 2016-12-12 17:29:54 +08:00
group_manager.rb update annotations 2015-09-18 10:41:10 +10:00
group_mention.rb update annotations 2017-12-05 21:03:20 +05:30
group_user.rb FIX: Don't fail silently when updating a record. 2017-11-29 08:01:13 +08:00
group.rb update annotations 2017-12-05 21:03:20 +05:30
incoming_domain.rb FIX: If the host can't be extracted don't raise an error 2017-05-04 13:26:37 -04:00
incoming_email.rb removes whitespaces and uses scope 2017-11-13 15:23:24 +01:00
incoming_link.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
incoming_links_report.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
incoming_referer.rb FIX: catch specific exception 2014-08-06 10:00:55 +10:00
instagram_user_info.rb annotate models 2016-03-28 15:21:45 +11:00
invite_redeemer.rb FIX: invited users were not granted trust level based on their group 2017-11-23 22:19:28 +05:30
invite.rb update annotations 2017-12-05 21:03:20 +05:30
invited_group.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
like_notification_frequency_site_setting.rb FEATURE: like notification frequency of never 2016-03-06 09:12:59 +11:00
locale_site_setting.rb FIX: Don't load other locales in test mode 2017-11-15 12:50:20 -05:00
mailing_list_mode_site_setting.rb Remove daily mailing mode option as it doesn't scale. 2017-05-05 12:21:50 +08:00
muted_user.rb update annotations 2017-12-05 21:03:20 +05:30
new_topic_duration_site_setting.rb fix the build 2015-09-14 10:48:24 +02:00
notification_level_when_replying_site_setting.rb FEATURE: Add normal as a preference for topic subscription state when replying to a topic 2017-04-20 22:33:10 -04:00
notification.rb Require dependency otherwise it causes Sidekiq to lock up in development. 2017-09-25 13:48:59 +08:00
oauth2_user_info.rb update annotations 2017-12-05 21:03:20 +05:30
onceoff_log.rb annotate models 2016-05-30 10:45:32 +10:00
optimized_image.rb update annotations 2017-12-05 21:03:20 +05:30
permalink.rb update annotations 2017-12-05 21:03:20 +05:30
plugin_store_row.rb update annotations 2017-12-05 21:03:20 +05:30
plugin_store.rb REFACTOR: Instance methods added to 'PluginStore' model for easy access (#5315) 2017-11-15 10:10:20 -05:00
post_action_type.rb FIX: Post Action Type 6 is not a notify type 2017-10-19 17:13:55 -04:00
post_action.rb FIX: Couldn't disagree with "notify moderator" flags 2017-10-30 10:52:00 -04:00
post_analyzer.rb FEATURE: escape HTML when cooking plaintext emails 2017-11-15 20:22:11 +01:00
post_custom_field.rb Update annotations. 2017-10-06 11:13:01 +08:00
post_detail.rb update annotations 2017-12-05 21:03:20 +05:30
post_mover.rb FIX: incoming and outgoing emails got lost when post was moved 2017-11-24 11:45:36 +01:00
post_reply.rb FIX: Update post replies when we move posts. (#4324) 2016-07-13 17:34:21 +02:00
post_revision.rb remove rails-observers 2016-12-22 16:46:53 +11:00
post_search_data.rb update annotations 2017-12-05 21:03:20 +05:30
post_stat.rb update annotations 2017-12-05 21:03:20 +05:30
post_timing.rb FIX: more accurate counting of posts read. Skipping to the end of a topic does not count all posts as read in user stats. 2017-11-17 16:08:46 -05:00
post_upload.rb Update annotations. 2016-11-24 10:13:03 +08:00
post.rb update annotations 2017-12-05 21:03:20 +05:30
previous_replies_site_setting.rb FEATURE: allow users to control how many previous replies they get 2016-02-19 13:57:07 +11:00
queued_post.rb update annotations 2017-12-05 21:03:20 +05:30
quoted_post.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
remote_theme.rb update annotations 2017-12-05 21:03:20 +05:30
report.rb Refactor flag types for more customization 2017-10-19 13:55:23 -04:00
s3_region_site_setting.rb add 'us-east-2' S3 region 2017-07-10 15:36:38 +02:00
scheduler_stat.rb purge scheduler_stats every 1 month instead of 3 2017-04-28 15:05:15 -07:00
screened_email.rb update annotations 2017-12-05 21:03:20 +05:30
screened_ip_address.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
screened_url.rb update annotations 2017-12-05 21:03:20 +05:30
search_log.rb update annotations 2017-12-05 21:03:20 +05:30
single_sign_on_record.rb update annotations 2017-12-05 21:03:20 +05:30
site_setting.rb update annotations 2017-12-05 21:03:20 +05:30
site.rb Revert plugin js changes (#5139) 2017-09-07 15:15:29 +02:00
slug_setting.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
stylesheet_cache.rb update annotations 2017-12-05 21:03:20 +05:30
tag_group_membership.rb update annotations 2017-12-05 21:03:20 +05:30
tag_group.rb update annotations 2017-12-05 21:03:20 +05:30
tag_search_data.rb annotate stuff 2017-08-29 10:48:22 -04:00
tag_user.rb update annotations 2017-12-05 21:03:20 +05:30
tag.rb update annotations 2017-12-05 21:03:20 +05:30
theme_field.rb update annotations 2017-12-05 21:03:20 +05:30
theme.rb update annotations 2017-12-05 21:03:20 +05:30
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 Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
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_converter.rb FIX: topic counts after converting topic to/from public and private 2017-11-09 15:33:44 -05:00
topic_custom_field.rb annotate models 2016-05-30 10:45:32 +10:00
topic_embed.rb FIX: Onebox fails on encoded URL. 2017-09-26 18:34:54 +08:00
topic_featured_users.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09: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 update annotations 2017-12-05 21:03:20 +05:30
topic_link.rb update annotations 2017-12-05 21:03:20 +05:30
topic_list.rb Revert "A safe way to create class variables in a multisite environment." 2017-09-29 11:06:12 -04:00
topic_notifier.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_participants_summary.rb FEATURE: primary group class on avatars in topic list 2017-02-20 15:55:10 -05:00
topic_poster.rb FEATURE: primary group class on avatars in topic list 2017-02-20 15:55:10 -05:00
topic_posters_summary.rb Require dependency otherwise it causes Sidekiq to lock up in development. 2017-09-25 13:48:59 +08:00
topic_search_data.rb update annotations 2017-12-05 21:03:20 +05:30
topic_tag.rb update annotations 2017-12-05 21:03:20 +05:30
topic_timer.rb update annotations 2017-12-05 21:03:20 +05:30
topic_tracking_state.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
topic_user.rb update annotations 2017-12-05 21:03:20 +05:30
topic_view_item.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic.rb FIX: topic timer offset applied two times 2017-12-07 14:42:58 +01:00
translation_override.rb FIX: Re-enable invalid interpolation keys check and allow default keys to be left out of translation overrides. 2017-11-27 11:00:08 +08:00
trust_level3_requirements.rb REFACTOR: Track manual locked user levels separately from groups 2017-11-27 11:23:44 -05:00
trust_level_setting.rb fix the build 2015-09-14 10:48:24 +02:00
twitter_user_info.rb update annotations 2017-12-05 21:03:20 +05:30
unsubscribe_key.rb update annotations 2017-12-05 21:03:20 +05:30
upload.rb update annotations 2017-12-05 21:03:20 +05:30
user_action.rb update annotations 2017-12-05 21:03:20 +05:30
user_api_key.rb update annotations 2017-12-05 21:03:20 +05:30
user_archived_message.rb update annotations 2017-12-05 21:03:20 +05:30
user_auth_token_log.rb Update annotations. 2017-03-22 14:26:53 +08:00
user_auth_token.rb update annotations 2017-12-05 21:03:20 +05:30
user_avatar.rb FIX: correctly raise errors when downloads fail 2017-09-28 16:35:43 +10:00
user_badge.rb update annotations 2017-12-05 21:03:20 +05:30
user_badges.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_email.rb update annotations 2017-12-05 21:03:20 +05:30
user_export.rb update annotations 2017-12-05 21:03:20 +05:30
user_field_option.rb update annotations 2017-12-05 21:03:20 +05:30
user_field.rb update annotations 2017-12-05 21:03:20 +05:30
user_history.rb update annotations 2017-12-05 21:03:20 +05:30
user_open_id.rb update annotations 2017-12-05 21:03:20 +05:30
user_option.rb REFACTOR: Track manual locked user levels separately from groups 2017-11-27 11:23:44 -05:00
user_profile_view.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_profile.rb update annotations 2017-12-05 21:03:20 +05:30
user_search_data.rb annotate models 2017-08-16 10:38:11 -04:00
user_search.rb FEATURE: user directory returns staged users during search 2017-11-19 01:17:31 +01:00
user_stat.rb FEATURE: show read time in last 60 days 2017-11-16 15:46:51 -05:00
user_summary.rb FEATURE: show topics viewed on user summary 2017-11-17 17:53:30 -05:00
user_visit.rb REFACTOR: Track manual locked user levels separately from groups 2017-11-27 11:23:44 -05:00
user_warning.rb update annotations 2017-12-05 21:03:20 +05:30
user.rb update annotations 2017-12-05 21:03:20 +05:30
username_validator.rb FIX: Don't allow invalid email to be saved. 2016-12-21 17:47:11 +08:00
watched_word.rb update annotations 2017-12-05 21:03:20 +05:30
web_hook_event_type.rb FEATURE: Webhook for user creation and approval 2016-09-19 10:12:55 +08:00
web_hook_event.rb update annotations 2017-12-05 21:03:20 +05:30
web_hook.rb update annotations 2017-12-05 21:03:20 +05:30