Skip to content

Rebuild the dashboard and add destination indexes - #9

Merged
n0nag0n merged 1 commit into
masterfrom
dashboard-indexes
Oct 14, 2026
Merged

n0nag0n merged 1 commit into
masterfrom
dashboard-indexes

Conversation

@n0nag0n

@n0nag0n n0nag0n commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rebuilds the dashboard so latency, status, and the request log follow the selected time window in UTC, with timezone labels, route and error filters, a custom range, hide-bots, worker backlog, and optional apm.dashboard_auth.
  • Adds destination index migrations (sqlite/dest/0006-dest-indexes.sql and mysql/dest/0002-dest-indexes.sql). SQLite 0005 rebuilt apm_requests and dropped its indexes. Existing migration files are unchanged.
  • Fixes UTC purge cutoff, makes X-Flight-Request-Id match the stored request_token, and keeps the 0.5.2 crawler list plus LLM and metasearch agents such as SearxNG. Collection method signatures are unchanged.

Upgrade

Back up the destination database, deploy, then run php vendor/bin/runway apm:migrate. The new files only add indexes. On a large MySQL or MariaDB database, run that during a quiet period. Details are in the README section “Upgrading a production server”.

Tests

vendor/bin/phpunit --no-coverage — 6 tests, 54 assertions. The dashboard was clicked through in headless Firefox against a seeded SQLite database (route filter, error group, hide bots, status-bar filter, timezone, request details, dark mode, custom range, and basic auth). MySQL 0002 was not executed here; there is no MySQL server on this machine.

Charts, filters, and request details follow the selected window in UTC. New SQLite and MySQL migrations restore the request indexes dropped when the SQLite schema was rebuilt. Purge uses a UTC cutoff, request IDs match the stored token, and bot detection keeps the 0.5.2 crawlers plus LLM and metasearch agents.
@n0nag0n
n0nag0n merged commit f5847e7 into master Oct 14, 2026
@n0nag0n
n0nag0n deleted the dashboard-indexes branch October 14, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant