mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
FEATURE: Send notifications to admins when new features are released (#19460)
This commit adds a new notification that gets sent to admins when the site gets new features after an upgrade/deploy. Clicking on the notification takes the admin to the admin dashboard at `/admin` where they can see the new features under the "New Features" section. Internal topic: t/87166.
This commit is contained in:
@ -213,4 +213,14 @@ RSpec.describe DiscourseUpdates do
|
||||
expect(result[2]["title"]).to eq("Bells")
|
||||
end
|
||||
end
|
||||
|
||||
describe "#get_last_viewed_feature_date" do
|
||||
fab!(:user) { Fabricate(:user) }
|
||||
|
||||
it "returns an ActiveSupport::TimeWithZone object" do
|
||||
time = Time.zone.parse("2022-12-13T21:33:59Z")
|
||||
DiscourseUpdates.bump_last_viewed_feature_date(user.id, time)
|
||||
expect(DiscourseUpdates.get_last_viewed_feature_date(user.id)).to eq(time)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user