discourse/lib
Sam Saffron a8fbb19e7c FEATURE: allow a huge number of users to share common prefix
Previously username suggester would give up after 100 attempts at getting
a username and fallback to random string.

This amends the logic so we do all the work of figuring out a good username
in SQL and avoids a large amount of queries in cases where a lot of usernames
were used up.

This corrects an issue on sites with large numbers of anon users
2019-05-16 17:15:16 +10:00
..
active_record/connection_adapters DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
auth FEATURE: use the exact name provided by auth provider 2019-05-13 16:45:24 +10:00
autospec DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
backup_restore DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
common_passwords DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
content_security_policy FEATURE: Calculate CSP based on active themes (#6976) 2019-02-11 12:32:04 +00:00
demon DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
emoji early preview of new emojis (#7486) 2019-05-07 10:49:15 +02:00
es6_module_transpiler DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
file_store DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
freedom_patches DEV: Remove patch for I18n.exists? 2019-05-13 09:36:05 +02:00
generators DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
guardian DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
highlight_js DEV: already defined constant 'HIGHLIGHTJS_DIR' 2019-01-21 10:12:23 +01:00
i18n DEV: Always require %{count} in French pluralized strings 2019-05-13 09:36:05 +02:00
import DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
import_export DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
javascripts DEV: Upgrade our widget handlebars compiler 2019-05-02 15:47:57 -04:00
middleware DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
migration DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
onebox DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
plugin DEV: Mark `discourse-login-with-amazon` as official plugin. 2019-05-13 16:13:20 +08:00
pretty_text DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
rate_limiter DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
reviewable DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
scheduler FEATURE: log long running jobs in the defer queue 2018-10-12 17:03:47 +11:00
search DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
seed_data DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
sidekiq DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
site_settings DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
stylesheet DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
svg_sprite UX: Replace staff notice icon with user-shield. 2019-04-23 10:37:33 +03:00
tasks DEV: Automatically annotate plugin models alongside core models 2019-05-13 16:37:47 +01:00
theme_store DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
validators FIX: don't allow username to be changed to same as password 2019-05-13 16:43:40 -04:00
wizard DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
admin_confirmation.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
admin_constraint.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
admin_user_index_query.rb DEV: stop mutating inputs as a side effect 2019-04-30 10:25:53 +10:00
age_words.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
archetype.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
auth.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
avatar_lookup.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
badge_posts_view_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
badge_queries.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
base62.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
browser_detection.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
cache.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
canonical_url.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
category_badge.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
comment_migration.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
composer_messages_finder.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
configurable_urls.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
content_buffer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
content_security_policy.rb FEATURE: Calculate CSP based on active themes (#6976) 2019-02-11 12:32:04 +00:00
cooked_post_processor.rb FIX: remove full quote on direct replies when "typographed" 2019-05-15 17:49:29 +02:00
crawler_detection.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
current_user.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
custom_renderer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
custom_setting_providers.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
db_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
directory_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_cookie_store.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_diff.rb FIX: When mutating a string to build a diff. Duplicate it first 2019-05-13 09:31:32 +08:00
discourse_event.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_hub.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_iife.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_ip_info.rb FIX: Ensure TarReader is closed. 2019-04-10 13:37:04 +03:00
discourse_logstash_logger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_plugin.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_plugin_registry.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_redis.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_tagging.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
discourse_updates.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
disk_space.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
distributed_cache.rb REFACTOR: distributed_cache is moved to the message_bus gem 2018-10-15 15:01:45 -04:00
distributed_memoizer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
distributed_mutex.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
edit_rate_limiter.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_backup_token.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_cook.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_updater.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
encodings.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enum.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
enum_site_setting.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
excerpt_parser.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
feed_element_installer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
feed_item_accessor.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
file_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
filter_best_posts.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
final_destination.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
flag_query.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
flag_settings.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
gaps.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
global_path.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
guardian.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
has_errors.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
headless-ember.js JSHint headless-ember 2014-03-11 03:18:57 -04:00
hijack.rb Take 2 of 0f5161af19. 2019-04-29 16:41:35 +08:00
homepage_constraint.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
html_prettify.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
html_to_markdown.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
image_sizer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
inline_oneboxer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
introduction_updater.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
ip_addr.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
js_locale_helper.rb FIX: Correctly calculate fallback locale list 2019-05-13 09:36:05 +02:00
json_error.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
letter_avatar.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
markdown_linker.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
mem_info.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
message_bus_diags.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
method_profiler.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
mini_sql_multisite_connection.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
mobile_detection.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
new_post_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
new_post_result.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
notification_levels.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
oneboxer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
onpdiff.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
pbkdf2.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
permalink_constraint.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
pinned_check.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
plain_text_to_markdown.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
plugin_gem.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_action_creator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_action_destroyer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_action_result.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_creator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_destroyer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_jobs_enqueuer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_locker.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_merger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_revisor.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
pretty_text.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
primary_group_lookup.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
promotion.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
quote_comparer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
rate_limiter.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
read_only_header.rb DEV: rename ReadOnly module to ReadOnlyHeader 2019-05-06 16:07:49 +02:00
remap.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
retrieve_title.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
route_format.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
rtl.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
s3_helper.rb FIX: Add bucket folder path only if not exists 2019-05-15 15:37:40 +05:30
s3_inventory.rb FIX: retrieve original filename from s3 object's content disposition header 2019-05-16 09:47:22 +05:30
score_calculator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
screening_model.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
search.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
secure_session.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
single_sign_on.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
single_sign_on_provider.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
site_icon_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
site_setting_extension.rb DEV: move send => public_send in lib folder 2019-05-07 12:25:44 +10:00
slug.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
socket_server.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
source_url.rb Correct some missing spots for frozen_string_literal 2019-05-13 09:31:32 +08:00
spam_handler.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
sql_builder.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
staff_constraint.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
staff_message_format.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
suggested_topics_builder.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
system_message.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
text_cleaner.rb DEV: stop mutating inputs as a side effect 2019-04-30 10:25:53 +10:00
text_sentinel.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
theme_javascript_compiler.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
theme_settings_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
theme_settings_parser.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
theme_translation_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
theme_translation_parser.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
timeline_lookup.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_creator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_list_responder.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_publisher.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_query.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_query_sql.rb DEV: Rails 5.2 upgrade and global gem upgrade 2018-06-07 14:21:33 +10:00
topic_retriever.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_subtype.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_view.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topics_bulk_action.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
trust_level.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
twitter_api.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
unread.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
upload_creator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
upload_fixer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
upload_recovery.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
url_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
user_name_suggester.rb FEATURE: allow a huge number of users to share common prefix 2019-05-16 17:15:16 +10:00
version.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
wizard.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00