Skip to content

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.yml
index b4cefc973c9..1fb0855f63e 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -2090,6 +2090,7 @@ developer:
enable_experimental_hashtag_autocomplete:
default: true
client: true
+ hidden: true
experimental_hashtag_search_result_limit:
default: 20
client: true
diff --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.rb
new file mode 100644
index 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