Repository navigation
TML-3900: The error for consent nobody gave says so in plain words on its first line - #31179
wmadden-electric wants to merge 10 commits into
Conversation
…efusals in plain words Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
… refusal now leads with the question itself (engine 0.10.1) Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…ch the refusal text of engine 0.10.1 Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mariadb
@prisma/orm-mongo
@prisma/orm-mysql
@prisma/orm-postgres
@prisma/orm-postgres-contrib
@prisma/orm-sqlite
@prisma/orm-target-mariadb
@prisma/orm-target-mongo
@prisma/orm-target-mysql
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
size-limit report 📦
|
… refusal now starts "This command requires explicit consent" and keeps the question in why (engine 0.10.2) Moves @prisma/cli-engine to 0.10.2, which keeps the 0.10.0 refusal and changes only its first line. The prompt adapter and the journeys go back to reading the question from why, and the pending upgrade note now describes the change from 0.10.0 to 0.10.2. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…10.1 Drops the entry about a several-line first line, keeps the manual QA problems that still hold with engine 0.10.2, and quotes their 0.10.2 text. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…ion about GeoPoint.lat or Address.zip, and the --yes refusal checks its first line The old first line named the subject, so it also proved there was one question. The fixed sentence of engine 0.10.2 proves neither, so the journeys now read meta.unanswered. The db update --yes step now asserts the --yes sentence, which no test checked. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…art of the old first line, and looks in snapshot, TSX and JSX files too Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
… suggest a rename but acts only on flags or answers, and links "statement" to "explicit consent" Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
…, and the three that break a spec requirement say which Parts already covered by an existing entry are added to that entry instead: the next actions per flag, SQLite label quoting, the DDL preview, and the unused-flag advice. Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
A user removes a field from a model and runs
prisma migration planin a script, where nobody can answer a prompt. The plan would drop a column that holds data, so the command stops.Before:
After:
Only the first line changes. Under
--yesit readsThis command requires explicit consent, and --yes does not give it.The sentence is the same for one unanswered question and for several.The change
The first line is written by
@prisma/cli-engine, not by this repository. Engine 0.10.2 (prisma/prisma-cli#397) rewords it. This pull request moves every package from engine 0.10.0 to 0.10.2 and updates what depends on the text:package.jsonpins and the lockfile.--yessentence is asserted too. No source file changes.upgrade-instructions/pending/cli-engine-0-10-2/. It tells anyone who matched the old first line to check the error'scodeandmeta.unansweredinstead.What does not change
The
whyline, the next-step lines,meta, the error code and the exit code. Scripts that read those are unaffected.Also in this pull request
Project documents for the migration statements project, with no effect on behaviour:
projects/migration-statements/spec.mdstates its purpose and its rule about these errors in plainer words.projects/migration-statements/deferred.mdrecords the problems found by manual QA of these errors, for later work. Three of them break a requirement of the spec, and each entry says which. All three behave the same onmain.For reviewers
Tests that named the subject in the first line (
"Bug", "Task") can no longer do so, because the line is now a fixed sentence. Each such assertion checks the subjects throughmeta.unanswered.Engine 0.10.1 was published with a different wording that was withdrawn. Nothing uses it, and the upgrade note's detection also catches a project pinned to it.
Fixes TML-3900.
Agent: hammurabi-19