[#3213] Misc. tweaks: proper upsert in Hashtag, better feature toggle management.

This commit is contained in:
Ivan Tashkinov 2021-02-23 13:52:28 +03:00
commit 77f3da0358
8 changed files with 30 additions and 31 deletions

View file

@ -657,6 +657,8 @@ config :pleroma, :oauth2,
config :pleroma, :database, rum_enabled: false
config :pleroma, :features, improved_hashtag_timeline: :auto
config :pleroma, :populate_hashtags_table, fault_rate_allowance: 0.01
config :pleroma, :env, Mix.env()

View file

@ -461,15 +461,16 @@ config :pleroma, :config_description, [
},
%{
group: :pleroma,
key: :database,
key: :features,
type: :group,
description: "Database-related settings",
description: "Customizable features",
children: [
%{
key: :improved_hashtag_timeline,
type: :keyword,
type: {:dropdown, :atom},
description:
"If `true`, hashtags will be fetched from `hashtags` table for hashtags timeline. When `false`, object-embedded hashtags will be used (slower). Is auto-set to `true` (unless overridden) when HashtagsTableMigrator completes."
"Setting to force toggle / force disable improved hashtags timeline. `:enabled` forces hashtags to be fetched from `hashtags` table for hashtags timeline. `:disabled` forces object-embedded hashtags to be used (slower). Keep it `:auto` for automatic behaviour (it is auto-set to `:enabled` [unless overridden] when HashtagsTableMigrator completes).",
suggestions: [:auto, :enabled, :disabled]
}
]
},