0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/db/fixtures
Osama Sayegh 08fdf23a07
DEV: Scaffold backend for the new admin dashboard Reports section (#40017)
Adds the backend for the customisable Reports section on the new admin
dashboard, gated by `dashboard_improvements`.

- `admin_dashboard_reports` table + AR model for pinned reports.
- Plugin-extension contract via
  `Plugin::Instance#register_admin_dashboard_report_source` and the
  `AdminDashboard::Reports::SourceProvider` base class. Core ships a
  built-in provider; `discourse-data-explorer` registers its own.
- `AdminDashboard::Reports::Section` builds the `reports` entry in the
  dashboard's `sections` payload; `AdminDashboard::Reports::BulkFetch`
  powers the bulk endpoint. Both share a
  `Registry.dispatch_per_source` helper that batches work by source.
- `POST /admin/dashboard/reports/bulk` fetches data for multiple
  mounted reports in one round trip, batched by source.
- Defaults are seeded via core + plugin fixtures (Daily engaged users,
  Time to first response; `accepted_solutions` when Solved is in use).

Next: list-available and save-layout endpoints for the Manage Reports
modal, plus the frontend (section UI, modal, bulk loader).
2026-05-20 09:53:26 +03:00
..
001_refresh.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
002_groups.rb
003_flags.rb FIX: setup with db:create db:migrate (#29609) 2024-11-06 15:06:17 +11:00
003_post_action_types.rb PERF: do not expire cache when PostActionType is saved (#28337) 2024-08-13 18:01:31 +10:00
004_screened_ip_addresses.rb
005_badge_types.rb
006_badges.rb DEV: raise error on deprecated icon name caught on JS in system and qunit tests (#30942) 2025-01-24 09:26:00 +08:00
007_web_hook_event_types.rb FEAT: add webhooks for calendar events (#38315) 2026-03-09 12:30:19 -05:00
008_directory_columns.rb DEV: Move automatic directory_columns rows from migration to seed fixture (#39970) 2026-05-13 12:12:56 +01:00
009_users.rb DEV: Use Discourse::SYSTEM_USER_ID in fixtures/009_users (#24743) 2023-12-07 09:04:45 +10:00
010_uploads.rb
500_categories.rb DEV: Skip Uncategorized insert in add_uncategorized_category on fresh installs (#39971) 2026-05-13 12:13:05 +01:00
600_admin_dashboard_reports.rb DEV: Scaffold backend for the new admin dashboard Reports section (#40017) 2026-05-20 09:53:26 +03:00
600_themes.rb DEV: Support running multisite:migrate concurrently take 2 (#38484) 2026-03-31 10:29:23 +08:00
700_sidebar.rb DEV: Move Community sidebar section + links from migrations to seed fixture (#39973) 2026-05-13 12:13:12 +01:00
990_settings.rb DEV: Skip backfill INSERTs in old migrations on fresh installs (#39976) 2026-05-13 13:59:28 +01:00
990_topics.rb
991_vapid_keys.rb DEV: Move bootstrap site settings from initializers to seeds (#39942) 2026-05-13 10:07:54 +01:00
992_push_api_secret_key.rb DEV: Move bootstrap site settings from initializers to seeds (#39942) 2026-05-13 10:07:54 +01:00
993_login_hint.rb DEV: Move bootstrap site settings from initializers to seeds (#39942) 2026-05-13 10:07:54 +01:00