-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add read_consistency
parameter to the APIs (#1371)
#1407
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@generall I need a bit of help here.
OMG, the PR grew to 500 lines, just as |
For some reason E.g.:
I'll figure it out tomorrow. Other than this issue, I only need to run some local tests in clustered mode, and it's done. ack @generall |
d3dd470
to
885a017
Compare
@generall Done. Fixed the issue with deserialization, fixed the bug with payload comparison, rebased on latest |
TODO: - Add documentation
Who would have known there's `generate_grpc_docs.sh`!? 🥲🙈🤦♀️
487c83f
to
0c6261f
Compare
Apply the same fix to `ScoredPoint`
a1afdcb
to
66da667
Compare
Gotta love those negative conditions, or how a missed `!` can ruin your day... 🤦♀️
@generall A single character typo (that I've introduced myself, of course) caused The Bug. Should have found it sooner, as everything was hinting me in the right direction... but, well, most bugs seem obvious in retrospect. :/ |
@generall Can you, please, take a final look at the PR? |
* WIP: Add `read_consistency` parameter to the APIs * WIP: Add `read_consistency` parameter to the APIs TODO: - Add documentation * `cargo fmt` * Add gRPC documentation * Add OpenAPI documentation * Cleanup * fixup! Add OpenAPI documentation * fixup! Add gRPC documentation Who would have known there's `generate_grpc_docs.sh`!? 🥲🙈🤦♀️ * generate openapi * Fix `read_consistency` query parameter deserialization * Further improve `read_consistency` query parameter deserialization * `cargo clippy` * Fix `Payload` comparison during read operation result resolving * Fix grammar * rename `read_consistency` -> `consistency` and add integration test * use majority for test * fix tests * Fix tests * fixup! Fix tests Apply the same fix to `ScoredPoint` * Remove an `unwrap` * fixup! Fix tests Gotta love those negative conditions, or how a missed `!` can ruin your day... 🤦♀️ * Make internal API calls strictly "local-shard only" * Implement a few basic traits for `ResolverRecord` * fixup! Implement a few basic traits for `ResolverRecord` * Revert "Make internal API calls strictly "local-shard only"" This reverts commit 25378e6. * Fix `Record::payload` and `ScoredPoint::payload` serialization * Revert "Fix `Record::payload` and `ScoredPoint::payload` serialization" This reverts commit b566bea. * Fix `Record::payload` and `ScoredPoint::payload` visibility * fixup! Fix `Record::payload` and `ScoredPoint::payload` visibility Remove `todo!()` * refactoring --------- Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
Add
read_consistency
parameter to the HTTP and gRPC APIs.TODO: