FEATURE: Change default for push_notification_time_window_mins (#28431)

Currently the push_notification_time_window_mins is set to 10
minutes by default. We want to change this to 1 minute, which is the
delay it has been set to on meta and our internal site already for over
a year now.

This conforms to the expectation users have that notifications are
delivered close to immediately.
This commit is contained in:
Martin Brennan 2024-08-20 15:46:07 +10:00 committed by GitHub
parent f41c4ccfc2
commit e9b427ff53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -363,7 +363,7 @@ basic:
default: true
client: true
push_notification_time_window_mins:
default: 10
default: 1
min: 0
short_title:
default: ""

View File

@ -1360,6 +1360,7 @@ RSpec.describe PostAlerter do
end
it "delays push notification for active online user" do
SiteSetting.push_notification_time_window_mins = 10
evil_trout.update!(last_seen_at: 5.minutes.ago)
expect { mention_post }.to change { Jobs::PushNotification.jobs.count }