Skip to content

A platform for community discussion. Free, open, simple.

UX: Change status pre-alpha to experimental for upcoming changes (#36517)

Martin Brennanc89bd4d38e0d
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index a66988c64bf..d103f9ab6cd 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -5771,7 +5771,7 @@ en:
one: "the group %{groupNames}"
other: "the groups %{groupNames}"
statuses:
- pre_alpha: "Pre-Alpha"
+ experimental: "Experimental"
alpha: "Alpha"
beta: "Beta"
stable: "Stable"
@@ -5793,7 +5793,7 @@ en:
impact_type_feature: "Feature"
impact_type_other: "Other"
status_all: "All statuses"
- status_pre_alpha: "Pre-Alpha"
+ status_experimental: "Experimental"
status_alpha: "Alpha"
status_beta: "Beta"
status_stable: "Stable"
diff --git a/config/site_settings.yml b/config/site_settings.yml
index 7ff75d1e2a6..0d64a8fa34e 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -577,7 +577,7 @@ basic:
default: "stable"
type: enum
choices:
- - pre_alpha
+ - experimental
- alpha
- beta
- stable
diff --git a/frontend/discourse/admin/components/admin-config-areas/upcoming-changes.gjs b/frontend/discourse/admin/components/admin-config-areas/upcoming-changes.gjs
index 975b8986389..871f614eb19 100644
--- a/frontend/discourse/admin/components/admin-config-areas/upcoming-changes.gjs
+++ b/frontend/discourse/admin/components/admin-config-areas/upcoming-changes.gjs
@@ -23,9 +23,10 @@ export default class AdminConfigAreasUpcomingChanges extends Component {
filterFn: () => true,
},
{
- label: i18n("admin.upcoming_changes.filter.status_pre_alpha"),
- value: "pre_alpha",
- filterFn: (change) => change.upcoming_change.status === "pre_alpha",
+ label: i18n("admin.upcoming_changes.filter.status_experimental"),
+ value: "experimental",
+ filterFn: (change) =>
+ change.upcoming_change.status === "experimental",
},
{
label: i18n("admin.upcoming_changes.filter.status_alpha"),
diff --git a/lib/upcoming_changes.rb b/lib/upcoming_changes.rb
index 9255f8c1b6b..7056e3acd08 100644
--- a/lib/upcoming_changes.rb
+++ b/lib/upcoming_changes.rb
@@ -2,7 +2,7 @@
module UpcomingChanges
def self.statuses
- @statuses ||= Enum.new(pre_alpha: 0, alpha: 100, beta: 200, stable: 300, permanent: 500)
+ @statuses ||= Enum.new(experimental: 0, alpha: 100, beta: 200, stable: 300, permanent: 500)
end
def self.image_exists?(change_setting_name)
diff --git a/plugins/chat/config/settings.yml b/plugins/chat/config/settings.yml
index 793113e3443..12aec876097 100644
--- a/plugins/chat/config/settings.yml
+++ b/plugins/chat/config/settings.yml
@@ -158,5 +158,5 @@ chat:
hidden: true
client: true
upcoming_change:
- status: "pre_alpha"
+ status: "experimental"
impact: "feature,all_members"
diff --git a/spec/lib/site_setting_extension_spec.rb b/spec/lib/site_setting_extension_spec.rb
index ebe82cf24b0..4b1c85765aa 100644
--- a/spec/lib/site_setting_extension_spec.rb
+++ b/spec/lib/site_setting_extension_spec.rb
@@ -1195,7 +1195,7 @@ RSpec.describe SiteSettingExtension do
{
enable_upload_debug_mode: {
impact: "other,developers",
- status: :pre_alpha,
+ status: :experimental,
impact_type: "other",
impact_role: "developers",
},
diff --git a/spec/lib/upcoming_changes_spec.rb b/spec/lib/upcoming_changes_spec.rb
index 10f8bb45403..a62b1db2900 100644
--- a/spec/lib/upcoming_changes_spec.rb
+++ b/spec/lib/upcoming_changes_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe UpcomingChanges do
{
enable_upload_debug_mode: {
impact: "other,developers",
- status: :pre_alpha,
+ status: :experimental,
impact_type: "other",
impact_role: "developers",
},
@@ -69,7 +69,7 @@ RSpec.describe UpcomingChanges do
expect(metadata).to eq(
{
impact: "other,developers",
- status: :pre_alpha,
+ status: :experimental,
impact_type: "other",
impact_role: "developers",
},
@@ -85,18 +85,18 @@ RSpec.describe UpcomingChanges do
it "accepts string setting names" do
metadata = described_class.change_metadata(setting_name)
- expect(metadata[:status]).to eq(:pre_alpha)
+ expect(metadata[:status]).to eq(:experimental)
end
it "accepts symbol setting names" do
metadata = described_class.change_metadata(setting_name.to_sym)
- expect(metadata[:status]).to eq(:pre_alpha)
+ expect(metadata[:status]).to eq(:experimental)
end
end
describe ".not_yet_stable?" do
- it "returns true for pre_alpha status" do
+ it "returns true for experimental status" do
expect(described_class.not_yet_stable?(setting_name)).to eq(true)
end
@@ -118,7 +118,7 @@ RSpec.describe UpcomingChanges do
end
describe ".stable_or_permanent?" do
- it "returns false for pre_alpha status" do
+ it "returns false for experimental status" do
expect(described_class.stable_or_permanent?(setting_name)).to eq(false)
end
@@ -140,7 +140,7 @@ RSpec.describe UpcomingChanges do
end
describe ".change_status_value" do
- it "returns 0 for pre_alpha status" do
+ it "returns 0 for experimental status" do
expect(described_class.change_status_value(setting_name)).to eq(0)
end
@@ -162,8 +162,8 @@ RSpec.describe UpcomingChanges do
end
describe ".change_status" do
- it "returns :pre_alpha for pre_alpha status" do
- expect(described_class.change_status(setting_name)).to eq(:pre_alpha)
+ it "returns :experimental for experimental status" do
+ expect(described_class.change_status(setting_name)).to eq(:experimental)
end
it "returns :alpha for alpha status" do
diff --git a/spec/requests/admin/config/upcoming_changes_controller_spec.rb b/spec/requests/admin/config/upcoming_changes_controller_spec.rb
index 23b5b5f97d4..bcaaaed549b 100644
--- a/spec/requests/admin/config/upcoming_changes_controller_spec.rb
+++ b/spec/requests/admin/config/upcoming_changes_controller_spec.rb
@@ -10,7 +10,7 @@ RSpec.describe Admin::Config::UpcomingChangesController do
{
enable_upload_debug_mode: {
impact: "other,developers",
- status: :pre_alpha,
+ status: :experimental,
impact_type: "other",
impact_role: "developers",
},
@@ -53,7 +53,7 @@ RSpec.describe Admin::Config::UpcomingChangesController do
"impact" => "other,developers",
"impact_role" => "developers",
"impact_type" => "other",
- "status" => "pre_alpha",
+ "status" => "experimental",
"enabled_for" => "no_one",
},
)
diff --git a/spec/services/upcoming_changes/list_spec.rb b/spec/services/upcoming_changes/list_spec.rb
index bd7724f1cfd..4ac9301fceb 100644
--- a/spec/services/upcoming_changes/list_spec.rb
+++ b/spec/services/upcoming_changes/list_spec.rb
@@ -14,7 +14,7 @@ RSpec.describe UpcomingChanges::List do
{
enable_upload_debug_mode: {
impact: "other,developers",
- status: :pre_alpha,
+ status: :experimental,
impact_type: "other",
impact_role: "developers",
},
@@ -46,7 +46,7 @@ RSpec.describe UpcomingChanges::List do
impact: "other,developers",
impact_role: "developers",
impact_type: "other",
- status: :pre_alpha,
+ status: :experimental,
)
end
diff --git a/spec/system/admin_upcoming_changes_spec.rb b/spec/system/admin_upcoming_changes_spec.rb
index 41af2634836..dfc0914cef7 100644
--- a/spec/system/admin_upcoming_changes_spec.rb
+++ b/spec/system/admin_upcoming_changes_spec.rb
@@ -11,7 +11,7 @@ describe "Admin upcoming changes", type: :system do
{
enable_upload_debug_mode: {
impact: "other,developers",
- status: :pre_alpha,
+ status: :experimental,
impact_type: "other",
impact_role: "developers",
},