Commit 8301cba
authored
o365: fix handling of error conditions when requesting work continuation (#15380)
CEL type(o.f) == T does not work the same way as painless o.f instanceof T
if f is not in o. It is necessary to check for existence first.
In this case, this can be done either by directly checking for the existence
of events in state, or because of an invariant in the program, by the absence
of error in state. The latter is chosen for clarity and to ensure that the
invariant is kept.1 parent cfe8712 commit 8301cba
File tree
3 files changed
+10
-2
lines changed- packages/o365
- data_stream/audit/agent/stream
3 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
487 | 490 | | |
488 | 491 | | |
489 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments