Skip to content

docs: close out the createAll conflict-skip project - #30371

Merged
wmadden-electric merged 1 commit into
mainfrom
createall-conflict-skip-closeout
Sep 22, 2026
Merged

wmadden-electric merged 1 commit into
mainfrom
createall-conflict-skip-closeout

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Decision

Delete projects/createall-conflict-skip/ now that the feature it shaped has merged (#30365), and keep the one design rule from it that outlives the project.

What moves

The design notes recorded why conflictOn is optional on createAll(rows, { onConflict: 'skip' }) even though the option works without it: Postgres and SQLite can skip on any unique constraint, but SQL Server cannot skip without a named key. Two capability keys carry that difference, and a future SQL Server adapter reports only the first, so conflictOn becomes required there with no API change. That is a worked example of capability gating, so it is now a row in the reference-implementations table of docs/architecture docs/patterns/capability-gating.md.

What is deleted

The spec, plan, two slice specs, and design notes. Everything else they described is already on main: the capability keys in docs/reference/capabilities.md, the option in the sql-orm-client README and JSDoc, the scorecard row, the port checklist ticks, and the upgrade fragment. No file outside the folder referenced it.

No ADR. The change adds a feature under an existing pattern rather than introducing a new subsystem or convention.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added a reference implementation entry documenting conflict skipping when using createAll.
    • Clarified the related capability options and the optional conflictOn argument.

The feature shipped in #30365. The one durable design rule, that
conflictOn is optional today so a future target such as SQL Server can
require it through sql.insertOnConflictWithoutTarget, moves into the
capability-gating pattern as a reference implementation. The transient
spec, plan, and design notes are deleted per the projects convention.

Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner September 22, 2026 09:11
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: prisma/orm/.coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: b0d4d1b4-49e4-4236-9d71-8875450ad1cf

📥 Commits

Reviewing files that changed from the base of the PR and between dd86723 and 7aaead3.

⛔ Files ignored due to path filters (5)
  • projects/createall-conflict-skip/design-notes.md is excluded by !projects/**
  • projects/createall-conflict-skip/plan.md is excluded by !projects/**
  • projects/createall-conflict-skip/slices/01-create-and-count-affected-rows/spec.md is excluded by !projects/**
  • projects/createall-conflict-skip/slices/02-create-all-on-conflict-skip/spec.md is excluded by !projects/**
  • projects/createall-conflict-skip/spec.md is excluded by !projects/**
📒 Files selected for processing (1)
  • docs/architecture docs/patterns/capability-gating.md

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The reference implementations table now documents conflict skipping for createAll, including its implementation reference, capability keys, and optional conflictOn argument.

Changes

Capability gating documentation

Layer / File(s) Summary
Document createAll conflict skipping
docs/architecture docs/patterns/capability-gating.md
Adds a reference implementation row for conflict skipping on createAll. The row documents assertInsertConflictSkipCapability, sql.insertOnConflictSkip, sql.insertOnConflictWithoutTarget, and the optional conflictOn argument.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested reviewers: aqrln

Merge Risk: ⚪ Minimal · up to 7aaea

This documents existing createAll conflict-skipping behavior and capability requirements without changing runtime behavior; it is ready to merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: closing the completed createAll conflict-skip project through documentation updates and project cleanup.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@wmadden-electric
wmadden-electric added this pull request to the merge queue Sep 22, 2026
Merged via the queue into main with commit 496f7ef Sep 22, 2026
22 checks passed
@wmadden-electric
wmadden-electric deleted the createall-conflict-skip-closeout branch September 22, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants