fix(grpc-data): H1 port outcome Status passes GoodNoData through (review 1)
This commit is contained in:
@@ -113,8 +113,19 @@ internal sealed class HistoryReadNodeOutcome
|
||||
/// <summary>The per-node result, or null when untouched.</summary>
|
||||
public SdkHistoryReadResult? Result { get; set; }
|
||||
|
||||
/// <summary>The effective operation status a non-SDK caller (H2) reports.</summary>
|
||||
public StatusCode Status => Error?.StatusCode ?? StatusCodes.BadHistoryOperationUnsupported;
|
||||
/// <summary>
|
||||
/// The effective per-node status a non-SDK caller (H2) reports: a non-Good operation status wins; otherwise the
|
||||
/// result's own status, so <c>GoodNoData</c> passes through verbatim (plan §3.3). An untouched operation slot is the
|
||||
/// SDK's pre-seeded <c>BadHistoryOperationUnsupported</c>.
|
||||
/// </summary>
|
||||
public StatusCode Status
|
||||
{
|
||||
get
|
||||
{
|
||||
var operation = Error?.StatusCode ?? StatusCodes.BadHistoryOperationUnsupported;
|
||||
return StatusCode.IsGood(operation) ? Result?.StatusCode ?? StatusCodes.Good : operation;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>The returned samples (HistoryData or HistoryModifiedData values), empty when none.</summary>
|
||||
public IReadOnlyList<DataValue> Values =>
|
||||
|
||||
Reference in New Issue
Block a user