Commit afa3cce
authored
Add identity to TerminatedFailureInfo + CanceledFailureInfo (#745)
<!-- Describe what has changed in this PR -->
**What changed?**
Add `identity` field to `TerminatedFailureInfo` and
`CanceledFailureInfo`.
<!-- Tell your future self why have you made these changes -->
**Why?**
To allow storing the identity of the caller that requested the
cancellation/termination; and allow clients to retrieve it.
<!-- Are there any breaking changes on binary or code level? -->
**Breaking changes**
No
<!-- If this breaks the Server, please provide the Server PR to merge
right after this PR was merged. -->
**Server PR**
NA - usage example:
```
&nexusoperationpb.OperationOutcome_Failed{
Failure: &failurepb.Failure{
Message: event.Reason,
FailureInfo: &failurepb.Failure_TerminatedFailureInfo{
TerminatedFailureInfo: &failurepb.TerminatedFailureInfo{
identity: event.Identity,
},
},
},
}
```1 parent 438a038 commit afa3cce
3 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12162 | 12162 | | |
12163 | 12163 | | |
12164 | 12164 | | |
| 12165 | + | |
| 12166 | + | |
| 12167 | + | |
| 12168 | + | |
12165 | 12169 | | |
12166 | 12170 | | |
12167 | 12171 | | |
| |||
16887 | 16891 | | |
16888 | 16892 | | |
16889 | 16893 | | |
16890 | | - | |
| 16894 | + | |
| 16895 | + | |
| 16896 | + | |
| 16897 | + | |
| 16898 | + | |
| 16899 | + | |
| 16900 | + | |
16891 | 16901 | | |
16892 | 16902 | | |
16893 | 16903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9144 | 9144 | | |
9145 | 9145 | | |
9146 | 9146 | | |
| 9147 | + | |
| 9148 | + | |
| 9149 | + | |
9147 | 9150 | | |
9148 | 9151 | | |
9149 | 9152 | | |
| |||
14957 | 14960 | | |
14958 | 14961 | | |
14959 | 14962 | | |
14960 | | - | |
| 14963 | + | |
| 14964 | + | |
| 14965 | + | |
| 14966 | + | |
14961 | 14967 | | |
14962 | 14968 | | |
14963 | 14969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments