Persist EasyRoutes CSV uploads into Postgres#24
Merged
Conversation
Route console uploads were returning parsed data without making Postgres the source of truth. This keeps the existing replace-import MVP behavior while moving imported delivery days, routes, stops, orders, drivers, tips, and review state through Prisma, and covers both received EasyRoutes CSV header variants without committing raw files. Constraint: Next.js 16 standalone Docker build must succeed without a live database during image build. Constraint: Prisma 7 requires a PostgreSQL driver adapter at client construction. Rejected: Store uploaded CSV state in process memory | process restarts and EC2 redeploys lose imported routes. Rejected: Commit raw EasyRoutes CSV fixtures | files contain customer and operations data. Confidence: high Scope-risk: moderate Directive: Keep raw customer CSV files out of the repo; use anonymized parser fixtures only. Tested: npm test; npm run lint; npx prisma validate; npm run build; git diff --check; docker build --target runner -t tomotono-route-console:local-test .; local Docker Compose upload verification for both provided CSV files. Not-tested: Google Maps paid API rendering because no production Maps key is present locally. Co-authored-by: OmX <omx@oh-my-codex.dev>
c5b3ccb to
5fea13e
Compare
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.
CLEVER PR review completion
변경 내용
PR Scope Grouping Gate
검증
Concurrent Work Gate
PR 검토 에이전트 종료 조건
Context/wiki completion
Linked issue close evidence
PR 기준