feat(indexing): support definition storage#414
Conversation
yordis
commented
Jun 30, 2026
- Keep index lifecycle state behind a focused core boundary before transport wiring is introduced.
- Preserve idempotent create and list semantics where later lifecycle code can depend on them.
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview Create is idempotent when the same or equivalent Adds Coverage includes store behavior, name validation, and definition equality tests. Reviewed by Cursor Bugbot for commit fadc1be. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning Review limit reached
Next review available in: 52 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughAdds ChangesIndex Definition Store
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f662b88. Configure here.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/EventStore.Core/Services/Storage/Indexing/IIndexDefinitionStore.cs`:
- Line 12: The IIndexDefinitionStore.Read contract currently claims a non-null
StoredIndexDefinition even though the implemented behavior is null when the
index is missing. Update the Read signature in IIndexDefinitionStore to return a
nullable StoredIndexDefinition, and make sure any implementations and callers of
Read are aligned with that nullable contract so missing definitions are handled
safely instead of being treated as always present.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4275a07b-7891-4f0c-923f-5c2e1c2f1a69
📒 Files selected for processing (5)
src/EventStore.Core.XUnit.Tests/Services/Storage/Indexing/InMemoryIndexDefinitionStoreTests.cssrc/EventStore.Core.XUnit.Tests/Services/Storage/Indexing/IndexNameTests.cssrc/EventStore.Core/Services/Storage/Indexing/IIndexDefinitionStore.cssrc/EventStore.Core/Services/Storage/Indexing/InMemoryIndexDefinitionStore.cssrc/EventStore.Core/Services/Storage/Indexing/IndexName.cs
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
418a5c7 to
fadc1be
Compare
