Clarify ClassDataSource constructor requirements - #6716
Conversation
commented
Sep 3, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Greptile SummaryThe PR clarifies the construction rules for
Confidence Score: 5/5The documentation-only PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| README.md | Clarifies that constructor parameters are supported on test classes while data-source types require public parameterless constructors. |
| docs/docs/writing-tests/class-data-source.md | Documents the public-constructor requirement and adds a nested property-injection example with lifecycle guidance. |
| docs/docs/writing-tests/nested-data-sources.md | Explicitly directs nested data-source dependencies to property injection and accurately states the public-constructor requirement. |
Reviews (2): Last reviewed commit: "docs: require public ClassDataSource con..." | Re-trigger Greptile
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
Included review availability: Your plan provides up to 8 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe documentation states that ChangesClassDataSource documentation
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This documentation update clarifies supported dependency injection patterns for ClassDataSource types, with no identified merge-readiness risk. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation 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 files. (3 skipped: 3 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commented
Sep 3, 2026
Code reviewReviewed the diff (README.md, Technical accuracy check: I verified the core claim against the implementation rather than taking it on faith. No issues found. The added example is clear, the distinction between test-class constructor injection (supported) and data-source constructor injection (unsupported) is well explained, and no CLAUDE.md rules are implicated by a docs-only change. Nothing to flag architecturally — this is straightforward prose/example documentation, not a case where alternative designs apply. 🤖 Generated with automated code review |
Summary
ClassDataSource<T>types.Validation
yarn buildfromdocsRefs #6694
Summary by CodeRabbit
ClassDataSource<T>types require a public parameterless constructor.