discourse/lib/validators
Martin Brennan afb5533581
FEATURE: Add timezone to core user_options (#8380)
* Add timezone to user_options table

* Also migrate existing timezone values from UserCustomField,
  which is where the discourse-calendar plugin is storing them

* Allow user to change their core timezone from Profile

* Auto guess & set timezone on login & invite accept & signup

* Serialize user_options.timezone for group members. this is so discourse-group-timezones can access the core user timezone, as it is being removed in discourse-calendar.

* Annotate user_option with timezone

* Validate timezone values
2019-11-25 10:49:27 +10:00
..
allow_user_locale_enabled_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
allowed_ip_address_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
alternative_reply_by_email_addresses_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
category_search_priority_weights_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
censored_words_validator.rb FIX: Abort CensoredWordsValidator early if censored_words_regexp nil (#8375) 2019-11-20 20:05:06 +10:00
color_list_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_setting_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enable_invite_only_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enable_local_logins_via_email_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enable_private_email_messages_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enable_sso_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
external_system_avatars_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
group_setting_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
integer_setting_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
ip_address_format_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
markdown_typographer_quotation_marks_validator.rb FEATURE: Site setting for typographic quotation marks 2019-07-11 23:19:28 +02:00
max_emojis_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
max_username_length_validator.rb DEV: pluck_first 2019-10-21 12:08:20 +01:00
min_username_length_validator.rb DEV: pluck_first 2019-10-21 12:08:20 +01:00
password_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
pop3_polling_enabled_setting_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
quality_title_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
regex_presence_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
regex_setting_validation.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
regex_setting_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
reply_by_email_address_validator.rb DEV: stop mutating inputs as a side effect 2019-04-30 10:25:53 +10:00
reply_by_email_enabled_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
sso_overrides_email_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
string_setting_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
stripped_length_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
timezone_validator.rb FEATURE: Add timezone to core user_options (#8380) 2019-11-25 10:49:27 +10:00
topic_title_length_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
unicode_username_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
unicode_username_whitelist_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
unique_among_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
upload_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
url_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
user_full_name_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
username_setting_validator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
watched_words_validator.rb FEATURE: topic title is validated for blocked words (#8127) 2019-10-02 10:38:34 +10:00