mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FIX: Admin sidebar problem check missing -1 check (#30916)
When we initially turned on admin sidebar for new sites, existing sites had the value set to -1. We need to show the problem check to these sites too, but currently it only checks if `admin_sidebar_enabled_groups` is empty.
This commit is contained in:
@ -17,7 +17,17 @@ RSpec.describe ProblemCheck::AdminSidebarDeprecation do
|
||||
|
||||
it do
|
||||
expect(check).to have_a_problem.with_priority("low").with_message(
|
||||
"The old admin layout is deprecated in favour of the new <a href='https://meta.discourse.org/t/introducing-experimental-admin-sidebar-navigation/289281'>sidebar layout</a> and will be removed in the next release. You can <a href='/admin/config/navigation?filter=admin%20sidebar'>configure</a> the new sidebar layout now to opt in before that.",
|
||||
"The old admin layout is deprecated in favour of the new <a href='https://meta.discourse.org/t/-/289281'>sidebar layout</a> and will be removed in the next release. You can <a href='/admin/config/navigation?filter=admin%20sidebar'>configure</a> the new sidebar layout now to opt in before that.",
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
context "when sidebar is set to -1 from the initial migration" do
|
||||
let(:configured) { "-1" }
|
||||
|
||||
it do
|
||||
expect(check).to have_a_problem.with_priority("low").with_message(
|
||||
"The old admin layout is deprecated in favour of the new <a href='https://meta.discourse.org/t/-/289281'>sidebar layout</a> and will be removed in the next release. You can <a href='/admin/config/navigation?filter=admin%20sidebar'>configure</a> the new sidebar layout now to opt in before that.",
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user