mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-16 03:06:55 +08:00
The Site Traffic chart on `/admin/dashboard` is blank in fresh dev environments because `application_requests` starts empty, leaving nothing to design or QA against. This commit adds an `admin_dashboard:populate` rake task that backfills realistic daily rows across the relevant `req_type` values, with weekday/weekend shape and occasional spikes so the chart renders meaningful data. Tunables live in `config/dev_defaults.yml`, and the task is safe to re-run.
45 lines
861 B
YAML
45 lines
861 B
YAML
site_settings:
|
|
tagging_enabled: true
|
|
verbose_discourse_connect_logging: true
|
|
|
|
seed: 1
|
|
start_date: 2020-01-01
|
|
auth_plugin_enabled: true
|
|
allow_anonymous_to_impersonate: false
|
|
|
|
category:
|
|
count: 30
|
|
group:
|
|
count: 15
|
|
post:
|
|
include_images: false
|
|
max_likes_count: 10
|
|
post_revisions:
|
|
count: 50
|
|
tag:
|
|
count: 30
|
|
topic:
|
|
count: 30
|
|
replies:
|
|
# number of replies per topic between min and max
|
|
min: 0
|
|
max: 12
|
|
overrides:
|
|
# topic titles can be found in config/locales/faker.en.yml
|
|
# in the discourse_dev_assets gem
|
|
- title: "Coolest thing you have seen today"
|
|
count: 99
|
|
tags:
|
|
# number of tags per topic between min and max
|
|
min: 0
|
|
max: 3
|
|
user:
|
|
count: 30
|
|
email_logs:
|
|
count: 2
|
|
application_request:
|
|
logged_in_browser_pageviews_per_day: 9000
|
|
|
|
new_user:
|
|
username: new_user
|
|
email: new_user@example.com
|