mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Make experimental hashtag autocomplete default for new sites (#19681)
This feature is stable enough now to make it the default going forward for new sites. Existing sites that have not yet set enable_experimental_hashtag_autocomplete to `true` will have it set to `false` for their site settings, which was the old default. c.f https://meta.discourse.org/t/hashtags-are-getting-a-makeover/248866
This commit is contained in:
@@ -8,7 +8,10 @@ import { test } from "qunit";
|
||||
|
||||
acceptance("Category and Tag Hashtags", function (needs) {
|
||||
needs.user();
|
||||
needs.settings({ tagging_enabled: true });
|
||||
needs.settings({
|
||||
tagging_enabled: true,
|
||||
enable_experimental_hashtag_autocomplete: false,
|
||||
});
|
||||
needs.pretender((server, helper) => {
|
||||
server.get("/hashtags", () => {
|
||||
return helper.response({
|
||||
|
||||
@@ -2035,7 +2035,7 @@ developer:
|
||||
default: true
|
||||
client: true
|
||||
enable_experimental_hashtag_autocomplete:
|
||||
default: false
|
||||
default: true
|
||||
client: true
|
||||
experimental_hashtag_search_result_limit:
|
||||
default: 20
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class MakeExperimentalHashtagFeatureDefaultForNewSites < ActiveRecord::Migration[7.0]
|
||||
def up
|
||||
execute(<<~SQL)
|
||||
INSERT INTO site_settings (name, data_type, value, created_at, updated_at)
|
||||
VALUES ('enable_experimental_hashtag_autocomplete', 5, 'f', now(), now())
|
||||
ON CONFLICT DO NOTHING
|
||||
SQL
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user