-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(dataproxy): remove 3.4.1 fallback from DataProxy Client #12738
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
packages/client/src/__tests__/getPrismaClient.dataproxy.test.ts
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
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.
Seems good to me!
} | ||
} else { | ||
throw new NotImplementedYetError( | ||
'clientVersion or `PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION` env var needs to be set with a `major.minor.patch` version for Prisma Data Proxy.', |
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.
Where would I set the clientVersion
myself?
Is that the PDP use case?
The 5 new tests are currently failing:
|
To be replaced by #13629 |
1 similar comment
To be replaced by #13629 |
The Data Proxy Client in PDP Data Browser used to fall back to
3.4.1
because of customization of the Client version (it was set tonot-provided
instead of a version) silently becuase of the code that is changed here. After this change, that should fail visibly instead and hopefully surface these cases better.Also introduces
PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION
to override the version that the Data Proxy should choose, no matter what Client version is used. This will make the Data Proxy (more) usable withdev
versions of Prisma Client.