feat: retrieve deviation by id rpc #234
Merged
+925
−61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to retrieve deviations by their ID in the
diode
project. The changes span multiple files, including protocol buffer definitions, SQL queries, and Go code for the repository and generated protobuf files. The most important changes include adding new request and response message types, updating the service definition, and implementing the corresponding repository method.New feature: Retrieve deviation by ID
diode-proto/diode/v1/reconciler.proto
: AddedRetrieveDeviationByIDRequest
andRetrieveDeviationByIDResponse
message types. Updated theReconcilerService
with a new RPC methodRetrieveDeviationByID
. [1] [2]diode-server/dbstore/postgres/queries/deviations.sql
: Added a new SQL queryRetrieveDeviationByID
to select deviations by their external ID.diode-server/dbstore/postgres/repository.go
: Implemented theRetrieveDeviationByID
method in the repository to fetch and process the deviation by its external ID.diode-server/gen/dbstore/postgres/deviations.sql.go
: Generated code for the newRetrieveDeviationByID
SQL query.diode-server/gen/diode/v1/reconcilerpb/reconciler.pb.go
: Generated protobuf code for the newRetrieveDeviationByIDRequest
andRetrieveDeviationByIDResponse
message types. [1] [2] [3] [4] [5] [6] [7] [8]Minor updates
protoc-gen-go
versions in generated files to v1.36.3. [1] [2]