FEATURE: add group filter for admin reports (#23381)

FEATURE: add group filter for admin reports

DEV: add plugin outlet for admin dashboard tabs
This commit is contained in:
Arpit Jalan
2023-09-05 11:17:18 +05:30
committed by GitHub
parent d1253bc3af
commit e5f3c26d20
8 changed files with 124 additions and 2 deletions

View File

@ -2573,6 +2573,16 @@ RSpec.describe Topic do
4.days.ago.to_date => 1,
)
end
it "returns the correct count with group filter" do
group = Fabricate(:group)
group.add(user)
topic = Fabricate(:topic, user: user)
expect(Topic.listable_count_per_day(2.days.ago, Time.now, nil, false, [group.id])).to include(
Time.now.utc.to_date => 1,
)
end
end
describe "#secure_category?" do