From 73f857d1b2673350791258f3275b6e030e1cf89e Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Sat, 14 Aug 2021 01:10:32 +0200
Subject: [PATCH] WIP: consolidation

---
 buf.yaml                                |  1 -
 proto/caosdb/entity/v1alpha1/main.proto | 23 ++---------------------
 2 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/buf.yaml b/buf.yaml
index c186e1e..57d0c99 100644
--- a/buf.yaml
+++ b/buf.yaml
@@ -8,7 +8,6 @@ lint:
     - DEFAULT
     - COMMENTS
     - OTHER
-    - UNARY_RPC
   except:
   ignore:
 breaking:
diff --git a/proto/caosdb/entity/v1alpha1/main.proto b/proto/caosdb/entity/v1alpha1/main.proto
index 7406dee..435b4f0 100644
--- a/proto/caosdb/entity/v1alpha1/main.proto
+++ b/proto/caosdb/entity/v1alpha1/main.proto
@@ -552,6 +552,8 @@ message EntityResponse {
 message IdResponse {
   // The entity id.
   string id = 1;
+  // The entity version.
+  Version version = 5;
   // Errors for this entity which occurred during the current transaction. The
   // presence of errors indicates that a transaction was not successful and the
   // errors describe why this is the case.
@@ -742,27 +744,6 @@ message MultiTransactionResponse {
   repeated Message transaction_infos = 4;
 }
 
-// Wraps multiple sub-transaction requests of mixed types.
-message MultiTransactionRequest {
-  // The actual payload.
-  repeated TransactionRequest requests = 1;
-}
-
-// A response containing only the id (of a deleted, inserted, or updated
-// entity) and the usual trias of entity messages.
-message IdResponse {
-  // The entity id.
-  string id = 1;
-  // The entity version.
-  Version version = 5;
-  // Entity errors.
-  repeated Message entity_errors = 2;
-  // Entity warnings.
-  repeated Message entity_warnings = 3;
-  // Entity info messages.
-  repeated Message entity_infos = 4;
-}
-
 // Entity Transaction Service
 service EntityTransactionService {
   // Issue multiple mixed requests
-- 
GitLab