From 93edc4ebb07f946a00ad20cb46c0aa1b619f2d12 Mon Sep 17 00:00:00 2001 From: "plekhov.a" Date: Tue, 29 Oct 2024 05:24:57 +0300 Subject: [PATCH 1/2] DDCORE-9138 added IsAuthorFullyNotified to ResolutionRouteAssignment contracts --- proto/Events/DiadocMessage-PostApi.proto | 1 + src/Proto/Events/DiadocMessage-PostApi.proto.cs | 7 +++++++ src/Proto/Events/DiadocMessage.cs | 1 + 3 files changed, 9 insertions(+) diff --git a/proto/Events/DiadocMessage-PostApi.proto b/proto/Events/DiadocMessage-PostApi.proto index 0bda68a2..5b21a0aa 100644 --- a/proto/Events/DiadocMessage-PostApi.proto +++ b/proto/Events/DiadocMessage-PostApi.proto @@ -344,6 +344,7 @@ message ResolutionRouteAssignment required string RouteId = 2; optional string Comment = 3; repeated string Labels = 4; + required bool IsAuthorFullyNotified = 5 [default = false]; } message ResolutionRequestCancellationAttachment { diff --git a/src/Proto/Events/DiadocMessage-PostApi.proto.cs b/src/Proto/Events/DiadocMessage-PostApi.proto.cs index bb09529f..a5b639a8 100644 --- a/src/Proto/Events/DiadocMessage-PostApi.proto.cs +++ b/src/Proto/Events/DiadocMessage-PostApi.proto.cs @@ -2148,6 +2148,13 @@ public string Comment get { return _Labels; } } + private bool _IsAuthorFullyNotified; + [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"IsAuthorFullyNotified", DataFormat = global::ProtoBuf.DataFormat.Default)] + public bool IsAuthorFullyNotified + { + get { return _IsAuthorFullyNotified; } + set { _IsAuthorFullyNotified = value; } + } private global::ProtoBuf.IExtension extensionObject; global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } diff --git a/src/Proto/Events/DiadocMessage.cs b/src/Proto/Events/DiadocMessage.cs index ec9e88bd..a83f84d5 100644 --- a/src/Proto/Events/DiadocMessage.cs +++ b/src/Proto/Events/DiadocMessage.cs @@ -1755,6 +1755,7 @@ public interface IResolutionRouteAssignment string RouteId { get; set; } string Comment { get; set; } ReadonlyList LabelsList { get; } + bool IsAuthorFullyNotified { get; } void AddLabel(string label); } From 03a8f16169316c71d3cebc36e5c3b85976037b88 Mon Sep 17 00:00:00 2001 From: "plekhov.a" Date: Wed, 30 Oct 2024 22:45:40 +0300 Subject: [PATCH 2/2] DDCORE-9138 optional IsAuthorFullyNotified in contracts --- proto/Events/DiadocMessage-PostApi.proto | 2 +- src/Proto/Events/DiadocMessage-PostApi.proto.cs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/proto/Events/DiadocMessage-PostApi.proto b/proto/Events/DiadocMessage-PostApi.proto index 5b21a0aa..136d841d 100644 --- a/proto/Events/DiadocMessage-PostApi.proto +++ b/proto/Events/DiadocMessage-PostApi.proto @@ -344,7 +344,7 @@ message ResolutionRouteAssignment required string RouteId = 2; optional string Comment = 3; repeated string Labels = 4; - required bool IsAuthorFullyNotified = 5 [default = false]; + optional bool IsAuthorFullyNotified = 5 [default = false]; } message ResolutionRequestCancellationAttachment { diff --git a/src/Proto/Events/DiadocMessage-PostApi.proto.cs b/src/Proto/Events/DiadocMessage-PostApi.proto.cs index a5b639a8..3cf1e2b6 100644 --- a/src/Proto/Events/DiadocMessage-PostApi.proto.cs +++ b/src/Proto/Events/DiadocMessage-PostApi.proto.cs @@ -2148,8 +2148,10 @@ public string Comment get { return _Labels; } } - private bool _IsAuthorFullyNotified; - [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"IsAuthorFullyNotified", DataFormat = global::ProtoBuf.DataFormat.Default)] + + private bool _IsAuthorFullyNotified = (bool)false; + [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"IsAuthorFullyNotified", DataFormat = global::ProtoBuf.DataFormat.Default)] + [global::System.ComponentModel.DefaultValue((bool)false)] public bool IsAuthorFullyNotified { get { return _IsAuthorFullyNotified; }