Skip to content

PR_26171_ALPHA_023-game-journey-postgres-metrics-migration#45

Draft
ToolboxAid wants to merge 1 commit into
mainfrom
team/ALPHA/game-journey
Draft

PR_26171_ALPHA_023-game-journey-postgres-metrics-migration#45
ToolboxAid wants to merge 1 commit into
mainfrom
team/ALPHA/game-journey

Conversation

@ToolboxAid

Copy link
Copy Markdown
Owner

Summary

TEAM ownership: ALPHA.

Migrates Game Journey completion metrics from active SQLite persistence to Postgres through the existing GAMEFOUNDRY_DATABASE_URL dev-runtime client pattern. The Local API response shape is preserved for completion metrics snapshots and updates.

The cutover removes node:sqlite / DatabaseSync from the active Game Journey metrics store. Legacy SQLite metrics files are not deleted or silently ignored: if one exists at the legacy path, the store fails visibly with an actionable migration diagnostic before seeding Postgres.

Validation

Passed:

  • git diff --check
  • node --check src/dev-runtime/persistence/game-journey-completion-metrics-store.mjs
  • node --check src/dev-runtime/persistence/tool-repositories/game-journey-mock-repository.js
  • node --check src/dev-runtime/server/local-api-router.mjs
  • node --check tests/playwright/tools/GameJourneyTool.spec.mjs
  • node --check tests/helpers/playwrightRepoServer.mjs
  • node --check tests/helpers/gameJourneyCompletionMetricsPostgresClientStub.mjs
  • npx playwright test tests/playwright/tools/GameJourneyTool.spec.mjs --config=codex_playwright_system_chrome.config.cjs --project=playwright -g "Game Journey progress dashboard|Game Journey mock data keeps system guidance template-owned|Game Journey Local API persists completion metrics to Postgres|Game Journey completion metrics fail visibly|Game Journey completion metrics protect legacy SQLite"

Targeted checks:

  • changed Game Journey metrics paths no longer import node:sqlite or DatabaseSync
  • missing Postgres config reports GAMEFOUNDRY_DATABASE_URL
  • legacy SQLite metrics guard prevents silent data replacement
  • no samples run

Skipped:

  • full samples smoke: out of scope
  • broad Game Journey editor/detail Playwright cases: out of scope for metrics persistence; completion gate used the affected metrics/API lane

Reports

  • docs_build/dev/reports/codex_review.diff
  • docs_build/dev/reports/codex_changed_files.txt
  • docs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration.md
  • docs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration-data-preservation-notes.md
  • docs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration-manual-validation-notes.md
  • docs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration-instruction-compliance-checklist.md

ZIP

tmp/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration_delta.zip

Do not merge until explicit EOD approval.

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