Repository navigation
TML-3722: The docs site error reference updates again: placeholders stay inside code, and check:error-reference refuses text the site cannot compile - #30848
Conversation
…d check:error-reference refuses text the docs site cannot compile Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
@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-mongo
@prisma/orm-postgres
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
size-limit report 📦
|
…eck reads the Markdown source, not the generated .mdx page (prisma#30854) ```console $ node prisma-src/scripts/list-error-codes.mjs --root prisma-src --verify apps/docs/content/docs/orm/reference/error-reference.mdx error-reference has text the docs site cannot compile as MDX; put each tag or brace inside a code span: line 9: {/* Generated by scripts/generate-error-reference.mjs from ``` prisma#30848 made `--verify` refuse tags and braces outside code. prisma/web's `sync-error-reference-docs.yml` also runs `--verify`, on the page it generates: `error-reference.mdx`, which is already MDX and opens with an MDX comment `{/* ... */}`. So the sync, which prisma#30848 unblocked at the generate step, now fails at the verify step. `--verify` now applies the MDX check only to a file that is not `.mdx`: the canonical `docs/reference/error-reference.md`, where it belongs. The code check is unchanged for both. A new test verifies an `.mdx` page with an MDX comment; it failed before this change. Run locally against prisma/web main: the generator accepts this repo's `error-reference.md`, and `--verify` on the generated `.mdx` lists all 393 known codes. Closes the rest of [TML-3722](https://linear.app/prisma-company/issue/TML-3722). Agent: rochester-20 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Verification now accepts MDX pages with generated-file comments while continuing to check other page formats for unsafe lines. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
`8.0.0-rc.20` → `8.0.0-rc.21`. See [versioning](https://github.com/prisma/orm/blob/main/docs/oss/versioning.md). **Merging this PR ships the release.** The push to `main` carries the new root version. The `Publish to npm` workflow then publishes `8.0.0-rc.21` under the `latest` dist-tag and creates a pre-release GitHub Release. ## What to review - **Release notes:** [`docs/releases/v8.0.0-rc.21.md`](https://github.com/prisma/orm/blob/release/8.0.0-rc.21/docs/releases/v8.0.0-rc.21.md), mirrored in `CHANGELOG.md`. Eleven breaking changes: client members reject instead of throwing, the enum value question, MongoDB names and options, one set of MongoDB contract rules, `close()` with your own pool, `markerLocation`, the renamed PostgreSQL date and time types, ISO 8601 text date and time values with `DateStyle=ISO` required, and a Prisma 7 `@default(now())` filled on create (from prisma#30834), the control API checking a database's marker against the migration graph itself (from prisma#30866), and field presets removed in favour of type constructors and type aliases (from prisma#30845). prisma#30834, prisma#30866 and prisma#30845 merged after this branch was cut; `main` is merged in. It also covers the MySQL preview packages and the corrected rc.19 and rc.20 upgrade guides (prisma#30855). The notes leave out prisma#30848, prisma#30854 (docs-sync tooling) and prisma#30852 (docs only). - **Upgrade guides:** `skills/prisma-8/upgrading/{app,extension}/upgrades/8.0.0-rc.20-to-8.0.0-rc.21/instructions.md`, assembled from the fourteen pending fragments. The app guide has 31 changes plus the Supabase restamp, and the extension guide has 29. None was dropped. The originals are archived unchanged under `upgrade-instructions/releases/8.0.0-rc.20-to-8.0.0-rc.21/sources/`. While assembling, I fixed a wrong import path (`@prisma/orm-target-mongo/pack` does not exist), a detection that matched only code that was already upgraded, and a miscount of optional fields. - **Version bump:** every `package.json`, `pnpm-lock.yaml` (workspace specifiers only), the skill's `library_version`, and the Supabase contract version stamps. ## Checks run locally - `check:upgrade-coverage --mode publish --prev v8.0.0-rc.20 --head HEAD`: pass - `check:release-notes --mode pr`: pass - `lint:skills`: pass - `test/upgrade-instructions`: 86 files, 1650 tests pass The docs PR in prisma/web follows once this is published. Agent: rochester-20 --------- Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
The public error reference on docs.prisma.io has not updated since #30832. That PR wrote
collection "<collection>"in plain text indocs/reference/error-reference.md, and prisma/web'ssync-error-reference-docs.ymlcompiles the page as MDX, so its generator refuses any tag or brace outside code. Every daily sync since has failed, and the live page lacksCONTRACT.TYPES_KEY_REMOVED,PSL_VALUE_REFUSEDandCLI.COMMAND_MOVED.What changes
generate-error-reference.mjs --target orm --source docs/reference/error-reference.md).pnpm check:error-referencerefuses the same text, so this repo's CI catches it instead of the docs site's nightly job.mdxUnsafeLinesinscripts/list-error-codes.mjsuses the generator's own code-span pattern and rule ([{}]|<[A-Za-z/]outside code), and the check names each offending line. A new test inscripts/list-error-codes.test.mjscovers a placeholder and a brace outside code, and code spans and fences that stay allowed; it failed before the change.After this merges, the next sync run (daily, or
sync-error-reference-docs.ymlby hand) updates the live page.Closes TML-3722.
Agent: rochester-20
Summary by CodeRabbit
Documentation
PSL_PRESET_ON_VARIANT_FIELDmessage are displayed in backticks for consistent formatting.Chores