Draft
Conversation
- Upgraded prisma, @prisma/client, @prisma/adapter-pg, @prisma/instrumentation to 7.0.1 - Upgraded prisma-json-types-generator to 4.0.0-beta.1 - Created prisma.config.ts for Prisma 7 configuration - Removed url from datasource in schema.prisma (Prisma 7 breaking change) - Added status mapping utilities for converting between API and Prisma enum values - Updated managers to accept API types and convert at the DAL boundary - Updated all internal cross-manager calls to use proper status conversions - Created mock PrismaClient for unit tests (Prisma 7 requires adapter) Co-authored-by: CptSchnitz <12687466+CptSchnitz@users.noreply.github.com>
- Updated unit tests to use API status values (uppercase like 'CREATED', 'PENDING') - Updated test expectations to expect API format in responses - Created mock PrismaClient for unit tests (Prisma 7 requires adapter) Co-authored-by: CptSchnitz <12687466+CptSchnitz@users.noreply.github.com>
… handling - Added runtime validation to status/priority conversion functions - Improved error handling in getSummaryKeyForStatus - Updated prisma.config.ts with more obvious placeholder URL - Fixed remaining tests to use API status values Co-authored-by: CptSchnitz <12687466+CptSchnitz@users.noreply.github.com>
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copilot
AI
changed the title
[WIP] Upgrade prisma and ecosystem packages to version 7
Upgrade Prisma to 7
Nov 30, 2025
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.
Related issues: N/A
Closes #N/A
Further information:
Upgrades Prisma ecosystem from v6 to v7, handling breaking changes including the pg adapter API and enum value mapping.
Dependency Updates
prisma,@prisma/client,@prisma/adapter-pg,@prisma/instrumentation→ 7.0.1prisma-json-types-generator→ 4.0.0-beta.1Breaking Changes Addressed
Prisma 7 Configuration
prisma.config.tsfor adapter configurationurlfrom datasource in schema (adapter provides connection)Enum Value Changes
@map()database values ('Created','In-Progress') instead of TypeScript keys ('CREATED','IN_PROGRESS')src/common/utils/statusMapping.tsfor bidirectional API ↔ Prisma conversionArchitecture
Testing
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint.prisma.io/home/REDACTED/.nvm/versions/node/v22.21.1/bin/node /home/REDACTED/.nvm/versions/node/v22.21.1/bin/node /home/REDACTED/work/jobnik-manager/jobnik-manager/node_modules/prisma/build/child {"product":"prisma","version":"6.19.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-30T11:30:29Z","project_hash":"09e7c99d","cli_path":"/home/REDACTED/work/jobnik-manager/jobnik-manager/node_modules/.bin/prisma","cli_path_hash":"f1(dns block)/home/REDACTED/.nvm/versions/node/v22.21.1/bin/node /home/REDACTED/.nvm/versions/node/v22.21.1/bin/node /home/REDACTED/work/jobnik-manager/jobnik-manager/node_modules/prisma/build/child {"product":"prisma","version":"7.0.1","cli_install_type":"local","information":"","local_timestamp":"2025-11-30T11:33:15Z","project_hash":"09e7c99d","cli_path":"/home/REDACTED/work/jobnik-manager/jobnik-manager/node_modules/.bin/prisma","cli_path_hash":"f1c(dns block)/home/REDACTED/.nvm/versions/node/v22.21.1/bin/node /home/REDACTED/.nvm/versions/node/v22.21.1/bin/node /home/REDACTED/work/jobnik-manager/jobnik-manager/node_modules/prisma/build/child {"product":"prisma","version":"7.0.1","cli_install_type":"local","information":"","local_timestamp":"2025-11-30T11:33:54Z","project_hash":"09e7c99d","cli_path":"/home/REDACTED/work/jobnik-manager/jobnik-manager/node_modules/.bin/prisma","cli_path_hash":"f1c(dns block)iojs.org/usr/bin/curl curl -q --fail --compressed -L -s REDACTED -o -(dns block)scarf.sh/home/REDACTED/.nvm/versions/node/v22.21.1/bin/node node ./report.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.