Change Wrapstodon switch from feature flag to admin setting (#37273)

This commit is contained in:
Claire authored and GitHub committed 2025-12-17 09:47:02 +00:00
1 parent a292162c5f
commit db62d70492
9 files changed
+28 -6

No files matched your search

+7 -3
View File
@@ -85,6 +85,10 @@ RSpec.describe 'API V1 Annual Reports' do
end
context 'when the feature is not enabled' do
before do
Setting.wrapstodon = false
end
it 'returns http success and ineligible status' do
get '/api/v1/annual_reports/2025/state', headers: headers
@@ -99,7 +103,7 @@ RSpec.describe 'API V1 Annual Reports' do
end
end
context 'when the feature is enabled and time is within window', feature: :wrapstodon do
context 'when the feature is enabled and time is within window' do
before do
travel_to Time.utc(2025, 12, 20)
@@ -121,7 +125,7 @@ RSpec.describe 'API V1 Annual Reports' do
end
end
context 'when the feature is enabled but we are out of the time window', feature: :wrapstodon do
context 'when the feature is enabled but we are out of the time window' do
before do
travel_to Time.utc(2025, 6, 20)
@@ -168,7 +172,7 @@ RSpec.describe 'API V1 Annual Reports' do
context 'with correct scope' do
let(:scopes) { 'write:accounts' }
context 'when the feature is enabled and time is within window', feature: :wrapstodon do
context 'when the feature is enabled and time is within window' do
before do
travel_to Time.utc(2025, 12, 20)
+1 -1
View File
@@ -42,7 +42,7 @@ RSpec.describe 'Instances' do
end
end
context 'when wrapstodon is enabled', feature: :wrapstodon do
context 'when wrapstodon is enabled' do
before do
travel_to Time.utc(2025, 12, 20)
end