Feature/strict mode search max batchsize#8469
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughAdds an optional search_max_batchsize field to strict-mode across layers: protobuf (collections.proto), gRPC structs, OpenAPI schema, segment types, and storage/API conversions. Propagates the field through StrictModeConfig ↔ StrictModeConfigOutput conversions and hashing. Enforces the new limit in batch search verification paths (SearchRequestBatch::check_strict_mode and various actix endpoints / internal verification calls), extends strict-mode diff application to include the field, and adds unit/integration tests validating search and upsert batch-size enforcement. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
hey @agourlay I had implemented the feature with test cases, hope to hear the feedback from you regarding this feature. |
|
Check the CI error, you need to regenerate the openapi spec You just run and commit the change for |
|
hi @agourlay committed the change as per you asked. Please have a look at it. |
agourlay
left a comment
There was a problem hiding this comment.
LGTM, thanks for the contribution!
16e66f7 to
17a9832
Compare
agourlay
left a comment
There was a problem hiding this comment.
I took the liberty to rebase the PR and realized that I don't think the current implementation is perfect.
We have check_strict_mode_batch to handle all batched search APIs.
e.g.:
- query_batch
- recommend_batch
- discovery_batch
- search_batch
This PR only tackles search_batch by making it different from all other batched APIs.
I think a better approach is the improve check_strict_mode_batch so it checks the count of operations for all APIs.
|
@JojiiOfficial please review with my extra commit :) |
* feat: add search_max_batchsize to strict mode config * added test case for search_max_batchsize * Changes for fixing CI issue dure openapi * Modify check_strict_mode_batch --------- Co-authored-by: Arnaud Gourlay <[email protected]>
* feat: add search_max_batchsize to strict mode config * added test case for search_max_batchsize * Changes for fixing CI issue dure openapi * Modify check_strict_mode_batch --------- Co-authored-by: Arnaud Gourlay <[email protected]>
Added search_max_batchsize (based on issue #8392 )like we have upset_max_batchsize .
It limits the search during the strict mode if enabled. Test cases are added and code is formatted based on reference code.
if further changes are required please let me know