FEATURE: Use new hashtag autocomplete system on all sites (#21788)

Followup to:

* 7c97548159
* 0b3cf83e3c
* eae47d82e2

This commit enables the no-longer-experimental hashtag autocomplete changes
for all sites. It is now at a point where it is ready to be promoted
to the only way, and following this commit all old hashtag code
will be deleted

c.f. https://meta.discourse.org/t/hashtags-are-getting-a-makeover/248866
This commit is contained in:
Martin Brennan 2023-06-07 11:11:39 +10:00 committed by GitHub
parent 69eecf92d0
commit 44446afe58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -2090,6 +2090,7 @@ developer:
enable_experimental_hashtag_autocomplete:
default: true
client: true
hidden: true
experimental_hashtag_search_result_limit:
default: 20
client: true

View File

@ -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