nexus_endpoint_store.go ×7

Frontier kind: Code frontier

unlabeled · c_27c0f953b7bc

10 tests · 3121 LOC · 155 files · introduces 0 tests · 14 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges14 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
494 ranges3121 lines · 155 files · Browse complete extent
All tests (intent)
10 testsBrowse 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.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

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

1 file ranked by introduced lines: 14 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/sql/nexus_endpoint_store.go 14 introduced LOC · 7 ranges

Open complete file

181 ctx context.Context,
182 request *p.DeleteNexusEndpointRequest,
183 > ) error { nexus_endpoint_store.go
184 > id, retErr := primitives.ParseUUID(request.ID)
185 > if retErr != nil {
186 return serviceerror.NewInternalf("unable to parse endpoint ID as UUID: %v", retErr)
187 }
188
189 > retErr = s.txExecute(ctx, "DeleteNexusEndpoint", func(tx sqlplugin.Tx) error { nexus_endpoint_store.go
190 > result, err := tx.IncrementNexusEndpointsTableVersion(ctx, request.LastKnownTableVersion)
191 > err = checkUpdateResult(result, err, p.ErrNexusTableVersionConflict)
192 > if err != nil {
193 s.logger.Error("error incrementing Nexus endpoints table version during DeleteNexusEndpoint call", tag.Error(err))
194 return serviceerror.NewInternal(err.Error())
195 }
196
197 > result, err = tx.DeleteFromNexusEndpoints(ctx, id) nexus_endpoint_store.go
198 > if err != nil {
199 s.logger.Error("DeleteNexusEndpoint operation failed", tag.Error(err))
200 return serviceerror.NewUnavailable(err.Error())
201 }
202
203 > nRows, err := result.RowsAffected() nexus_endpoint_store.go
204 > if err != nil {
205 s.logger.Error("error getting RowsAffected during DeleteNexusEndpoint", tag.Error(err))
206 return serviceerror.NewUnavailablef("rowsAffected returned error: %v", err)
207 }
208 > if nRows != 1 { nexus_endpoint_store.go
209 return serviceerror.NewNotFoundf("nexus endpoint not found for ID: %v", request.ID)
210 }
211
212 > return nil nexus_endpoint_store.go
213 })
214 > return retErr nexus_endpoint_store.go
215 }
216