@finos/legend-application-studio 28.21.45 → 28.21.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__lib__/LegendStudioEvent.d.ts +63 -1
- package/lib/__lib__/LegendStudioEvent.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioEvent.js +90 -0
- package/lib/__lib__/LegendStudioEvent.js.map +1 -1
- package/lib/__lib__/LegendStudioTelemetryHelper.d.ts +655 -1
- package/lib/__lib__/LegendStudioTelemetryHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioTelemetryHelper.js +709 -1
- package/lib/__lib__/LegendStudioTelemetryHelper.js.map +1 -1
- package/lib/components/editor/editor-group/LegendAISuggestTelemetryHooks.d.ts +30 -0
- package/lib/components/editor/editor-group/LegendAISuggestTelemetryHooks.d.ts.map +1 -0
- package/lib/components/editor/editor-group/LegendAISuggestTelemetryHooks.js +43 -0
- package/lib/components/editor/editor-group/LegendAISuggestTelemetryHooks.js.map +1 -0
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts +4 -3
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.js +90 -36
- package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js +154 -35
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductQueryBuilderHelper.d.ts.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductQueryBuilderHelper.js +4 -6
- package/lib/components/editor/editor-group/dataProduct/DataProductQueryBuilderHelper.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.js +31 -7
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js +4 -8
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +15 -0
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +17 -1
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorStore.d.ts +2 -0
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +12 -0
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts +18 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.js +90 -1
- package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
- package/lib/stores/editor/EditorTabTelemetryHelper.d.ts +31 -0
- package/lib/stores/editor/EditorTabTelemetryHelper.d.ts.map +1 -0
- package/lib/stores/editor/EditorTabTelemetryHelper.js +55 -0
- package/lib/stores/editor/EditorTabTelemetryHelper.js.map +1 -0
- package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.js +22 -1
- package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
- package/lib/stores/editor/LegendAISuggestTelemetry.d.ts +143 -0
- package/lib/stores/editor/LegendAISuggestTelemetry.d.ts.map +1 -0
- package/lib/stores/editor/LegendAISuggestTelemetry.js +376 -0
- package/lib/stores/editor/LegendAISuggestTelemetry.js.map +1 -0
- package/lib/stores/editor/LegendSQLStudioPlaygroundState.js +3 -3
- package/lib/stores/editor/LegendSQLStudioPlaygroundState.js.map +1 -1
- package/lib/stores/editor/editor-state/GraphGenerationState.d.ts +14 -3
- package/lib/stores/editor/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/GraphGenerationState.js +42 -5
- package/lib/stores/editor/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor/editor-state/ModelImporterState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/ModelImporterState.js +2 -1
- package/lib/stores/editor/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementExternalFormatGenerationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementExternalFormatGenerationState.js +14 -0
- package/lib/stores/editor/editor-state/element-editor-state/ElementExternalFormatGenerationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/RuntimeEditorState.d.ts +35 -6
- package/lib/stores/editor/editor-state/element-editor-state/RuntimeEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/RuntimeEditorState.js +74 -29
- package/lib/stores/editor/editor-state/element-editor-state/RuntimeEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.d.ts +5 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.js +13 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +5 -5
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +12 -0
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +60 -14
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/testable/DataProductTestableState.d.ts +5 -0
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/testable/DataProductTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/testable/DataProductTestableState.js +13 -0
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/testable/DataProductTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.d.ts +7 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js +21 -2
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestTestableState.d.ts +5 -0
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestTestableState.js +13 -0
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts +7 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js +34 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js +48 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +5 -11
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts +3 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +7 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js +46 -17
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts +7 -0
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js +110 -16
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +2 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +10 -4
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.js +40 -1
- package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/LocalChangesState.js +1 -0
- package/lib/stores/editor/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.js +51 -0
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.d.ts +14 -0
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.js +132 -27
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceReviewState.js +41 -0
- package/lib/stores/editor/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.js +71 -9
- package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.js.map +1 -1
- package/lib/stores/editor/utils/MockDataUtils.d.ts +12 -2
- package/lib/stores/editor/utils/MockDataUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/MockDataUtils.js +28 -28
- package/lib/stores/editor/utils/MockDataUtils.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +2 -0
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +13 -0
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_LakehouseRuntime_GraphModifierHelper.d.ts +20 -2
- package/lib/stores/graph-modifier/DSL_LakehouseRuntime_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_LakehouseRuntime_GraphModifierHelper.js +38 -4
- package/lib/stores/graph-modifier/DSL_LakehouseRuntime_GraphModifierHelper.js.map +1 -1
- package/lib/stores/project-reviewer/ProjectReviewerStore.d.ts.map +1 -1
- package/lib/stores/project-reviewer/ProjectReviewerStore.js +45 -0
- package/lib/stores/project-reviewer/ProjectReviewerStore.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +48 -4
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +9 -9
- package/src/__lib__/LegendStudioEvent.ts +102 -0
- package/src/__lib__/LegendStudioTelemetryHelper.ts +1769 -311
- package/src/components/editor/editor-group/LegendAISuggestTelemetryHooks.ts +57 -0
- package/src/components/editor/editor-group/RuntimeEditor.tsx +282 -132
- package/src/components/editor/editor-group/dataProduct/DataProductEditor.tsx +293 -106
- package/src/components/editor/editor-group/dataProduct/DataProductQueryBuilderHelper.ts +3 -13
- package/src/components/editor/editor-group/service-editor/ServiceEditor.tsx +41 -23
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.tsx +5 -11
- package/src/components/editor/side-bar/WorkflowManager.tsx +24 -0
- package/src/index.ts +17 -1
- package/src/stores/editor/EditorGraphState.ts +30 -1
- package/src/stores/editor/EditorStore.ts +22 -0
- package/src/stores/editor/EditorTabManagerState.ts +128 -1
- package/src/stores/editor/EditorTabTelemetryHelper.ts +70 -0
- package/src/stores/editor/GraphEditFormModeState.ts +35 -1
- package/src/stores/editor/LegendAISuggestTelemetry.ts +592 -0
- package/src/stores/editor/LegendSQLStudioPlaygroundState.ts +3 -3
- package/src/stores/editor/editor-state/GraphGenerationState.ts +68 -9
- package/src/stores/editor/editor-state/ModelImporterState.ts +2 -0
- package/src/stores/editor/editor-state/element-editor-state/ElementExternalFormatGenerationState.ts +30 -0
- package/src/stores/editor/editor-state/element-editor-state/RuntimeEditorState.ts +92 -31
- package/src/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.ts +17 -0
- package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +6 -6
- package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +75 -17
- package/src/stores/editor/editor-state/element-editor-state/dataProduct/testable/DataProductTestableState.ts +17 -0
- package/src/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.ts +27 -2
- package/src/stores/editor/editor-state/element-editor-state/ingest/IngestTestableState.ts +17 -0
- package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts +57 -0
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.ts +74 -0
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +22 -21
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +9 -0
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +78 -21
- package/src/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.ts +205 -18
- package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +38 -3
- package/src/stores/editor/sidebar-state/BulkServiceRegistrationState.ts +71 -1
- package/src/stores/editor/sidebar-state/LocalChangesState.ts +4 -0
- package/src/stores/editor/sidebar-state/ProjectOverviewState.ts +114 -0
- package/src/stores/editor/sidebar-state/WorkflowManagerState.ts +250 -29
- package/src/stores/editor/sidebar-state/WorkspaceReviewState.ts +84 -0
- package/src/stores/editor/sidebar-state/testable/GlobalTestRunnerState.ts +124 -17
- package/src/stores/editor/utils/MockDataUtils.ts +33 -32
- package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +18 -0
- package/src/stores/graph-modifier/DSL_LakehouseRuntime_GraphModifierHelper.ts +62 -7
- package/src/stores/project-reviewer/ProjectReviewerStore.ts +97 -0
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +87 -4
- package/tsconfig.json +3 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
|
|
16
|
+
import { Availability, DataProduct, FunctionActivator, GRAPH_MANAGER_EVENT, IngestDefinition, Mapping, MultiExecutionServiceTestResult, PackageableElement, Service, TestError, TestExecuted, TestExecutionStatus, } from '@finos/legend-graph';
|
|
17
17
|
import { APPLICATION_EVENT, } from '@finos/legend-application';
|
|
18
18
|
import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioEvent.js';
|
|
19
19
|
export var SHOWCASE_MANAGER_ENTRY_POINT;
|
|
@@ -83,6 +83,323 @@ export var GRAPH_EDITOR_MODE_LABEL;
|
|
|
83
83
|
GRAPH_EDITOR_MODE_LABEL["TEXT"] = "text";
|
|
84
84
|
GRAPH_EDITOR_MODE_LABEL["STRICT_TEXT"] = "strict-text";
|
|
85
85
|
})(GRAPH_EDITOR_MODE_LABEL || (GRAPH_EDITOR_MODE_LABEL = {}));
|
|
86
|
+
export var FORM_MODE_COMPILATION_ERROR_KIND;
|
|
87
|
+
(function (FORM_MODE_COMPILATION_ERROR_KIND) {
|
|
88
|
+
FORM_MODE_COMPILATION_ERROR_KIND["COMPILATION"] = "compilation";
|
|
89
|
+
FORM_MODE_COMPILATION_ERROR_KIND["ENGINE"] = "engine";
|
|
90
|
+
/** Non-engine error (e.g. network) surfaced while compiling. */
|
|
91
|
+
FORM_MODE_COMPILATION_ERROR_KIND["OTHER"] = "other";
|
|
92
|
+
})(FORM_MODE_COMPILATION_ERROR_KIND || (FORM_MODE_COMPILATION_ERROR_KIND = {}));
|
|
93
|
+
export var GRAPH_INITIALIZATION_ERROR_KIND;
|
|
94
|
+
(function (GRAPH_INITIALIZATION_ERROR_KIND) {
|
|
95
|
+
GRAPH_INITIALIZATION_ERROR_KIND["DEPENDENCY"] = "dependency";
|
|
96
|
+
GRAPH_INITIALIZATION_ERROR_KIND["DESERIALIZATION"] = "deserialization";
|
|
97
|
+
GRAPH_INITIALIZATION_ERROR_KIND["NETWORK"] = "network";
|
|
98
|
+
GRAPH_INITIALIZATION_ERROR_KIND["OTHER"] = "other";
|
|
99
|
+
})(GRAPH_INITIALIZATION_ERROR_KIND || (GRAPH_INITIALIZATION_ERROR_KIND = {}));
|
|
100
|
+
export var SERVICE_REGISTRATION_TRIGGER;
|
|
101
|
+
(function (SERVICE_REGISTRATION_TRIGGER) {
|
|
102
|
+
SERVICE_REGISTRATION_TRIGGER["SINGLE"] = "single";
|
|
103
|
+
SERVICE_REGISTRATION_TRIGGER["BULK"] = "bulk";
|
|
104
|
+
SERVICE_REGISTRATION_TRIGGER["SERVICE_QUERY_EDITOR"] = "service-query-editor";
|
|
105
|
+
})(SERVICE_REGISTRATION_TRIGGER || (SERVICE_REGISTRATION_TRIGGER = {}));
|
|
106
|
+
/**
|
|
107
|
+
* Discriminates the entry-point of `editor.generation.*` events.
|
|
108
|
+
* - `global`: sidebar "Generate" action, spans the whole project's generation spec
|
|
109
|
+
* (models + artifacts).
|
|
110
|
+
* - `element-schema`: per-element external-format schema regeneration from an
|
|
111
|
+
* element editor's "Generate" button.
|
|
112
|
+
*/
|
|
113
|
+
export var GENERATION_MODE;
|
|
114
|
+
(function (GENERATION_MODE) {
|
|
115
|
+
GENERATION_MODE["GLOBAL"] = "global";
|
|
116
|
+
GENERATION_MODE["ELEMENT_SCHEMA"] = "element-schema";
|
|
117
|
+
})(GENERATION_MODE || (GENERATION_MODE = {}));
|
|
118
|
+
/**
|
|
119
|
+
* High-level bucket for a Studio tab so dashboards can slice tab activity
|
|
120
|
+
* across element editors vs. sidecar tabs (diff viewers, artifact viewers,
|
|
121
|
+
* model importer, etc.) without depending on the element metamodel.
|
|
122
|
+
*/
|
|
123
|
+
export var EDITOR_TAB_KIND;
|
|
124
|
+
(function (EDITOR_TAB_KIND) {
|
|
125
|
+
EDITOR_TAB_KIND["ELEMENT"] = "element";
|
|
126
|
+
EDITOR_TAB_KIND["ENTITY_DIFF"] = "entity-diff";
|
|
127
|
+
EDITOR_TAB_KIND["ARTIFACT_GENERATION"] = "artifact-generation";
|
|
128
|
+
EDITOR_TAB_KIND["MODEL_IMPORTER"] = "model-importer";
|
|
129
|
+
EDITOR_TAB_KIND["PROJECT_CONFIGURATION"] = "project-configuration";
|
|
130
|
+
EDITOR_TAB_KIND["END_TO_END_WORKFLOW"] = "end-to-end-workflow";
|
|
131
|
+
EDITOR_TAB_KIND["OTHER"] = "other";
|
|
132
|
+
})(EDITOR_TAB_KIND || (EDITOR_TAB_KIND = {}));
|
|
133
|
+
export var EDITOR_TAB_OPEN_TRIGGER;
|
|
134
|
+
(function (EDITOR_TAB_OPEN_TRIGGER) {
|
|
135
|
+
/** Default when the caller did not surface intent. */
|
|
136
|
+
EDITOR_TAB_OPEN_TRIGGER["PROGRAMMATIC"] = "programmatic";
|
|
137
|
+
/** Tab was recreated after graph rebuild via cachedTabs recovery. */
|
|
138
|
+
EDITOR_TAB_OPEN_TRIGGER["RESTORE"] = "restore";
|
|
139
|
+
})(EDITOR_TAB_OPEN_TRIGGER || (EDITOR_TAB_OPEN_TRIGGER = {}));
|
|
140
|
+
export var EDITOR_TAB_CLOSE_TRIGGER;
|
|
141
|
+
(function (EDITOR_TAB_CLOSE_TRIGGER) {
|
|
142
|
+
/** User clicked the "x" on the tab, or middle-clicked the tab strip. */
|
|
143
|
+
EDITOR_TAB_CLOSE_TRIGGER["USER_CLOSE"] = "user-close";
|
|
144
|
+
/** User invoked "Close Others" from the tab context menu. */
|
|
145
|
+
EDITOR_TAB_CLOSE_TRIGGER["CLOSE_OTHERS"] = "close-others";
|
|
146
|
+
/** User invoked "Close All" from the tab context menu. */
|
|
147
|
+
EDITOR_TAB_CLOSE_TRIGGER["CLOSE_ALL"] = "close-all";
|
|
148
|
+
/** Tabs were flushed as part of a graph rebuild (cacheAndClose). */
|
|
149
|
+
EDITOR_TAB_CLOSE_TRIGGER["NAVIGATE_AWAY"] = "navigate-away";
|
|
150
|
+
/** Programmatic close from a store method. */
|
|
151
|
+
EDITOR_TAB_CLOSE_TRIGGER["PROGRAMMATIC"] = "programmatic";
|
|
152
|
+
})(EDITOR_TAB_CLOSE_TRIGGER || (EDITOR_TAB_CLOSE_TRIGGER = {}));
|
|
153
|
+
export var WORKFLOW_MANAGER_SCOPE;
|
|
154
|
+
(function (WORKFLOW_MANAGER_SCOPE) {
|
|
155
|
+
WORKFLOW_MANAGER_SCOPE["WORKSPACE"] = "workspace";
|
|
156
|
+
WORKFLOW_MANAGER_SCOPE["PROJECT"] = "project";
|
|
157
|
+
WORKFLOW_MANAGER_SCOPE["PROJECT_VERSION"] = "project-version";
|
|
158
|
+
})(WORKFLOW_MANAGER_SCOPE || (WORKFLOW_MANAGER_SCOPE = {}));
|
|
159
|
+
export var WORKFLOW_MANAGER_JOB_ACTION;
|
|
160
|
+
(function (WORKFLOW_MANAGER_JOB_ACTION) {
|
|
161
|
+
WORKFLOW_MANAGER_JOB_ACTION["RETRY"] = "retry";
|
|
162
|
+
WORKFLOW_MANAGER_JOB_ACTION["CANCEL"] = "cancel";
|
|
163
|
+
WORKFLOW_MANAGER_JOB_ACTION["RUN_MANUAL"] = "run-manual";
|
|
164
|
+
})(WORKFLOW_MANAGER_JOB_ACTION || (WORKFLOW_MANAGER_JOB_ACTION = {}));
|
|
165
|
+
/**
|
|
166
|
+
* SDLC review actions. `create` only fires from the author side;
|
|
167
|
+
* `approve` / `reopen` fire only from the reviewer side; `commit` and
|
|
168
|
+
* `close` fire from both.
|
|
169
|
+
*/
|
|
170
|
+
export var SDLC_REVIEW_ACTION;
|
|
171
|
+
(function (SDLC_REVIEW_ACTION) {
|
|
172
|
+
SDLC_REVIEW_ACTION["CREATE"] = "create";
|
|
173
|
+
SDLC_REVIEW_ACTION["COMMIT"] = "commit";
|
|
174
|
+
SDLC_REVIEW_ACTION["CLOSE"] = "close";
|
|
175
|
+
SDLC_REVIEW_ACTION["REOPEN"] = "reopen";
|
|
176
|
+
SDLC_REVIEW_ACTION["APPROVE"] = "approve";
|
|
177
|
+
})(SDLC_REVIEW_ACTION || (SDLC_REVIEW_ACTION = {}));
|
|
178
|
+
/**
|
|
179
|
+
* Which side of the review the event fires from — the workspace author
|
|
180
|
+
* committing/closing their own review, or a reviewer approving / committing
|
|
181
|
+
* / reopening / closing someone else's review.
|
|
182
|
+
*/
|
|
183
|
+
export var SDLC_REVIEW_ROLE;
|
|
184
|
+
(function (SDLC_REVIEW_ROLE) {
|
|
185
|
+
SDLC_REVIEW_ROLE["AUTHOR"] = "author";
|
|
186
|
+
SDLC_REVIEW_ROLE["REVIEWER"] = "reviewer";
|
|
187
|
+
})(SDLC_REVIEW_ROLE || (SDLC_REVIEW_ROLE = {}));
|
|
188
|
+
/**
|
|
189
|
+
* Workspace setup screen actions — user-triggered writes from the setup /
|
|
190
|
+
* project picker route. Structured replacement for the
|
|
191
|
+
* WORKSPACE_SETUP_FAILURE bucket plus previously-unlogged create-project
|
|
192
|
+
* and import-project flows.
|
|
193
|
+
*/
|
|
194
|
+
export var SETUP_ACTION;
|
|
195
|
+
(function (SETUP_ACTION) {
|
|
196
|
+
SETUP_ACTION["CREATE_SANDBOX_PROJECT"] = "create-sandbox-project";
|
|
197
|
+
SETUP_ACTION["CREATE_PROJECT"] = "create-project";
|
|
198
|
+
SETUP_ACTION["IMPORT_PROJECT"] = "import-project";
|
|
199
|
+
SETUP_ACTION["CREATE_WORKSPACE"] = "create-workspace";
|
|
200
|
+
})(SETUP_ACTION || (SETUP_ACTION = {}));
|
|
201
|
+
/**
|
|
202
|
+
* Project configuration editor actions — user-triggered writes from the
|
|
203
|
+
* project configuration editor. Structured replacement for the
|
|
204
|
+
* SDLC_MANAGER_FAILURE bucket around config updates.
|
|
205
|
+
*
|
|
206
|
+
* The three actions map to the three top-level editor buttons; they all
|
|
207
|
+
* funnel through the same `updateProjectConfiguration` SDLC call, and the
|
|
208
|
+
* `action` field records which entry point the user came from.
|
|
209
|
+
*/
|
|
210
|
+
export var PROJECT_CONFIG_UPDATE_ACTION;
|
|
211
|
+
(function (PROJECT_CONFIG_UPDATE_ACTION) {
|
|
212
|
+
// "Update" button on the config editor: dependency add/remove, platform
|
|
213
|
+
// configurations, run-dependency-tests toggle.
|
|
214
|
+
PROJECT_CONFIG_UPDATE_ACTION["UPDATE_CONFIGS"] = "update-configs";
|
|
215
|
+
// "Upgrade to latest project structure" button.
|
|
216
|
+
PROJECT_CONFIG_UPDATE_ACTION["UPDATE_TO_LATEST_STRUCTURE"] = "update-to-latest-structure";
|
|
217
|
+
// "Change project type" (managed / embedded) toggle.
|
|
218
|
+
PROJECT_CONFIG_UPDATE_ACTION["CHANGE_PROJECT_TYPE"] = "change-project-type";
|
|
219
|
+
})(PROJECT_CONFIG_UPDATE_ACTION || (PROJECT_CONFIG_UPDATE_ACTION = {}));
|
|
220
|
+
/**
|
|
221
|
+
* Project overview sidebar SDLC writes — user-triggered actions from the
|
|
222
|
+
* project overview panel. Structured replacement for the
|
|
223
|
+
* SDLC_MANAGER_FAILURE bucket around ProjectOverviewState.
|
|
224
|
+
*/
|
|
225
|
+
export var PROJECT_OVERVIEW_ACTION;
|
|
226
|
+
(function (PROJECT_OVERVIEW_ACTION) {
|
|
227
|
+
// Delete another workspace from the overview list.
|
|
228
|
+
PROJECT_OVERVIEW_ACTION["DELETE_WORKSPACE"] = "delete-workspace";
|
|
229
|
+
// Edit project name / description / tags.
|
|
230
|
+
PROJECT_OVERVIEW_ACTION["UPDATE_PROJECT"] = "update-project";
|
|
231
|
+
// Cut a new release version (major / minor / patch semver).
|
|
232
|
+
PROJECT_OVERVIEW_ACTION["CREATE_VERSION"] = "create-version";
|
|
233
|
+
// Close out a patch branch and release it as a version.
|
|
234
|
+
PROJECT_OVERVIEW_ACTION["RELEASE_PATCH"] = "release-patch";
|
|
235
|
+
// Open a new patch branch (also creates the initial workspace on it).
|
|
236
|
+
PROJECT_OVERVIEW_ACTION["CREATE_PATCH"] = "create-patch";
|
|
237
|
+
})(PROJECT_OVERVIEW_ACTION || (PROJECT_OVERVIEW_ACTION = {}));
|
|
238
|
+
export var SERVICE_TEST_SUITE_RUN_MODE;
|
|
239
|
+
(function (SERVICE_TEST_SUITE_RUN_MODE) {
|
|
240
|
+
SERVICE_TEST_SUITE_RUN_MODE["RUN_SUITE"] = "run-suite";
|
|
241
|
+
SERVICE_TEST_SUITE_RUN_MODE["RUN_FAILING"] = "run-failing";
|
|
242
|
+
})(SERVICE_TEST_SUITE_RUN_MODE || (SERVICE_TEST_SUITE_RUN_MODE = {}));
|
|
243
|
+
/**
|
|
244
|
+
* Categorises the element behind a `Testable` for the unified TESTABLE_RUN
|
|
245
|
+
* telemetry so downstream analytics can slice per element kind without
|
|
246
|
+
* relying on the element path.
|
|
247
|
+
*/
|
|
248
|
+
export var TESTABLE_KIND;
|
|
249
|
+
(function (TESTABLE_KIND) {
|
|
250
|
+
TESTABLE_KIND["MAPPING"] = "mapping";
|
|
251
|
+
TESTABLE_KIND["DATA_PRODUCT"] = "data-product";
|
|
252
|
+
TESTABLE_KIND["INGEST"] = "ingest";
|
|
253
|
+
TESTABLE_KIND["FUNCTION_ACTIVATOR"] = "function-activator";
|
|
254
|
+
TESTABLE_KIND["AVAILABILITY"] = "availability";
|
|
255
|
+
TESTABLE_KIND["SERVICE"] = "service";
|
|
256
|
+
TESTABLE_KIND["OTHER"] = "other";
|
|
257
|
+
})(TESTABLE_KIND || (TESTABLE_KIND = {}));
|
|
258
|
+
/**
|
|
259
|
+
* Which kind of run was invoked from the testable editors. This mirrors the
|
|
260
|
+
* distinct UI actions surfaced to the user (run suite, run failing tests,
|
|
261
|
+
* run entire testable, run all failing suites).
|
|
262
|
+
*/
|
|
263
|
+
export var TESTABLE_RUN_MODE;
|
|
264
|
+
(function (TESTABLE_RUN_MODE) {
|
|
265
|
+
TESTABLE_RUN_MODE["RUN_SUITE"] = "run-suite";
|
|
266
|
+
TESTABLE_RUN_MODE["RUN_FAILING"] = "run-failing";
|
|
267
|
+
TESTABLE_RUN_MODE["RUN_TESTABLE"] = "run-testable";
|
|
268
|
+
TESTABLE_RUN_MODE["RUN_ALL_FAILING"] = "run-all-failing";
|
|
269
|
+
TESTABLE_RUN_MODE["RUN_TEST"] = "run-test";
|
|
270
|
+
})(TESTABLE_RUN_MODE || (TESTABLE_RUN_MODE = {}));
|
|
271
|
+
/**
|
|
272
|
+
* Resolves the {@link TESTABLE_KIND} label for a testable element instance.
|
|
273
|
+
* Falls back to `OTHER` so telemetry never blocks on an unknown subtype.
|
|
274
|
+
*/
|
|
275
|
+
export const getTestableKind = (testable) => {
|
|
276
|
+
if (testable instanceof Service) {
|
|
277
|
+
return TESTABLE_KIND.SERVICE;
|
|
278
|
+
}
|
|
279
|
+
if (testable instanceof Mapping) {
|
|
280
|
+
return TESTABLE_KIND.MAPPING;
|
|
281
|
+
}
|
|
282
|
+
if (testable instanceof DataProduct) {
|
|
283
|
+
return TESTABLE_KIND.DATA_PRODUCT;
|
|
284
|
+
}
|
|
285
|
+
if (testable instanceof IngestDefinition) {
|
|
286
|
+
return TESTABLE_KIND.INGEST;
|
|
287
|
+
}
|
|
288
|
+
if (testable instanceof FunctionActivator) {
|
|
289
|
+
return TESTABLE_KIND.FUNCTION_ACTIVATOR;
|
|
290
|
+
}
|
|
291
|
+
if (testable instanceof Availability) {
|
|
292
|
+
return TESTABLE_KIND.AVAILABILITY;
|
|
293
|
+
}
|
|
294
|
+
return TESTABLE_KIND.OTHER;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Reads `.path` from a testable, which all real packageable-element testables
|
|
298
|
+
* expose. Returns an empty string if unavailable to keep telemetry non-fatal.
|
|
299
|
+
*/
|
|
300
|
+
export const getTestablePath = (testable) => testable instanceof PackageableElement ? testable.path : '';
|
|
301
|
+
/**
|
|
302
|
+
* Bucketises test results into passed/failed/errored counts for the unified
|
|
303
|
+
* TESTABLE_RUN__SUCCESS payload. Handles {@link MultiExecutionServiceTestResult}
|
|
304
|
+
* by tallying each key-indexed sub-result so service multi-execution runs count
|
|
305
|
+
* every execution rather than the wrapper.
|
|
306
|
+
*/
|
|
307
|
+
export const summarizeTestResults = (results) => {
|
|
308
|
+
let passedCount = 0;
|
|
309
|
+
let failedCount = 0;
|
|
310
|
+
let erroredCount = 0;
|
|
311
|
+
const tally = (result) => {
|
|
312
|
+
if (result instanceof TestError) {
|
|
313
|
+
erroredCount += 1;
|
|
314
|
+
}
|
|
315
|
+
else if (result instanceof TestExecuted) {
|
|
316
|
+
if (result.testExecutionStatus === TestExecutionStatus.PASS) {
|
|
317
|
+
passedCount += 1;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
failedCount += 1;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
for (const result of results) {
|
|
325
|
+
if (result instanceof MultiExecutionServiceTestResult) {
|
|
326
|
+
result.keyIndexedTestResults.forEach(tally);
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
tally(result);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return { passedCount, failedCount, erroredCount };
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* Scope of a global test runner invocation from the sidebar.
|
|
336
|
+
*/
|
|
337
|
+
export var GLOBAL_TEST_RUN_SCOPE;
|
|
338
|
+
(function (GLOBAL_TEST_RUN_SCOPE) {
|
|
339
|
+
GLOBAL_TEST_RUN_SCOPE["ALL"] = "all";
|
|
340
|
+
GLOBAL_TEST_RUN_SCOPE["DEPENDENCIES"] = "dependencies";
|
|
341
|
+
})(GLOBAL_TEST_RUN_SCOPE || (GLOBAL_TEST_RUN_SCOPE = {}));
|
|
342
|
+
/**
|
|
343
|
+
* Which editor surface a LegendAI suggestion was requested from.
|
|
344
|
+
*/
|
|
345
|
+
export var LEGENDAI_SUGGEST_SURFACE;
|
|
346
|
+
(function (LEGENDAI_SUGGEST_SURFACE) {
|
|
347
|
+
LEGENDAI_SUGGEST_SURFACE["SERVICE"] = "service";
|
|
348
|
+
LEGENDAI_SUGGEST_SURFACE["DATASPACE"] = "dataspace";
|
|
349
|
+
LEGENDAI_SUGGEST_SURFACE["DATA_PRODUCT"] = "data-product";
|
|
350
|
+
})(LEGENDAI_SUGGEST_SURFACE || (LEGENDAI_SUGGEST_SURFACE = {}));
|
|
351
|
+
/**
|
|
352
|
+
* Which step of a suggestion request failed: serializing the model to grammar
|
|
353
|
+
* (done locally by the graph manager) or the LegendAI request itself.
|
|
354
|
+
*/
|
|
355
|
+
export var LEGENDAI_SUGGEST_STAGE;
|
|
356
|
+
(function (LEGENDAI_SUGGEST_STAGE) {
|
|
357
|
+
LEGENDAI_SUGGEST_STAGE["SERIALIZE"] = "serialize";
|
|
358
|
+
LEGENDAI_SUGGEST_STAGE["REQUEST"] = "request";
|
|
359
|
+
})(LEGENDAI_SUGGEST_STAGE || (LEGENDAI_SUGGEST_STAGE = {}));
|
|
360
|
+
export var LEGENDAI_SUGGEST_ERROR_KIND;
|
|
361
|
+
(function (LEGENDAI_SUGGEST_ERROR_KIND) {
|
|
362
|
+
/** Grammar serialization failed before LegendAI was called. */
|
|
363
|
+
LEGENDAI_SUGGEST_ERROR_KIND["SERIALIZATION"] = "serialization";
|
|
364
|
+
/** HTTP 401 / 403 — the user lacks LegendAI entitlements. */
|
|
365
|
+
LEGENDAI_SUGGEST_ERROR_KIND["ENTITLEMENT"] = "entitlement";
|
|
366
|
+
/** Any other HTTP 4xx. */
|
|
367
|
+
LEGENDAI_SUGGEST_ERROR_KIND["CLIENT"] = "client";
|
|
368
|
+
/** HTTP 5xx. */
|
|
369
|
+
LEGENDAI_SUGGEST_ERROR_KIND["SERVER"] = "server";
|
|
370
|
+
/** LegendAI answered but the suggestion was empty, so nothing was shown. */
|
|
371
|
+
LEGENDAI_SUGGEST_ERROR_KIND["EMPTY_RESPONSE"] = "empty-response";
|
|
372
|
+
LEGENDAI_SUGGEST_ERROR_KIND["OTHER"] = "other";
|
|
373
|
+
})(LEGENDAI_SUGGEST_ERROR_KIND || (LEGENDAI_SUGGEST_ERROR_KIND = {}));
|
|
374
|
+
/**
|
|
375
|
+
* What the user was looking at when they left the editor without applying or
|
|
376
|
+
* dismissing: a request still in flight, or a suggestion already on screen.
|
|
377
|
+
*/
|
|
378
|
+
export var LEGENDAI_SUGGEST_ABANDON_PHASE;
|
|
379
|
+
(function (LEGENDAI_SUGGEST_ABANDON_PHASE) {
|
|
380
|
+
LEGENDAI_SUGGEST_ABANDON_PHASE["PENDING"] = "pending";
|
|
381
|
+
LEGENDAI_SUGGEST_ABANDON_PHASE["SHOWN"] = "shown";
|
|
382
|
+
})(LEGENDAI_SUGGEST_ABANDON_PHASE || (LEGENDAI_SUGGEST_ABANDON_PHASE = {}));
|
|
383
|
+
/**
|
|
384
|
+
* State of an applied suggestion's text at the time the element was pushed.
|
|
385
|
+
*/
|
|
386
|
+
export var LEGENDAI_SUGGEST_RETENTION;
|
|
387
|
+
(function (LEGENDAI_SUGGEST_RETENTION) {
|
|
388
|
+
LEGENDAI_SUGGEST_RETENTION["UNCHANGED"] = "unchanged";
|
|
389
|
+
LEGENDAI_SUGGEST_RETENTION["EDITED"] = "edited";
|
|
390
|
+
LEGENDAI_SUGGEST_RETENTION["CLEARED"] = "cleared";
|
|
391
|
+
LEGENDAI_SUGGEST_RETENTION["ELEMENT_REMOVED"] = "element-removed";
|
|
392
|
+
})(LEGENDAI_SUGGEST_RETENTION || (LEGENDAI_SUGGEST_RETENTION = {}));
|
|
393
|
+
/**
|
|
394
|
+
* Data product only: how the suggested access point group metadata was matched
|
|
395
|
+
* to the group the user applied it on.
|
|
396
|
+
*/
|
|
397
|
+
export var LEGENDAI_SUGGEST_MATCH_STRATEGY;
|
|
398
|
+
(function (LEGENDAI_SUGGEST_MATCH_STRATEGY) {
|
|
399
|
+
LEGENDAI_SUGGEST_MATCH_STRATEGY["NAME"] = "name";
|
|
400
|
+
LEGENDAI_SUGGEST_MATCH_STRATEGY["INDEX"] = "index";
|
|
401
|
+
LEGENDAI_SUGGEST_MATCH_STRATEGY["NONE"] = "none";
|
|
402
|
+
})(LEGENDAI_SUGGEST_MATCH_STRATEGY || (LEGENDAI_SUGGEST_MATCH_STRATEGY = {}));
|
|
86
403
|
export class LegendStudioTelemetryHelper {
|
|
87
404
|
static logEvent_GraphCompilationLaunched(service, sourceInfo) {
|
|
88
405
|
service.logEvent(LEGEND_STUDIO_APP_EVENT.COMPILE_GRAPH__LAUNCH, {
|
|
@@ -123,6 +440,93 @@ export class LegendStudioTelemetryHelper {
|
|
|
123
440
|
sourceInfo,
|
|
124
441
|
});
|
|
125
442
|
}
|
|
443
|
+
static logEvent_GraphInitializationLaunched(service, sourceInfo) {
|
|
444
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.INITIALIZE_GRAPH__LAUNCH, {
|
|
445
|
+
sourceInfo,
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
static logEvent_GraphInitializationFailure(service, sourceInfo, data) {
|
|
449
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.INITIALIZE_GRAPH__FAILURE, {
|
|
450
|
+
sourceInfo,
|
|
451
|
+
...data,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
static logEvent_GraphCompilationFailure(service, sourceInfo, data) {
|
|
455
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.FORM_MODE_COMPILATION__FAILURE, {
|
|
456
|
+
sourceInfo,
|
|
457
|
+
...data,
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
static logEvent_TestDataGenerationFailure(service, sourceInfo, errorMessage) {
|
|
461
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.TEST_DATA_GENERATION__FAILURE, {
|
|
462
|
+
sourceInfo,
|
|
463
|
+
errorMessage,
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
// Service registration
|
|
467
|
+
static logEvent_ServiceRegistrationLaunched(service, sourceInfo, data) {
|
|
468
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_REGISTRATION_LAUNCH, {
|
|
469
|
+
sourceInfo,
|
|
470
|
+
...data,
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
static logEvent_ServiceRegistrationSucceeded(service, sourceInfo, data) {
|
|
474
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_REGISTRATION_SUCCESS, {
|
|
475
|
+
sourceInfo,
|
|
476
|
+
...data,
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
static logEvent_ServiceRegistrationFailure(service, sourceInfo, data) {
|
|
480
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_REGISTRATION_FAILURE, {
|
|
481
|
+
sourceInfo,
|
|
482
|
+
...data,
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
// Service registration precheck ("is this service already deployed?" probed
|
|
486
|
+
// against every configured env). One launch and exactly one terminal event
|
|
487
|
+
// (success / failure) per precheck run; per-env errors are aggregated into
|
|
488
|
+
// `errorCount` / `failedEnvs` rather than emitted individually.
|
|
489
|
+
static logEvent_ServiceRegistrationCheckLaunched(service, sourceInfo, data) {
|
|
490
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_REGISTRATION_CHECK_LAUNCH, { sourceInfo, ...data });
|
|
491
|
+
}
|
|
492
|
+
static logEvent_ServiceRegistrationCheckSucceeded(service, sourceInfo, data) {
|
|
493
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_REGISTRATION_CHECK_SUCCESS, { sourceInfo, ...data });
|
|
494
|
+
}
|
|
495
|
+
static logEvent_ServiceRegistrationCheckFailure(service, sourceInfo, data) {
|
|
496
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_REGISTRATION_CHECK_FAILURE, { sourceInfo, ...data });
|
|
497
|
+
}
|
|
498
|
+
// Model / artifact / element-schema generation
|
|
499
|
+
static logEvent_GenerationLaunched(service, sourceInfo, data) {
|
|
500
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.GENERATION_LAUNCH, {
|
|
501
|
+
sourceInfo,
|
|
502
|
+
...data,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
static logEvent_GenerationSucceeded(service, sourceInfo, data) {
|
|
506
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.GENERATION_SUCCESS, {
|
|
507
|
+
sourceInfo,
|
|
508
|
+
...data,
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
static logEvent_GenerationFailure(service, sourceInfo, data) {
|
|
512
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.GENERATION_FAILURE, {
|
|
513
|
+
sourceInfo,
|
|
514
|
+
...data,
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
// Editor tab lifecycle
|
|
518
|
+
static logEvent_EditorTabOpened(service, sourceInfo, data) {
|
|
519
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.EDITOR_TAB__OPEN, {
|
|
520
|
+
sourceInfo,
|
|
521
|
+
...data,
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
static logEvent_EditorTabClosed(service, sourceInfo, data) {
|
|
525
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.EDITOR_TAB__CLOSE, {
|
|
526
|
+
sourceInfo,
|
|
527
|
+
...data,
|
|
528
|
+
});
|
|
529
|
+
}
|
|
126
530
|
// showcase manager
|
|
127
531
|
static logEvent_ShowcaseManagerLaunch(service, data) {
|
|
128
532
|
service.logEvent(LEGEND_STUDIO_APP_EVENT.SHOWCASE_MANAGER_LAUNCH, data);
|
|
@@ -211,6 +615,55 @@ export class LegendStudioTelemetryHelper {
|
|
|
211
615
|
static logEvent_DataProductLegendAISuggestFailure(telemetryService, dataProductPath, errorMessage, sourceInfo) {
|
|
212
616
|
telemetryService.logEvent(LEGEND_STUDIO_APP_EVENT.DATA_PRODUCT_LEGENDAI_SUGGEST__FAILURE, { dataProductPath, errorMessage, sourceInfo });
|
|
213
617
|
}
|
|
618
|
+
// Unified LegendAI suggest (service / dataspace / data product)
|
|
619
|
+
static logEvent_LegendAISuggestExposure(service, sourceInfo, data) {
|
|
620
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__EXPOSURE, {
|
|
621
|
+
sourceInfo,
|
|
622
|
+
...data,
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
static logEvent_LegendAISuggestLaunched(service, sourceInfo, data) {
|
|
626
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__LAUNCH, {
|
|
627
|
+
sourceInfo,
|
|
628
|
+
...data,
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
static logEvent_LegendAISuggestSucceeded(service, sourceInfo, data) {
|
|
632
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__SUCCESS, {
|
|
633
|
+
sourceInfo,
|
|
634
|
+
...data,
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
static logEvent_LegendAISuggestFailure(service, sourceInfo, data) {
|
|
638
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__FAILURE, {
|
|
639
|
+
sourceInfo,
|
|
640
|
+
...data,
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
static logEvent_LegendAISuggestApplied(service, sourceInfo, data) {
|
|
644
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__APPLY, {
|
|
645
|
+
sourceInfo,
|
|
646
|
+
...data,
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
static logEvent_LegendAISuggestDiscarded(service, sourceInfo, data) {
|
|
650
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__DISCARD, {
|
|
651
|
+
sourceInfo,
|
|
652
|
+
...data,
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
static logEvent_LegendAISuggestAbandoned(service, sourceInfo, data) {
|
|
656
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__ABANDON, {
|
|
657
|
+
sourceInfo,
|
|
658
|
+
...data,
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
static logEvent_LegendAISuggestPersisted(service, sourceInfo, data) {
|
|
662
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.LEGENDAI_SUGGEST__PERSISTED, {
|
|
663
|
+
sourceInfo,
|
|
664
|
+
...data,
|
|
665
|
+
});
|
|
666
|
+
}
|
|
214
667
|
// Push to Dev Metadata
|
|
215
668
|
static logEvent_DevMetadataPushLaunched(service, sourceInfo, groupId, artifactId, versionId, lakehouseElementCounts) {
|
|
216
669
|
service.logEvent(LEGEND_STUDIO_APP_EVENT.METADATA_PUSH_TO_METADATA__LAUNCH, {
|
|
@@ -321,5 +774,260 @@ export class LegendStudioTelemetryHelper {
|
|
|
321
774
|
...data,
|
|
322
775
|
});
|
|
323
776
|
}
|
|
777
|
+
// Workflow manager
|
|
778
|
+
static logEvent_WorkflowManagerPanelOpened(service, sourceInfo, data) {
|
|
779
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_PANEL__OPEN, {
|
|
780
|
+
sourceInfo,
|
|
781
|
+
...data,
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
static logEvent_WorkflowManagerPanelClosed(service, sourceInfo, data) {
|
|
785
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_PANEL__CLOSE, {
|
|
786
|
+
sourceInfo,
|
|
787
|
+
...data,
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
static logEvent_WorkflowManagerFetchWorkflowsLaunched(service, sourceInfo, data) {
|
|
791
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_FETCH_WORKFLOWS__LAUNCH, { sourceInfo, ...data });
|
|
792
|
+
}
|
|
793
|
+
static logEvent_WorkflowManagerFetchWorkflowsSucceeded(service, sourceInfo, data) {
|
|
794
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_FETCH_WORKFLOWS__SUCCESS, { sourceInfo, ...data });
|
|
795
|
+
}
|
|
796
|
+
static logEvent_WorkflowManagerFetchWorkflowsFailure(service, sourceInfo, data) {
|
|
797
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_FETCH_WORKFLOWS__FAILURE, { sourceInfo, ...data });
|
|
798
|
+
}
|
|
799
|
+
static logEvent_WorkflowManagerWorkflowExpand(service, sourceInfo, data) {
|
|
800
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_WORKFLOW__EXPAND, { sourceInfo, ...data });
|
|
801
|
+
}
|
|
802
|
+
static logEvent_WorkflowManagerWorkflowRefresh(service, sourceInfo, data) {
|
|
803
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_WORKFLOW__REFRESH, { sourceInfo, ...data });
|
|
804
|
+
}
|
|
805
|
+
static logEvent_WorkflowManagerFetchJobsLaunched(service, sourceInfo, data) {
|
|
806
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_FETCH_JOBS__LAUNCH, { sourceInfo, ...data });
|
|
807
|
+
}
|
|
808
|
+
static logEvent_WorkflowManagerFetchJobsSucceeded(service, sourceInfo, data) {
|
|
809
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_FETCH_JOBS__SUCCESS, { sourceInfo, ...data });
|
|
810
|
+
}
|
|
811
|
+
static logEvent_WorkflowManagerFetchJobsFailure(service, sourceInfo, data) {
|
|
812
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_FETCH_JOBS__FAILURE, { sourceInfo, ...data });
|
|
813
|
+
}
|
|
814
|
+
static logEvent_WorkflowManagerJobActionLaunched(service, sourceInfo, data) {
|
|
815
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_ACTION__LAUNCH, { sourceInfo, ...data });
|
|
816
|
+
}
|
|
817
|
+
static logEvent_WorkflowManagerJobActionSucceeded(service, sourceInfo, data) {
|
|
818
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_ACTION__SUCCESS, { sourceInfo, ...data });
|
|
819
|
+
}
|
|
820
|
+
static logEvent_WorkflowManagerJobActionFailure(service, sourceInfo, data) {
|
|
821
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_ACTION__FAILURE, { sourceInfo, ...data });
|
|
822
|
+
}
|
|
823
|
+
static logEvent_WorkflowManagerJobLogsOpened(service, sourceInfo, data) {
|
|
824
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_LOGS__OPEN, {
|
|
825
|
+
sourceInfo,
|
|
826
|
+
...data,
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
static logEvent_WorkflowManagerJobLogsClosed(service, sourceInfo, data) {
|
|
830
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_LOGS__CLOSE, {
|
|
831
|
+
sourceInfo,
|
|
832
|
+
...data,
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
static logEvent_WorkflowManagerJobLogsRefresh(service, sourceInfo, data) {
|
|
836
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_LOGS__REFRESH, { sourceInfo, ...data });
|
|
837
|
+
}
|
|
838
|
+
static logEvent_WorkflowManagerJobLogsFetchSucceeded(service, sourceInfo, data) {
|
|
839
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_LOGS_FETCH__SUCCESS, { sourceInfo, ...data });
|
|
840
|
+
}
|
|
841
|
+
static logEvent_WorkflowManagerJobLogsFetchFailure(service, sourceInfo, data) {
|
|
842
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.WORKFLOW_MANAGER_JOB_LOGS_FETCH__FAILURE, { sourceInfo, ...data });
|
|
843
|
+
}
|
|
844
|
+
// Service test suite run
|
|
845
|
+
static logEvent_ServiceTestSuiteRunLaunched(service, sourceInfo, data) {
|
|
846
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_TEST_SUITE_RUN__LAUNCH, {
|
|
847
|
+
sourceInfo,
|
|
848
|
+
...data,
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
static logEvent_ServiceTestSuiteRunSucceeded(service, sourceInfo, data) {
|
|
852
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_TEST_SUITE_RUN__SUCCESS, {
|
|
853
|
+
sourceInfo,
|
|
854
|
+
...data,
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
static logEvent_ServiceTestSuiteRunFailure(service, sourceInfo, data) {
|
|
858
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SERVICE_TEST_SUITE_RUN__FAILURE, {
|
|
859
|
+
sourceInfo,
|
|
860
|
+
...data,
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
// Unified testable run (mapping / data product / ingest / function activator / availability)
|
|
864
|
+
static logEvent_TestableRunLaunched(service, sourceInfo, data) {
|
|
865
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.TESTABLE_RUN__LAUNCH, {
|
|
866
|
+
sourceInfo,
|
|
867
|
+
...data,
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
static logEvent_TestableRunSucceeded(service, sourceInfo, data) {
|
|
871
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.TESTABLE_RUN__SUCCESS, {
|
|
872
|
+
sourceInfo,
|
|
873
|
+
...data,
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
static logEvent_TestableRunFailure(service, sourceInfo, data) {
|
|
877
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.TESTABLE_RUN__FAILURE, {
|
|
878
|
+
sourceInfo,
|
|
879
|
+
...data,
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
// Global test runner (sidebar) — cross-testable runs
|
|
883
|
+
static logEvent_GlobalTestRunLaunched(service, sourceInfo, data) {
|
|
884
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.GLOBAL_TEST_RUN__LAUNCH, {
|
|
885
|
+
sourceInfo,
|
|
886
|
+
...data,
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
static logEvent_GlobalTestRunSucceeded(service, sourceInfo, data) {
|
|
890
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.GLOBAL_TEST_RUN__SUCCESS, {
|
|
891
|
+
sourceInfo,
|
|
892
|
+
...data,
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
static logEvent_GlobalTestRunFailure(service, sourceInfo, data) {
|
|
896
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.GLOBAL_TEST_RUN__FAILURE, {
|
|
897
|
+
sourceInfo,
|
|
898
|
+
...data,
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
// SDLC review lifecycle
|
|
902
|
+
//
|
|
903
|
+
// Structured replacement for the SDLC_MANAGER_FAILURE bucket around review
|
|
904
|
+
// actions (create / commit / close / reopen / approve). Fires from both the
|
|
905
|
+
// author side (WorkspaceReviewState — carries sourceInfo from the workspace
|
|
906
|
+
// editor) and the reviewer side (ProjectReviewerStore — no editor mode, so
|
|
907
|
+
// sourceInfo is undefined; projectId / patchReleaseVersionId? / reviewId
|
|
908
|
+
// are carried explicitly on the payload).
|
|
909
|
+
//
|
|
910
|
+
// Non-lifecycle SDLC calls in the same files (fetches, refresh, workspace
|
|
911
|
+
// recreation after commit) stay on the generic SDLC_MANAGER_FAILURE bucket.
|
|
912
|
+
static logEvent_SdlcReviewActionLaunched(service, sourceInfo, data) {
|
|
913
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SDLC_REVIEW_ACTION__LAUNCH, {
|
|
914
|
+
sourceInfo,
|
|
915
|
+
...data,
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
static logEvent_SdlcReviewActionSucceeded(service, sourceInfo, data) {
|
|
919
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SDLC_REVIEW_ACTION__SUCCESS, {
|
|
920
|
+
sourceInfo,
|
|
921
|
+
...data,
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
static logEvent_SdlcReviewActionFailure(service, sourceInfo, data) {
|
|
925
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SDLC_REVIEW_ACTION__FAILURE, {
|
|
926
|
+
sourceInfo,
|
|
927
|
+
...data,
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
// Workspace setup screen actions
|
|
931
|
+
//
|
|
932
|
+
// Structured replacement for the WORKSPACE_SETUP_FAILURE bucket plus the
|
|
933
|
+
// create-project / import-project flows that previously emitted no
|
|
934
|
+
// telemetry at all. Fires from the setup / project picker route, before
|
|
935
|
+
// any editor mode is active — so `sourceInfo` is always undefined.
|
|
936
|
+
static logEvent_SetupActionLaunched(service, data) {
|
|
937
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SETUP_ACTION__LAUNCH, {
|
|
938
|
+
sourceInfo: undefined,
|
|
939
|
+
...data,
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
static logEvent_SetupActionSucceeded(service, data) {
|
|
943
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SETUP_ACTION__SUCCESS, {
|
|
944
|
+
sourceInfo: undefined,
|
|
945
|
+
...data,
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
static logEvent_SetupActionFailure(service, data) {
|
|
949
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SETUP_ACTION__FAILURE, {
|
|
950
|
+
sourceInfo: undefined,
|
|
951
|
+
...data,
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
// Project configuration update lifecycle
|
|
955
|
+
//
|
|
956
|
+
// Structured replacement for the SDLC_MANAGER_FAILURE bucket around the
|
|
957
|
+
// project configuration editor's writes (dependency add/remove, platform
|
|
958
|
+
// configuration, structure version bump, project type toggle). All three
|
|
959
|
+
// top-level flows funnel through `updateProjectConfiguration`, which is
|
|
960
|
+
// the single point where these events are emitted; the `action` field
|
|
961
|
+
// records which entry point the user came from.
|
|
962
|
+
static logEvent_ProjectConfigUpdateLaunched(service, sourceInfo, data) {
|
|
963
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.PROJECT_CONFIG_UPDATE__LAUNCH, {
|
|
964
|
+
sourceInfo,
|
|
965
|
+
...data,
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
static logEvent_ProjectConfigUpdateSucceeded(service, sourceInfo, data) {
|
|
969
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.PROJECT_CONFIG_UPDATE__SUCCESS, {
|
|
970
|
+
sourceInfo,
|
|
971
|
+
...data,
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
static logEvent_ProjectConfigUpdateFailure(service, sourceInfo, data) {
|
|
975
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.PROJECT_CONFIG_UPDATE__FAILURE, {
|
|
976
|
+
sourceInfo,
|
|
977
|
+
...data,
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
// Project overview sidebar SDLC writes
|
|
981
|
+
//
|
|
982
|
+
// Structured replacement for the SDLC_MANAGER_FAILURE bucket around
|
|
983
|
+
// ProjectOverviewState's user-triggered writes (delete workspace, update
|
|
984
|
+
// project metadata, create version, release patch, create patch). Fires
|
|
985
|
+
// from inside the workspace editor so `sourceInfo` is populated; the
|
|
986
|
+
// payload also carries `projectId` explicitly so events remain sliceable
|
|
987
|
+
// without unpacking `sourceInfo`.
|
|
988
|
+
static logEvent_ProjectOverviewActionLaunched(service, sourceInfo, data) {
|
|
989
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.PROJECT_OVERVIEW_ACTION__LAUNCH, {
|
|
990
|
+
sourceInfo,
|
|
991
|
+
...data,
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
static logEvent_ProjectOverviewActionSucceeded(service, sourceInfo, data) {
|
|
995
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.PROJECT_OVERVIEW_ACTION__SUCCESS, {
|
|
996
|
+
sourceInfo,
|
|
997
|
+
...data,
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
static logEvent_ProjectOverviewActionFailure(service, sourceInfo, data) {
|
|
1001
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.PROJECT_OVERVIEW_ACTION__FAILURE, {
|
|
1002
|
+
sourceInfo,
|
|
1003
|
+
...data,
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
// Ad-hoc workspace creation from the editor bootstrap
|
|
1007
|
+
//
|
|
1008
|
+
// Fires when a user deep-links to a workspace that doesn't exist and
|
|
1009
|
+
// picks "Create workspace" from the recovery prompt in EditorStore.
|
|
1010
|
+
// Distinct bucket from SETUP_ACTION.CREATE_WORKSPACE because the
|
|
1011
|
+
// callsite, error-handling, and legacy log bucket
|
|
1012
|
+
// (WORKSPACE_SETUP_FAILURE) are different. `sourceInfo` is omitted —
|
|
1013
|
+
// no editor mode is active yet.
|
|
1014
|
+
static logEvent_SdlcWorkspaceCreateLaunched(service, data) {
|
|
1015
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SDLC_WORKSPACE_CREATE__LAUNCH, {
|
|
1016
|
+
sourceInfo: undefined,
|
|
1017
|
+
...data,
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
static logEvent_SdlcWorkspaceCreateSucceeded(service, data) {
|
|
1021
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SDLC_WORKSPACE_CREATE__SUCCESS, {
|
|
1022
|
+
sourceInfo: undefined,
|
|
1023
|
+
...data,
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
static logEvent_SdlcWorkspaceCreateFailure(service, data) {
|
|
1027
|
+
service.logEvent(LEGEND_STUDIO_APP_EVENT.SDLC_WORKSPACE_CREATE__FAILURE, {
|
|
1028
|
+
sourceInfo: undefined,
|
|
1029
|
+
...data,
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
324
1032
|
}
|
|
325
1033
|
//# sourceMappingURL=LegendStudioTelemetryHelper.js.map
|