A platform for community discussion. Free, open, simple.
DEV: Promote dashboard_improvements upcoming change to beta (#42116)
Krzysztof Kotlarekf6727e03b682
diff --git a/config/site_settings.yml b/config/site_settings.ymlindex f35e4b5765e..6e0fd15ee94 100644--- a/config/site_settings.yml+++ b/config/site_settings.yml@@ -4810,7 +4810,7 @@ experimental:hidden: trueclient: trueupcoming_change:- status: "alpha"+ status: "beta"impact: "feature,admins"learn_more_url: "https://meta.discourse.org/t/-/404528"admin_dashboard_reports_seeded:diff --git a/plugins/discourse-ai/spec/system/admin_dashboard_spec.rb b/plugins/discourse-ai/spec/system/admin_dashboard_spec.rbindex 0c1aca314d2..6462de7de8c 100644--- a/plugins/discourse-ai/spec/system/admin_dashboard_spec.rb+++ b/plugins/discourse-ai/spec/system/admin_dashboard_spec.rb@@ -3,7 +3,10 @@RSpec.describe "Admin dashboard" dofab!(:admin)- before { enable_current_plugin }+ before do+ enable_current_plugin+ SiteSetting.dashboard_improvements = false+ endit "displays the sentiment dashboard" doSiteSetting.ai_sentiment_enabled = truediff --git a/spec/requests/admin/dashboard_controller_spec.rb b/spec/requests/admin/dashboard_controller_spec.rbindex 1ed4843d898..16c3dab36fc 100644--- a/spec/requests/admin/dashboard_controller_spec.rb+++ b/spec/requests/admin/dashboard_controller_spec.rb@@ -41,6 +41,8 @@ RSpec.describe Admin::DashboardController dodescribe "#index" doshared_examples "version info present" do+ before { SiteSetting.dashboard_improvements = false }+it "returns discourse version info" doget "/admin/dashboard.json"@@ -50,7 +52,10 @@ RSpec.describe Admin::DashboardController doendshared_examples "version info absent" do- before { SiteSetting.version_checks = false }+ before do+ SiteSetting.dashboard_improvements = false+ SiteSetting.version_checks = false+ endit "does not return discourse version info" doget "/admin/dashboard.json"@@ -256,6 +261,7 @@ RSpec.describe Admin::DashboardController doendit "does not expose admin-only browser pageview cards to moderators" do+ SiteSetting.use_legacy_pageviews = falseSiteSetting.persist_browser_pageview_events = trueconfigure_dashboard_sections(%w[traffic])diff --git a/spec/system/admin_dashboard_community_health_spec.rb b/spec/system/admin_dashboard_community_health_spec.rbindex 8b1fc131eb9..755746c1a86 100644--- a/spec/system/admin_dashboard_community_health_spec.rb+++ b/spec/system/admin_dashboard_community_health_spec.rb@@ -3,7 +3,10 @@describe "Admin Dashboard Community Health" dofab!(:current_user, :admin)- before { sign_in(current_user) }+ before do+ SiteSetting.dashboard_improvements = false+ sign_in(current_user)+ enddescribe "Pageview Report" docontext "when use_legacy_pageviews is true" dodiff --git a/spec/system/admin_dashboard_general_spec.rb b/spec/system/admin_dashboard_general_spec.rbindex 574c0a3d144..2bc6344385d 100644--- a/spec/system/admin_dashboard_general_spec.rb+++ b/spec/system/admin_dashboard_general_spec.rb@@ -7,7 +7,10 @@ describe "Admin Dashboard General Tab" dofab!(:user_visit_2) { Fabricate(:user_visit, user: user, mobile: true) }fab!(:user_visit_3) { Fabricate(:user_visit, user: user, visited_at: 1.day.ago) }- before { sign_in(admin) }+ before do+ SiteSetting.dashboard_improvements = false+ sign_in(admin)+ endit "displays correct visit counters combining desktop and mobile visits" dovisit("/admin")diff --git a/spec/system/admin_notices_spec.rb b/spec/system/admin_notices_spec.rbindex 811a8e48210..047f72baa86 100644--- a/spec/system/admin_notices_spec.rb+++ b/spec/system/admin_notices_spec.rb@@ -4,6 +4,7 @@ describe "Admin Notices" dolet(:admin_dashboard) { PageObjects::Pages::AdminDashboard.new }before do+ SiteSetting.dashboard_improvements = falseFabricate(:admin_notice)I18n.backend.store_translations(:en, dashboard: { problem: { test_notice: "Houston" } })