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(qe): NoAction
should be alias of Restrict
when relationMode = "prisma"
#3276
fix(qe): NoAction
should be alias of Restrict
when relationMode = "prisma"
#3276
Conversation
We see tests using |
Why are those supposed to fail? Did the expectations change with the rename? |
Currently, MongoDB (which also means |
Ok, so not "expected" as in the sense of "this is the correct thing" but "expected that this fails now until I update the tests". |
Correct |
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.
lgtm, there's only the mongo QE tests question left 👍
NoAction
should be alias of Restrict
when relationMode = "prisma"
NoAction
should be alias of Restrict
when relationMode = "prisma"
9e7c053
to
3c03d27
Compare
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_delete/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
...engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/no_action.rs
Outdated
Show resolved
Hide resolved
Note: Tests are currently succeeding, but they should be changed. |
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.
Great job, thanks for taking the time to fix the tests 💯
…longer support it
The CI was still failing because |
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.
Tests are actually failing here, the last commit just wrongly makes it looks like things are passing.
query-engine/connector-test-kit-rs/query-engine-tests/tests/new/regressions/prisma_15581.rs
Outdated
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.
LGTM!
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.
…hen-relation-mode-is-prisma
With this PR:
relationMode = "prisma"
,NoAction
does the same asRestrict
, rather than not doing anything at all.Postgres
andSqlite
are excluded from tests that use bothrelationMode = "prisma"
and theNoAction
referential action, asNoAction
is no longer supported for those databases as of feat(relation-mode): remove emulatedNoAction
forpostgres
andsqlite
#3274.Contributes to prisma/prisma#15655.