Closed vytautas-karpavicius closed 2 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/compatibility/proto/types.go | 4 | 5 | 80.0% | ||
internal/compatibility/proto/request.go | 0 | 4 | 0.0% | ||
<!-- | Total: | 5 | 10 | 50.0% | --> |
Totals | |
---|---|
Change from base Build 4f32e7fd-8f48-4ad7-9dd0-cf6c681c5e48: | 0.5% |
Covered Lines: | 12362 |
Relevant Lines: | 19363 |
Do we have the same issue for signaling external workflow? I think runID can also be empty there.
RunId can be empty there as well. But it is slightly different. Because workflowId/runId are both with WorkflowExecution, so they map 1:1 for proto/thrift. For cancelation WorkflowID, RunID fields were directly on request type, thus a different mapper being used.
What changed? Fixed NPE in proto mapper.
Why? When canceling current workflow (without run id), this field can be nil.
How did you test it? Added new integration test to reproduce, fix and verify.
Potential risks