Repository navigation
feat(psl): expose inspectable attribute combinators - #30247
Conversation
Close the attribute-spec combinator type surface into named, inspectable variants while preserving parse behavior and literal output inference. Add regression tests for combinator metadata, optional/default typing, context-specific refs, and rejecting specs. Update SQL enum-member rejection to use the explicit rejecting variant and document the ADR 231 amendment. Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe parser now uses specialized, discriminated argument types. Combinators expose inspectable metadata and preserve output and context information. Parser, SQL, and Mongo tests validate the new type contracts and metadata shapes. ChangesAttribute specification inspection
Estimated code review effort: 4 (Complex) | ~45 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change adds inspectable, typed attribute metadata without changing accepted PSL syntax or runtime behavior. The covered checks pass, so no merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
@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: |
Signed-off-by: Steven McClankerton <[email protected]>
size-limit report 📦
|
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
This reverts commit fee255f.
## Linked issue n/a — small project closeout; Linear prefix explicitly waived. Delivery merged in [#30247](#30247), [#30249](#30249), and [#30266](#30266). ## Summary Remove the completed project's two tracked QA artifacts and retain one final-retro lesson in `drive/retro/README.md`: editor acceptance must verify applied edits, caret placement, and visible follow-up suggestions in the rendered editor, separately from invocation and transport checks. The approved classification marked all 39 project files transient (two tracked, 37 local/ignored), with zero long-lived migrations. The project directory is absent and the tracked external-reference scan returns zero matches. The final retro was completed before cleanup. ## Testing performed - Project DoD audit: all three delivery PRs merged; each final head passed 25 CI checks, with no unresolved review threads. - Documentation lint and normal commit hooks passed during closeout preparation; independent review confirmed DCO sign-off and `git diff --check`. - Documentation-only change: no feature builds or tests rerun. Existing cached local diagnostics concern unchanged parser/Mongo files, not this diff. ## Skill update n/a — internal only. The durable editor-acceptance lesson lives in the existing Drive retro context. ## Checklist - [x] All commits are signed off (`git commit -s`) per the DCO. - [x] I read CONTRIBUTING.md and the change is scoped to one logical concern. - [x] Tests: n/a — documentation-only, with no behavioural delta. - [ ] Linear-prefixed title: explicitly waived for this closeout. - [x] The Skill update section is filled in. ## Notes for the reviewer Only the retro entry and two tracked deletions are included. No source or ADR changes, archive, or restored README narration; the one-line language-server README remains unchanged. Unrelated playground README and calibration edits remain local and excluded. This PR proposes the cleanup; the cleanup itself is not yet merged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Added the first entry to the recurring-pattern catalogue, documenting acceptance checks for editor projects. - Clarified that validation should cover the rendered editor, applied edits, caret position, visible follow-up suggestions, and required client opt-ins. - Separated invocation checks from acceptance verification. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Steven McClankerton <[email protected]> Co-authored-by: Steven McClankerton <[email protected]>
Expose inspectable attribute combinators so tooling can consume the same grammar used by PSL interpretation, without maintaining a second descriptor tree.
Changes
Why
The combinators already describe accepted grammar. Exposing that structure directly keeps interpretation and future editor consumers aligned without parsing labels or hardcoding family-specific signatures.
Scope: first of three attribute-autocomplete slices. No language-server completion behavior, accepted PSL syntax, contract emission, or runtime changes.
Verification
origin/main:pnpm build(85 tasks),pnpm typecheck(166 tasks), andpnpm lint:depspassed. Parser/SQL/Mongo lint passed; parser lint's 31 informational findings do not fail the command (verified exit 0).Manual QA: N/A for editor behavior: this slice changes inspectable grammar metadata, not user-observable PSL behavior. Actual contribution-consumer metadata is covered by family factory tests.
Summary by CodeRabbit