PR_26171_ALPHA_023-game-journey-postgres-metrics-migration#45
Draft
ToolboxAid wants to merge 1 commit into
Draft
PR_26171_ALPHA_023-game-journey-postgres-metrics-migration#45ToolboxAid wants to merge 1 commit into
ToolboxAid wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TEAM ownership: ALPHA.
Migrates Game Journey completion metrics from active SQLite persistence to Postgres through the existing
GAMEFOUNDRY_DATABASE_URLdev-runtime client pattern. The Local API response shape is preserved for completion metrics snapshots and updates.The cutover removes
node:sqlite/DatabaseSyncfrom 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 --checknode --check src/dev-runtime/persistence/game-journey-completion-metrics-store.mjsnode --check src/dev-runtime/persistence/tool-repositories/game-journey-mock-repository.jsnode --check src/dev-runtime/server/local-api-router.mjsnode --check tests/playwright/tools/GameJourneyTool.spec.mjsnode --check tests/helpers/playwrightRepoServer.mjsnode --check tests/helpers/gameJourneyCompletionMetricsPostgresClientStub.mjsnpx 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:
node:sqliteorDatabaseSyncGAMEFOUNDRY_DATABASE_URLSkipped:
Reports
docs_build/dev/reports/codex_review.diffdocs_build/dev/reports/codex_changed_files.txtdocs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration.mddocs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration-data-preservation-notes.mddocs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration-manual-validation-notes.mddocs_build/dev/reports/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration-instruction-compliance-checklist.mdZIP
tmp/PR_26171_ALPHA_023-game-journey-postgres-metrics-migration_delta.zipDo not merge until explicit EOD approval.