DEV: Add admin warning for sites on Ember 3 (#25459)

Running Discourse 3.2 stable under Ember 3 will technically be possible, but is only intended as a short-term migration point. This commit adds an admin warning for sites which are using this configuration, to make it clear that themes and plugins are unlikely to support the configuration.

https://meta.discourse.org/t/287211
This commit is contained in:
David Taylor 2024-01-29 14:09:07 +00:00 committed by GitHub
parent 1bfccdd4f2
commit 63f6bd5efe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -219,7 +219,8 @@ class AdminDashboardData
:unreachable_themes, :unreachable_themes,
:watched_words_check, :watched_words_check,
:google_analytics_version_check, :google_analytics_version_check,
:translation_overrides_check :translation_overrides_check,
:ember_version_check
register_default_scheduled_problem_checks register_default_scheduled_problem_checks
@ -445,6 +446,10 @@ class AdminDashboardData
nil nil
end end
def ember_version_check
I18n.t("dashboard.ember_version_warning") if ENV["EMBER_VERSION"] == "3"
end
def out_of_date_themes def out_of_date_themes
old_themes = RemoteTheme.out_of_date_themes old_themes = RemoteTheme.out_of_date_themes
return unless old_themes.present? return unless old_themes.present?

View File

@ -1525,6 +1525,7 @@ en:
watched_word_regexp_error: "The regular expression for '%{action}' watched words is invalid. Please check your <a href='%{base_path}/admin/customize/watched_words'>Watched Word settings</a>, or disable the 'watched words regular expressions' site setting." watched_word_regexp_error: "The regular expression for '%{action}' watched words is invalid. Please check your <a href='%{base_path}/admin/customize/watched_words'>Watched Word settings</a>, or disable the 'watched words regular expressions' site setting."
v3_analytics_deprecated: "Your Discourse is currently using Google Analytics 3, which will no longer be supported after July 2023. <a href='https://meta.discourse.org/t/260498'>Upgrade to Google Analytics 4</a> now to continue receiving valuable insights and analytics for your website's performance." v3_analytics_deprecated: "Your Discourse is currently using Google Analytics 3, which will no longer be supported after July 2023. <a href='https://meta.discourse.org/t/260498'>Upgrade to Google Analytics 4</a> now to continue receiving valuable insights and analytics for your website's performance."
category_style_deprecated: "Your Discourse is currently using a deprecated category style which will be removed before the final beta release of Discourse 3.2. Please refer to <a href='https://meta.discourse.org/t/282441'>Moving to a Single Category Style Site Setting</a> for instructions on how to keep your selected category style." category_style_deprecated: "Your Discourse is currently using a deprecated category style which will be removed before the final beta release of Discourse 3.2. Please refer to <a href='https://meta.discourse.org/t/282441'>Moving to a Single Category Style Site Setting</a> for instructions on how to keep your selected category style."
ember_version_warning: "Your site is running with the unsupported EMBER_VERSION=3 configuration. This may lead to unexpected issues with themes/plugins. Please remove the EMBER_VERSION configuration from your app.yml file and rebuild. See <a href='https://meta.discourse.org/t/287211'>https://meta.discourse.org/t/287211</a> for more information."
site_settings: site_settings:
allow_bulk_invite: "Allow bulk invites by uploading a CSV file" allow_bulk_invite: "Allow bulk invites by uploading a CSV file"