A platform for community discussion. Free, open, simple.
FEATURE: Use new hashtag autocomplete system on all sites (#21788)
Martin Brennan44446afe584f
diff --git a/config/site_settings.yml b/config/site_settings.ymlindex b4cefc973c9..1fb0855f63e 100644--- a/config/site_settings.yml+++ b/config/site_settings.yml@@ -2090,6 +2090,7 @@ developer:enable_experimental_hashtag_autocomplete:default: trueclient: true+ hidden: trueexperimental_hashtag_search_result_limit:default: 20client: truediff --git a/db/migrate/20230528134326_enable_experimental_hashtag_autocomplete_true_for_all_sites.rb b/db/migrate/20230528134326_enable_experimental_hashtag_autocomplete_true_for_all_sites.rbnew file mode 100644index 00000000000..7e40e260a4f--- /dev/null+++ b/db/migrate/20230528134326_enable_experimental_hashtag_autocomplete_true_for_all_sites.rb@@ -0,0 +1,15 @@+# frozen_string_literal: true++class EnableExperimentalHashtagAutocompleteTrueForAllSites < ActiveRecord::Migration[7.0]+ def up+ DB.exec(<<~SQL)+ UPDATE site_settings+ SET value = 't'+ WHERE name = 'enable_experimental_hashtag_autocomplete'+ SQL+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+end