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(deps): update engines to v2.26.0-13.a9966aa784861dee7e6b2a90950874cbaf7b4984 #7796
Conversation
Result of prisma/prisma-engines#1945 Integration will be done with #7620 |
fe88cfd
to
771261f
Compare
771261f
to
3710f88
Compare
3710f88
to
787f43f
Compare
@@ -3765,7 +3765,7 @@ Object { | |||
"authorId", | |||
], | |||
"relationName": "PostToUser", | |||
"relationOnDelete": "NONE", | |||
"relationOnDelete": "Cascade", |
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.
This should be related to prisma/prisma-engines#1947 (comment)
Not sure about the other changes, could you check @williamluke4 @millsp ?
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.
We need to double check why the relationOnDelete
changed even when the preview feature is not enabled. This will affect users potentially now.
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.
@pimeys gave me context that this is not used in Prisma anywhere.
I just checked the community generators, none use relationOnDelete
in code as well.
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.
I think only Amplication is using it in code https://github.com/amplication/prisma-schema-dsl/blob/d7126f3ea580090bb287be34258fc13b00db6149/src/builders.ts#L169-L198
0: sql_migration_connector::flavour::postgres::create_database | ||
with self=PostgresFlavour { url: \\"<REDACTED>\\" } | ||
at migration-engine/connectors/sql-migration-connector/src/flavour/postgres.rs:117" | ||
Please make sure your database server is running at \`doesnotexist\`:\`5432\`." |
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.
These 2 changes are expected ✅
exports[`getDMMF chinook introspected schema 1`] = `842348`; | ||
|
||
exports[`getDMMF chinook introspected schema connectOrCreate 1`] = `842601`; | ||
exports[`getDMMF chinook introspected schema connectOrCreate 1`] = `842348`; |
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.
What's this?
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.
The size/length of a JSON stringified dmmf...
Not super useful like this to know what changed...!
prisma/src/packages/sdk/src/__tests__/engineCommands.test.ts
Lines 177 to 199 in 2226db9
test('chinook introspected schema', async () => { | |
const file = fs.readFileSync( | |
path.join(__dirname, '../../fixtures/chinook.prisma'), | |
'utf-8', | |
) | |
const dmmf = await getDMMF({ | |
datamodel: file, | |
}) | |
const str = JSON.stringify(dmmf) | |
expect(str.length).toMatchSnapshot() | |
}) | |
test('chinook introspected schema connectOrCreate', async () => { | |
const file = fs.readFileSync( | |
path.join(__dirname, '../../fixtures/chinook.prisma'), | |
'utf-8', | |
) | |
const dmmf = await getDMMF({ | |
datamodel: file, | |
}) | |
const str = JSON.stringify(dmmf) | |
expect(str.length).toMatchSnapshot() | |
}) |
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.
The length of the stringify dmmf 😕
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.
You can give toMatchSnapshot()
a string as single param, then it uses that to name the snapshot. But 🤷
Object { | ||
"inputTypes": Array [ | ||
Object { | ||
"isList": false, | ||
"location": "scalar", | ||
"type": "Int", | ||
}, | ||
Object { | ||
"isList": false, | ||
"location": "inputObjectTypes", | ||
"namespace": "prisma", | ||
"type": "IntFieldUpdateOperationsInput", | ||
}, | ||
], | ||
"isNullable": false, | ||
"isRequired": false, | ||
"name": "id", | ||
}, |
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.
What is causing this?
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.
We are currently investigating
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.
These are expected changes as this test does not have a datasource. Meaning that these operations are not supported. cc @dpetrick
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.
Also, the gh ui is a bit screwed up here. Probably due to the large size of the file. Basically, the snapshot indicated is incorrect. It is not getDMMF model with autoincrement should fail if mysql
but actually getDMMF simple model
src/packages/sdk/src/__tests__/__snapshots__/engineCommands.test.ts.snap
Show resolved
Hide resolved
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.
Looks good generally, the removals from the snapshots make me nervous though (see comments).
7ac8445
to
290688c
Compare
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.
We want to make the snapshot file smaller in a separate PR because it got over +30k lines 😓
#7829
…4cbaf7b4984 (prisma#7796) Co-authored-by: William Luke <william@ordino.ai> Co-authored-by: Joël Galeran <galeran@prisma.io>
This PR contains the following updates:
2.26.0-7.473f96e8dcb29039719059f8e9ac32c14a63a9f6
->2.26.0-13.a9966aa784861dee7e6b2a90950874cbaf7b4984
2.26.0-7.473f96e8dcb29039719059f8e9ac32c14a63a9f6
->2.26.0-13.a9966aa784861dee7e6b2a90950874cbaf7b4984
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by WhiteSource Renovate. View repository job log here.