mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-07 20:18:18 +00:00
da1c99ec2d
This script is similar to the existing one that schedules report results to to be sent to a PM on a regular basis, but instead takes a topic ID and posts to that. This way people can have report results sent to a public topic regularly too and not have to deal with PM recipients and so on.
14 lines
375 B
Ruby
14 lines
375 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:query, from: DiscourseDataExplorer::Query) do
|
|
name { sequence(:name) { |i| "cat#{i}" } }
|
|
description { sequence(:desc) { |i| "description #{i}" } }
|
|
sql { sequence(:sql) { |i| "SELECT * FROM users WHERE id > 0 LIMIT #{i}" } }
|
|
user
|
|
end
|
|
|
|
Fabricator(:query_group, from: DiscourseDataExplorer::QueryGroup) do
|
|
query
|
|
group
|
|
end
|