-
Notifications
You must be signed in to change notification settings - Fork 38
fix(etl): use raw SQL for completion write to bypass neon-http enum issue #2395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d78ac17
fix(etl): use raw SQL for completion write to bypass neon-http enum i…
andrew-bierman cb7ef0a
fix(etl): make catalog_items weight nullable + add ETL integration tests
andrew-bierman 60d5be8
fix(db): regenerate migration with drizzle-kit (0037_rich_electro)
andrew-bierman f694d96
fix(etl): handle nullable weight/weightUnit when building pack items …
andrew-bierman f8671be
chore: merge main into fix/etl-completion-and-retry — resolve drizzle…
andrew-bierman 6f84a52
fix(admin,etl): fix CORS Access-Control-Allow-Origin missing on prefl…
andrew-bierman a28c16c
fix(types): resolve TypeScript errors blocking CI checks job
andrew-bierman fdbc495
fix(types): annotate safe-casts and remove redundant Promise<T> casts
andrew-bierman 90b4999
fix(expo/auth): fix TS errors blocking CI checks
andrew-bierman 5676ae5
chore(deps): pin @packrat-ai/nativewindui to 2.0.3-2
andrew-bierman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| -- catalog_items.weight and weight_unit: drop NOT NULL to allow items without weight data. | ||
| -- The validator intentionally skips weight (clothing/footwear often omit it), but the | ||
| -- NOT NULL constraint was causing upserts to throw, which cascaded to ETL job failures. | ||
| ALTER TABLE "catalog_items" ALTER COLUMN "weight" DROP NOT NULL;--> statement-breakpoint | ||
| ALTER TABLE "catalog_items" ALTER COLUMN "weight_unit" DROP NOT NULL; | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ALTER TABLE "catalog_items" ALTER COLUMN "weight" DROP NOT NULL;--> statement-breakpoint | ||
| ALTER TABLE "catalog_items" ALTER COLUMN "weight_unit" DROP NOT NULL; |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the duplicate 0037 migration file to avoid drift/confusion.
This file duplicates the
0037_rich_electroDDL while the journal tracks0037_rich_electro. Keeping both increases the risk of future divergence during migration maintenance.🧹 Suggested cleanup
📝 Committable suggestion
🤖 Prompt for AI Agents