Skip to content

Query scopes: tests and documentation#1920

Merged
bpamiri merged 2 commits intodevelopfrom
peter/query-scopes-1907
Mar 8, 2026
Merged

Query scopes: tests and documentation#1920
bpamiri merged 2 commits intodevelopfrom
peter/query-scopes-1907

Conversation

@bpamiri
Copy link
Collaborator

@bpamiri bpamiri commented Mar 7, 2026

Summary

Adds comprehensive tests and framework documentation for query scopes (scope() in model config, ScopeChain.cfc proxy).

Related Issue

Closes #1907

Type of Change

  • New feature

Feature Completeness Checklist

  • Tests -- 12 unit tests covering static/dynamic scopes, chaining, terminal methods, WHERE merging
  • Framework Docs -- New page in docs/src/database-interaction-through-models/query-scopes.md with SUMMARY.md entry
  • AI Reference Docs -- Already exists at .ai/wheels/models/scopes.md
  • CLAUDE.md -- Already documents scopes in Model Quick Reference
  • CHANGELOG.md -- Entry under [Unreleased] section
  • Test runner passes -- All 12 new tests pass, 0 failures, 0 errors

Test Plan

Run query scopes tests:

/wheels/tests/core?package=model.read.queryScopes&format=json

Expected: 12 tests, 0 failures, 0 errors.

🤖 Generated with Claude Code

Replace RocketUnit tests with TestBox BDD specs for scope(), ScopeChain,
static/dynamic scopes, and chaining. Add shared test infrastructure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bpamiri bpamiri force-pushed the peter/query-scopes-1907 branch from 377ca1f to e848c47 Compare March 7, 2026 20:18
@bpamiri
Copy link
Collaborator Author

bpamiri commented Mar 8, 2026

@claude can you resolve the merge conflict

@bpamiri bpamiri merged commit db0fcd9 into develop Mar 8, 2026
1 of 45 checks passed
@bpamiri bpamiri deleted the peter/query-scopes-1907 branch March 8, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query scopes

1 participant