Skip to content

fix(dashboard): add PRAGMA busy_timeout and schema integration tests#939

Merged
JeremyDev87 merged 1 commit intomasterfrom
fix/dashboard-db-schema-compat-930
Mar 25, 2026
Merged

fix(dashboard): add PRAGMA busy_timeout and schema integration tests#939
JeremyDev87 merged 1 commit intomasterfrom
fix/dashboard-db-schema-compat-930

Conversation

@JeremyDev87
Copy link
Owner

Summary

  • Verified Dashboard data-loader.ts SELECT queries match Plugin history_db.py CREATE TABLE schema (all columns aligned, no mismatches)
  • Added PRAGMA busy_timeout=5000 to openDatabase() for WAL concurrent access safety
  • Exported openDatabase function for testability
  • Added 6 new tests: 2 openDatabase unit tests + 4 integration tests with real SQLite schema

Test plan

  • yarn workspace codingbuddy-dashboard lint — passed
  • yarn workspace codingbuddy-dashboard format:check — passed
  • yarn workspace codingbuddy-dashboard typecheck — passed
  • yarn workspace codingbuddy-dashboard test — 20/20 passed
  • yarn workspace codingbuddy-dashboard build — passed

Closes #930

- Verify Dashboard data-loader.ts SELECT queries match Plugin
  history_db.py CREATE TABLE schema (all columns aligned)
- Add PRAGMA busy_timeout=5000 to openDatabase() for WAL concurrent
  access safety
- Export openDatabase for testability
- Add integration tests with real SQLite schema: loadSessions,
  loadCostEntries, loadAgentActivity, loadSkillUsage
- Add openDatabase unit tests for busy_timeout and null path handling

Closes #930
@JeremyDev87 JeremyDev87 added bug Something isn't working priority:medium Medium priority labels Mar 25, 2026
@vercel
Copy link

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 25, 2026 6:27am

@JeremyDev87 JeremyDev87 self-assigned this Mar 25, 2026
@JeremyDev87 JeremyDev87 merged commit aad318e into master Mar 25, 2026
2 checks passed
@JeremyDev87 JeremyDev87 deleted the fix/dashboard-db-schema-compat-930 branch March 25, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority:medium Medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Verify Dashboard ↔ Plugin DB schema compatibility

1 participant