visibility_store.go ×5

Frontier kind: Code frontier

unlabeled · c_e2a83da40b09

46 tests · 3664 LOC · 175 files · introduces 0 tests · 16 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges16 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
603 ranges3664 lines · 175 files · Browse complete extent
All tests (intent)
46 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.

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

go.temporal.io/server/common/persistence/visibility/store/sql/visibility_store.go 10 introduced LOC · 5 ranges

Open complete file

850 }
851 if row.CloseTime != nil {
852 > info.CloseTime = *row.CloseTime visibility_store.go
853 > }
854 if row.ExecutionDuration != nil {
855 > info.ExecutionDuration = time.Duration(*row.ExecutionDuration) visibility_store.go
856 > }
857 if row.HistoryLength != nil {
858 > info.HistoryLength = *row.HistoryLength visibility_store.go
859 > }
860 if row.HistorySizeBytes != nil {
861 > info.HistorySizeBytes = *row.HistorySizeBytes visibility_store.go
862 > }
863 if row.StateTransitionCount != nil {
864 > info.StateTransitionCount = *row.StateTransitionCount visibility_store.go
865 > }
866 if row.ParentWorkflowID != nil {
867 info.ParentWorkflowID = *row.ParentWorkflowID
go.temporal.io/server/common/persistence/visibility/visibility_manager_impl.go 6 introduced LOC · 1 range

Open complete file

519 if internalExecution.Status != enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING &&
520 internalExecution.Status != enumspb.WORKFLOW_EXECUTION_STATUS_PAUSED {
521 > executionInfo.CloseTime = timestamppb.New(internalExecution.CloseTime) visibility_manager_impl.go
522 > executionInfo.ExecutionDuration = durationpb.New(internalExecution.ExecutionDuration)
523 > executionInfo.HistoryLength = internalExecution.HistoryLength
524 > executionInfo.HistorySizeBytes = internalExecution.HistorySizeBytes
525 > executionInfo.StateTransitionCount = internalExecution.StateTransitionCount
526 > }
527
528 // Workflows created before 1.11 have ExecutionTime set to Unix epoch zero time (1/1/1970) for non-cron/non-retry case.