chore: add support for object enums for drizzle#881
Conversation
|
Note
|
| Cohort / File(s) | Summary |
|---|---|
Enum Type Support Extension packages/app/drizzle-utils/src/drizzleFullBulkUpdate.ts |
Added PgEnumObjectColumn import and extended type resolution logic to handle both PgEnumColumn and PgEnumObjectColumn equivalently when computing column type strings. |
Test Suite Updates packages/app/drizzle-utils/src/drizzleFullBulkUpdate.test.ts |
Replaced enum types (statusEnum → standardStatusEnum and new objectStatusEnum) and corresponding test tables (test_standard_enum and test_object_enum). Updated all data manipulation, queries, and assertions to reference new tables and enums. Added new test scenario for object enum columns with validation of where conditions using ObjectStatusEnum.ACTIVE. |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~12 minutes
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title 'chore: add support for object enums for drizzle' clearly describes the main change: adding object enum support to drizzle utilities. |
| Description check | ✅ Passed | The description includes all required sections from the template: Changes section explaining the purpose, completed Checklist with appropriate label applied, and AI Assistance Tracking properly marked. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
- 📝 Generate docstrings (stacked PR)
- 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch
add-support-for-object-enum-in-drizzle
Comment @coderabbitai help to get the list of available commands and usage tips.
Changes
This PR adds missing support for object enums in drizzle utils.
Checklist
major,minor,patchorskip-releaseAI Assistance Tracking
We're running a metric to understand where AI assists our engineering work. Please select exactly one of the options below:
Mark "Yes" if AI helped in any part of this work, for example: generating code, refactoring, debugging support,
explaining something, reviewing an idea, or suggesting an approach.
Summary by CodeRabbit
New Features
Tests