api.go ×5

Frontier kind: Joint frontier

unlabeled · c_a8971d87d71a

1 test · 8362 LOC · 252 files · introduces 1 test · 43 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges43 lines · 4 files
Tests
1 test

Contains — complete concept membership

All code (extent)
1763 ranges8362 lines · 252 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.

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.

4 files ranked by introduced lines: 43 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/api/removesignalmutablestate/api.go 26 introduced LOC · 5 ranges

Open complete file

17 shard historyi.ShardContext,
18 workflowConsistencyChecker api.WorkflowConsistencyChecker,
19 > ) (resp *historyservice.RemoveSignalMutableStateResponse, retError error) { api.go
20 > _, err := api.GetActiveNamespace(shard, namespace.ID(req.GetNamespaceId()), req.WorkflowExecution.WorkflowId)
21 > if err != nil {
22 > return nil, err
23 > }
24
25 > err = api.GetAndUpdateWorkflowWithNew( api.go
26 > ctx,
27 > nil,
28 > definition.NewWorkflowKey(
29 > req.NamespaceId,
30 > req.WorkflowExecution.WorkflowId,
31 > req.WorkflowExecution.RunId,
32 > ),
33 > func(workflowLease api.WorkflowLease) (*api.UpdateWorkflowAction, error) {
34 > mutableState := workflowLease.GetMutableState()
35 > if !mutableState.IsWorkflowExecutionRunning() {
36 return nil, consts.ErrWorkflowCompleted
37 }
38
39 > mutableState.DeleteSignalRequested(req.GetRequestId()) api.go
40 > // This is a no-op if signals are stored in CHASM, since we'll ignore the deletion request,
41 > // see DeleteSignalRequested implementation.
42 > // TODO(long-nt-tran): Clean up code once ChasmSignalBacklinksEnabled is fully rolled out.
43 > return &api.UpdateWorkflowAction{
44 > Noop: mutableState.ChasmSignalBacklinksEnabled(),
45 > CreateWorkflowTask: false,
46 > }, nil
47 },
48 nil,
50 workflowConsistencyChecker,
51 )
52 > if err != nil { api.go
53 return nil, err
54 }
55 > return &historyservice.RemoveSignalMutableStateResponse{}, nil api.go
56 }
go.temporal.io/server/api/historyservice/v1/request_response.pb.go 8 introduced LOC · 2 ranges

Open complete file

3137 }
3138
3139 > func (x *RemoveSignalMutableStateRequest) GetNamespaceId() string { request_response.pb.go
3140 > if x != nil {
3141 > return x.NamespaceId
3142 > }
3143 return ""
3144 }
3151 }
3152
3153 > func (x *RemoveSignalMutableStateRequest) GetRequestId() string { request_response.pb.go
3154 > if x != nil {
3155 > return x.RequestId
3156 > }
3157 return ""
3158 }
go.temporal.io/server/service/history/workflow/mutable_state_impl.go 6 introduced LOC · 2 ranges

Open complete file

2564 func (ms *MutableStateImpl) DeleteSignalRequested(
2565 requestID string,
2567 > if ms.ChasmSignalBacklinksEnabled() {
2568 // Signal IDs are kept in CHASM IncomingSignals for backlink resolution.
2569 // TODO(long-nt-tran): Clean up this path after config is rolled out.
2570 return
2571 }
2572 > delete(ms.pendingSignalRequestedIDs, requestID) mutable_state_impl.go
2573 > delete(ms.updateSignalRequestedIDs, requestID)
2574 > ms.deleteSignalRequestedIDs[requestID] = struct{}{}
2575 > ms.approximateSize -= len(requestID)
2576 }
2577
go.temporal.io/server/service/history/history_engine.go 3 introduced LOC · 1 range

Open complete file

686 ctx context.Context,
687 req *historyservice.RemoveSignalMutableStateRequest,
688 > ) (*historyservice.RemoveSignalMutableStateResponse, error) { history_engine.go
689 > return removesignalmutablestate.Invoke(ctx, req, e.shardContext, e.workflowConsistencyChecker)
690 > }
691
692 func (e *historyEngineImpl) TerminateWorkflowExecution(