discourse/lib
Erick Guan 468a8fcd20 FEATURE: Site settings defaults per locale
This change-set allows setting different defaults for different locales. 

It also:

- Adds extensive testing around site setting validation

- raises deprecation error if site setting has the default property based on env

- relocated site settings for dev and tests in the initializer

- deprecated client_setting in the site setting's loading process

- ensure it raises when a enum site setting being set

- default_locale is promoted to `required` category.

- fixes incorrect default setting and validation

- fixes ensure type check for site settings

- creates a benchmark for site setting

- sets reasonable defaults for Chinese
2017-08-02 12:24:19 -04:00
..
active_record/connection_adapters Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
auth Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
autospec Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
backup_restore Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
common_passwords fix build & add migration to clear common passwords cache 2016-03-03 19:39:22 +01:00
demon Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
email Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
emoji FIX: Pull last emoji-db revision 2017-07-29 13:12:45 +02:00
es6_module_transpiler Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
file_store fix rubocop offenses 2017-07-31 11:59:16 -04:00
freedom_patches Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
guardian Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
highlight_js update highlight.js to 9.12.0 2017-07-05 11:12:10 +02:00
i18n Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
import Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
import_export Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
javascripts Update moment locales as well. 2017-04-20 12:24:20 +08:00
middleware Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
onebox FIX: stop using inline quote for local onebox 2017-06-27 10:57:38 -04:00
plugin Remove serve_public_dir -- it's not needed 2017-07-28 13:44:38 -04:00
pretty_text Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rate_limiter Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
scheduler Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
search Merge branch 'master' into fix_limited_search_results 2017-07-31 15:55:31 -04:00
sidekiq FIX: disable scheduled jobs when in readonly mode 2016-01-11 18:31:28 +01:00
site_settings FEATURE: Site settings defaults per locale 2017-08-02 12:24:19 -04:00
stylesheet Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
tasks Improve source code linting for continuous integration (#5017) 2017-08-02 11:33:29 +09:00
validators Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
wizard Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_confirmation.rb SECURITY: Confirm new administrator accounts via email 2017-04-04 15:59:01 -04:00
admin_constraint.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_user_index_query.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
age_words.rb reused value of Time.now in a method 2015-12-01 21:06:37 +00:00
archetype.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
auth.rb Added Instagram login method 2016-02-25 12:13:59 +10:00
avatar_lookup.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
badge_queries.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
cache.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
canonical_url.rb FIX: absolute canonical link on topic pages 2013-12-12 17:24:00 +01:00
category_badge.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
column_dropper.rb Reset ActiveRecord cache after dropping columns. 2017-07-25 15:36:30 +09:00
comment_migration.rb FEATURE: Add CommentMigration for db column comments 2015-07-28 13:14:07 -07:00
composer_messages_finder.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
configurable_urls.rb Don't blow up if Redis switches to READONLY 2015-04-24 14:37:16 -04:00
content_buffer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
cooked_post_processor.rb Merge branch 'master' into search_posts_with_images 2017-07-31 10:44:41 -04:00
crawler_detection.rb Update crawler_detection.rb 2017-05-16 11:17:05 -04:00
current_user.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
custom_renderer.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
custom_setting_providers.rb Plugins can register providers for global settings 2017-01-09 17:18:58 -05:00
db_helper.rb FEATURE: move migrate_to_new_scheme into a background job 2015-06-12 12:07:57 +02:00
directory_helper.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_cookie_store.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_diff.rb FIX: Don't diplay character reference in HTML diffs (#4204) 2016-05-09 08:44:21 +02:00
discourse_event.rb Remove stubs on DiscourseEvent in tests. 2017-06-01 16:21:00 +09:00
discourse_hub.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_iife.rb Allow the loader to understand when files are moved 2016-11-15 11:41:16 -05:00
discourse_plugin_registry.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_plugin.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_redis.rb Disable MessageBus's keepalive when Redis is readonly. 2017-08-01 23:07:52 +09:00
discourse_tagging.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_updates.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse.rb FEATURE: Site settings defaults per locale 2017-08-02 12:24:19 -04:00
disk_space.rb FIX: Allow for large free disk space 2016-01-25 13:22:36 +11:00
distributed_cache.rb Correct flaky distributed cache test 2017-08-01 16:11:48 -04:00
distributed_memoizer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
distributed_mutex.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
edit_rate_limiter.rb Add better error messages for rate limits. 2015-09-24 13:52:46 -04:00
email_backup_token.rb FEATURE: further restrict downloading of backups 2017-03-01 08:28:34 -07:00
email_cook.rb Email Cooker can onebox posts too 2016-07-18 15:00:12 -04:00
email_updater.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
email.rb UX: display text & html parts alongside raw email in incoming email modal 2017-03-08 23:15:42 +01:00
enum_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
enum.rb Enums that are used in tables need to be stable 2016-01-08 20:43:11 +05:30
excerpt_parser.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
file_helper.rb FEATURE: new 'strip image metadata' site setting 2017-07-25 11:48:39 +02:00
filter_best_posts.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
final_destination.rb extract url escaping to a dedicated class method and improved tests 2017-07-29 22:16:51 +05:30
flag_query.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
gaps.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
git_importer.rb FEATURE: support uploads for themes 2017-05-10 15:47:11 -04:00
global_path.rb Allow theme field object model to support uploads 2017-05-10 15:46:42 -04:00
guardian.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
has_errors.rb Add PostCreator#create!. 2016-07-15 11:36:06 +08:00
headless-ember.js JSHint headless-ember 2014-03-11 03:18:57 -04:00
homepage_constraint.rb FIX: Suppress error when acccess is invalid. 2017-01-06 13:18:04 +08:00
html_normalize.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
html_prettify.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
html_to_markdown.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
image_sizer.rb FIX: cropping GIF wasn't working 2016-07-27 18:48:02 +02:00
inline_oneboxer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
introduction_updater.rb Add new welcome message step 2016-09-22 09:52:19 -04:00
ip_addr.rb Replace certain uses of 'gsub' with 'tr' or 'chomp' for a speed 2016-06-10 22:08:37 -05:00
js_locale_helper.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
json_error.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
letter_avatar.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
markdown_linker.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
mem_info.rb do not pull hotlinked images when max_image_size_kb == 0 2013-11-13 17:30:48 +01:00
memory_diagnostics.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
message_bus_diags.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
mobile_detection.rb radically simplify our mobile user agent detection 2016-03-26 02:02:23 -07:00
new_post_manager.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
new_post_result.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
notification_levels.rb Server side code for Watching First Post Only 2016-07-07 11:21:50 -04:00
oneboxer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
onpdiff.rb add onpdiff tests 2013-12-16 18:39:49 +01:00
pbkdf2.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
permalink_constraint.rb FIX: permalink normalization not applied at constraint 2015-07-22 13:40:45 +10:00
pinned_check.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
plugin_gem.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
post_action_creator.rb Add specs for post action guardian 2015-12-30 20:52:36 +01:00
post_creator.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
post_destroyer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
post_enqueuer.rb FIX: When approving/rejecting a post it should delete the user action 2015-04-24 15:25:47 -04:00
post_jobs_enqueuer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
post_merger.rb FIX: Revised post not updated correctly when merging posts. 2016-08-11 09:01:54 +08:00
post_revisor.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
pretty_text.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
primary_group_lookup.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
promotion.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rate_limiter.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
retrieve_title.rb FEATURE: Whitelists for inline oneboxing 2017-07-21 15:41:47 -04:00
rtl.rb DEV: Move RTL into lib where it belongs 2017-07-03 15:26:57 -04:00
s3_helper.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
score_calculator.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
screening_model.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
search.rb FIX: non tag/category # searches should be passed through 2017-08-01 18:15:14 -04:00
secure_session.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
single_sign_on.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
site_setting_extension.rb FEATURE: Site settings defaults per locale 2017-08-02 12:24:19 -04:00
slug.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
socket_server.rb Merge pull request #4870 from tgxworld/fix_cleanup_sockets_servers 2017-05-24 12:33:34 -04:00
source_url.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
spam_handler.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
sql_builder.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
staff_constraint.rb add current_user_provider so people can override current_user bevior cleanly, see 2013-10-09 15:11:54 +11:00
stats_socket.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
suggested_topics_builder.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
system_message.rb Convert server side paths to use /u/ 2017-03-30 10:23:24 -04:00
table_migration_helper.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
text_cleaner.rb Test for existing title 2016-03-21 23:06:39 -03:00
text_sentinel.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
timeline_lookup.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_creator.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_list_responder.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_query_sql.rb FEATURE: digests choose topics you're watching or tracking first 2016-08-18 17:16:52 -04:00
topic_query.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_retriever.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_subtype.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_view.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topics_bulk_action.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
trust_level.rb FIX: admin trust level user list URL should be consistent with new naming 2015-11-23 14:28:56 +05:30
twitter_api.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
unread.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
upload_creator.rb Merge branch 'master' into search_posts_by_filetype 2017-07-25 14:41:20 -04:00
url_helper.rb FIX: absolute URL for CDN should always be rooted with a protocol 2016-09-05 15:57:46 +10:00
user_name_suggester.rb FIX: suggested username should not be more than setting max_username_length 2017-03-29 18:19:28 +05:30
version.rb Version bump to v1.9.0.beta5 2017-08-01 14:32:24 -04:00
wizard.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00