client.go ×4

Frontier kind: Joint frontier

unlabeled · c_bf255e86f428

1 test · 311 LOC · 4 files · introduces 1 test · 16 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges16 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
113 ranges311 lines · 4 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationclient.go ×4 · 16 introduced LOCclient.go ×4server.go ×1 · 1 introduced LOCserver.go ×1client.go ×2 · 3 introduced LOCclient.go ×2client.go ×2 · 3 introduced LOCclient.go ×2server.go ×5 · 34 introduced LOCserver.go ×5client.go ×1 · 3 introduced LOCclient.go ×1server.go ×3 · 6 introduced LOCserver.go ×3client.go ×4 · 13 introduced LOCclient.go ×4client.go ×8 · 25 introduced LOCclient.go ×8server.go ×8 · 25 introduced LOCserver.go ×8api.go ×2 · 5 introduced LOCapi.go ×2api.go ×1 · 3 introduced LOCapi.go ×1client.go ×1 · 3 introduced LOCclient.go ×1failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2client.go ×1 · 2 introduced LOCclient.go ×1api.go ×1 · 2 introduced LOCapi.go ×1client.go ×1 · 2 introduced LOCclient.go ×1api.go ×2 · 6 introduced LOCapi.go ×2client.go ×7 · 22 introduced LOCclient.go ×7server.go ×1 · 2 introduced LOCserver.go ×1server.go ×1 · 2 introduced LOCserver.go ×1failure_converter.go ×1 · 4 introduced LOCfailure_converter.go ×1failure_converter.go ×4 · 18 introduced LOCfailure_converter.go ×4server.go ×1 · 2 introduced LOCserver.go ×1failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2server.go ×5 · 14 introduced LOCserver.go ×5api.go ×2 · 3 introduced LOCapi.go ×2client.go ×1 · 2 introduced LOCclient.go ×1failure_converter.go ×2 · 7 introduced LOCfailure_converter.go ×2server.go ×4 · 19 introduced LOCserver.go ×4api.go ×3 · 8 introduced LOCapi.go ×3failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1api.go ×1 · 1 introduced LOCapi.go ×1api.go ×1 · 2 introduced LOCapi.go ×1api.go ×2 · 3 introduced LOCapi.go ×2api.go ×2 · 6 introduced LOCapi.go ×2client.go ×2 · 6 introduced LOCclient.go ×2failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2api.go ×1 · 2 introduced LOCapi.go ×1api.go ×1 · 4 introduced LOCapi.go ×1api.go ×1 · 2 introduced LOCapi.go ×1failure_converter.go ×1 · 3 introduced LOCfailure_converter.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/nexus/nexusrpc/api.go · 295 LOCnexusrpc/api.gogo.temporal.io/server/common/nexus/nexusrpc/client.go · 502 LOCnexusrpc/client.gogo.temporal.io/server/common/nexus/nexusrpc/failure_converter.go · 213 LOCnexusrpc/failure_convert…go.temporal.io/server/common/nexus/nexusrpc/server.go · 404 LOCnexusrpc/server.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestDefaultFailureConverterArbitraryError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestDefaultFailureConverterArbitraryErrorTestDefaultFailureConver…TestFailureConverter_GenericError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_GenericErrorTestFailureConverter_Gen…TestUnsuccessful · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestUnsuccessfulTestUnsuccessfulFocused concept · client.go ×4 · 16 introduced LOCclient.go ×4

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 16 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/nexus/nexusrpc/client.go 14 introduced LOC · 4 ranges

Open complete file

357 // For compatibility with older servers.
358 if _, ok := wireErr.(*nexus.OperationError); !ok {
359 > state, err := getUnsuccessfulStateFromHeader(response, body) client.go
360 > if err != nil {
361 return nil, err
362 }
363 > opErr := &nexus.OperationError{ client.go
364 > State: state,
365 > Message: "nexus operation completed unsuccessfully",
366 > Cause: wireErr,
367 > }
368 > if err := MarkAsWrapperError(c.failureConverter, opErr); err != nil {
369 return nil, fmt.Errorf("failed to mark operation error as wrapper error: %w", err)
370 }
371 > wireErr = opErr client.go
372 }
373
463 }
464
465 > func getUnsuccessfulStateFromHeader(response *http.Response, body []byte) (nexus.OperationState, error) { client.go
466 > state := nexus.OperationState(response.Header.Get(headerOperationState))
467 > switch state {
468 > case nexus.OperationStateCanceled, nexus.OperationStateFailed:
469 > return state, nil
470 default:
471 return state, newUnexpectedResponseError(fmt.Sprintf("invalid operation state header: %q", state), response, body)
go.temporal.io/server/common/nexus/nexusrpc/server.go 2 introduced LOC · 1 range

Open complete file

112 // Backward compatibility, unwrap the failure cause.
113 if r.Header.Get(HeaderTemporalNexusFailureSupport) != "true" && failure.Cause != nil {
114 > failure = *failure.Cause server.go
115 > }
116
117 statusCode = statusOperationUnsuccessful