@finos/legend-application-query 13.8.52 → 13.8.54
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__/LegendQueryAgentChatTelemetryHelper.d.ts +23 -4
- package/lib/__lib__/LegendQueryAgentChatTelemetryHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryAgentChatTelemetryHelper.js +15 -10
- package/lib/__lib__/LegendQueryAgentChatTelemetryHelper.js.map +1 -1
- package/lib/__lib__/LegendQueryEvent.d.ts +19 -0
- package/lib/__lib__/LegendQueryEvent.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryEvent.js +22 -0
- package/lib/__lib__/LegendQueryEvent.js.map +1 -1
- package/lib/__lib__/LegendQueryLifecycleTelemetry.d.ts +58 -0
- package/lib/__lib__/LegendQueryLifecycleTelemetry.d.ts.map +1 -0
- package/lib/__lib__/LegendQueryLifecycleTelemetry.js +90 -0
- package/lib/__lib__/LegendQueryLifecycleTelemetry.js.map +1 -0
- package/lib/__lib__/LegendQueryNavigation.d.ts +3 -3
- package/lib/__lib__/LegendQueryNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryNavigation.js +13 -3
- package/lib/__lib__/LegendQueryNavigation.js.map +1 -1
- package/lib/__lib__/LegendQuerySourceInfo.d.ts +137 -0
- package/lib/__lib__/LegendQuerySourceInfo.d.ts.map +1 -0
- package/lib/__lib__/LegendQuerySourceInfo.js +33 -0
- package/lib/__lib__/LegendQuerySourceInfo.js.map +1 -0
- package/lib/__lib__/LegendQueryTelemetryHelper.d.ts +127 -1
- package/lib/__lib__/LegendQueryTelemetryHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryTelemetryHelper.js +63 -0
- package/lib/__lib__/LegendQueryTelemetryHelper.js.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.d.ts +4 -4
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.js +4 -5
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +21 -3
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +21 -6
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/data-space/DataSpaceInfo.js +6 -6
- package/lib/components/data-space/DataSpaceInfo.js.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.js +19 -0
- package/lib/components/data-space/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/data-space/LegendQueryDataSpaceQueryBuilder.d.ts.map +1 -1
- package/lib/components/data-space/LegendQueryDataSpaceQueryBuilder.js +19 -0
- package/lib/components/data-space/LegendQueryDataSpaceQueryBuilder.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/light-mode.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/EditExistingQuerySetupStore.d.ts.map +1 -1
- package/lib/stores/EditExistingQuerySetupStore.js +4 -13
- package/lib/stores/EditExistingQuerySetupStore.js.map +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +2 -1
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.js +23 -0
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts +50 -2
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +195 -82
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/QueryProductionizerSetupStore.d.ts.map +1 -1
- package/lib/stores/QueryProductionizerSetupStore.js +17 -13
- package/lib/stores/QueryProductionizerSetupStore.js.map +1 -1
- package/lib/stores/QuerySetupStore.d.ts.map +1 -1
- package/lib/stores/QuerySetupStore.js +2 -0
- package/lib/stores/QuerySetupStore.js.map +1 -1
- package/lib/stores/__test-utils__/LegendQueryApplicationTestUtils.d.ts.map +1 -1
- package/lib/stores/__test-utils__/LegendQueryApplicationTestUtils.js +0 -3
- package/lib/stores/__test-utils__/LegendQueryApplicationTestUtils.js.map +1 -1
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.d.ts.map +1 -1
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js +1 -0
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js.map +1 -1
- package/lib/stores/data-product/DataProductSampleQueryCreatorStore.d.ts +2 -0
- package/lib/stores/data-product/DataProductSampleQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-product/DataProductSampleQueryCreatorStore.js +12 -1
- package/lib/stores/data-product/DataProductSampleQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/DataProductQueryCreatorStore.d.ts +10 -0
- package/lib/stores/data-space/DataProductQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataProductQueryCreatorStore.js +63 -19
- package/lib/stores/data-space/DataProductQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/DataProductSelectorState.d.ts +4 -2
- package/lib/stores/data-space/DataProductSelectorState.d.ts.map +1 -1
- package/lib/stores/data-space/DataProductSelectorState.js +30 -9
- package/lib/stores/data-space/DataProductSelectorState.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryBuilderHelper.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryBuilderHelper.js +5 -1
- package/lib/stores/data-space/DataSpaceQueryBuilderHelper.js.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts +2 -0
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js +13 -7
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/LegendQueryBareQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/data-space/LegendQueryBareQueryBuilderState.js +1 -1
- package/lib/stores/data-space/LegendQueryBareQueryBuilderState.js.map +1 -1
- package/lib/stores/ingest/IngestQueryCreatorStore.d.ts +2 -0
- package/lib/stores/ingest/IngestQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/ingest/IngestQueryCreatorStore.js +10 -3
- package/lib/stores/ingest/IngestQueryCreatorStore.js.map +1 -1
- package/package.json +13 -13
- package/src/__lib__/LegendQueryAgentChatTelemetryHelper.ts +66 -10
- package/src/__lib__/LegendQueryEvent.ts +25 -0
- package/src/__lib__/LegendQueryLifecycleTelemetry.ts +132 -0
- package/src/__lib__/LegendQueryNavigation.ts +24 -5
- package/src/__lib__/LegendQuerySourceInfo.ts +162 -0
- package/src/__lib__/LegendQueryTelemetryHelper.ts +277 -1
- package/src/application/LegendQueryApplicationConfig.ts +12 -12
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +47 -4
- package/src/components/QueryEditor.tsx +30 -2
- package/src/components/data-space/DataSpaceInfo.tsx +8 -8
- package/src/components/data-space/DataSpaceQuerySetup.tsx +25 -0
- package/src/components/data-space/LegendQueryDataSpaceQueryBuilder.tsx +25 -0
- package/src/index.ts +6 -1
- package/src/stores/EditExistingQuerySetupStore.ts +8 -20
- package/src/stores/LegendQueryApplicationPlugin.tsx +38 -0
- package/src/stores/QueryEditorStore.ts +269 -95
- package/src/stores/QueryProductionizerSetupStore.ts +24 -20
- package/src/stores/QuerySetupStore.ts +3 -0
- package/src/stores/__test-utils__/LegendQueryApplicationTestUtils.ts +0 -3
- package/src/stores/data-cube/ExistingQueryDataCubeViewer.ts +1 -0
- package/src/stores/data-product/DataProductSampleQueryCreatorStore.ts +17 -0
- package/src/stores/data-space/DataProductQueryCreatorStore.ts +99 -33
- package/src/stores/data-space/DataProductSelectorState.ts +58 -13
- package/src/stores/data-space/DataSpaceQueryBuilderHelper.ts +6 -1
- package/src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts +17 -6
- package/src/stores/data-space/LegendQueryBareQueryBuilderState.ts +5 -1
- package/src/stores/ingest/IngestQueryCreatorStore.ts +16 -5
- package/tsconfig.json +2 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The entry point a query creator was started from.
|
|
18
|
+
*/
|
|
19
|
+
export var LegendQuerySourceType;
|
|
20
|
+
(function (LegendQuerySourceType) {
|
|
21
|
+
LegendQuerySourceType["MAPPING"] = "mapping";
|
|
22
|
+
LegendQuerySourceType["SERVICE"] = "service";
|
|
23
|
+
LegendQuerySourceType["DATA_SPACE"] = "data-space";
|
|
24
|
+
LegendQuerySourceType["DATA_SPACE_TEMPLATE"] = "data-space.template";
|
|
25
|
+
LegendQuerySourceType["DATA_PRODUCT"] = "data-product";
|
|
26
|
+
LegendQuerySourceType["DATA_PRODUCT_SAMPLE"] = "data-product.sample";
|
|
27
|
+
LegendQuerySourceType["INGEST"] = "ingest";
|
|
28
|
+
/**
|
|
29
|
+
* The default route, when no data product or data space has been selected yet
|
|
30
|
+
*/
|
|
31
|
+
LegendQuerySourceType["UNSELECTED"] = "unselected";
|
|
32
|
+
})(LegendQuerySourceType || (LegendQuerySourceType = {}));
|
|
33
|
+
//# sourceMappingURL=LegendQuerySourceInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendQuerySourceInfo.js","sourceRoot":"","sources":["../../src/__lib__/LegendQuerySourceInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;GAEG;AACH,MAAM,CAAN,IAAY,qBAYX;AAZD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,oEAA2C,CAAA;IAC3C,sDAA6B,CAAA;IAC7B,oEAA2C,CAAA;IAC3C,0CAAiB,CAAA;IACjB;;OAEG;IACH,kDAAyB,CAAA;AAC3B,CAAC,EAZW,qBAAqB,KAArB,qBAAqB,QAYhC"}
|
|
@@ -14,8 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { TelemetryService } from '@finos/legend-application';
|
|
17
|
+
import type { TelemetryErrorFields, TimingsRecord } from '@finos/legend-shared';
|
|
18
|
+
import type { QueryableSourceInfo } from '@finos/legend-storage';
|
|
19
|
+
import type { QueryBuilderTelemetryContext } from '@finos/legend-query-builder';
|
|
17
20
|
import { type GraphManagerOperationReport, type GraphInitializationReport } from '@finos/legend-graph';
|
|
18
|
-
type Query_TelemetryData = {
|
|
21
|
+
export type Query_TelemetryData = {
|
|
19
22
|
query: {
|
|
20
23
|
name: string;
|
|
21
24
|
id: string;
|
|
@@ -33,20 +36,143 @@ type ViewQuery_TelemetryData = Query_TelemetryData & GraphManagerOperationReport
|
|
|
33
36
|
type IntializeQueryState_TelemetryData = Query_TelemetryData & GraphManagerOperationReport & {
|
|
34
37
|
dependenciesCount: number;
|
|
35
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Where the query creator was started from, returned by each creator store's
|
|
41
|
+
* `getInitializeTelemetrySource()`.
|
|
42
|
+
*
|
|
43
|
+
* The entry point the query creator was started from ({@link
|
|
44
|
+
* LegendQuerySourceInfo}) is spread FLAT into this payload, matching how
|
|
45
|
+
* `sourceInfo` is reported on every other query telemetry event.
|
|
46
|
+
*
|
|
47
|
+
* The index signature is what allows those flat keys — they vary by entry point
|
|
48
|
+
* and `LegendQuerySourceInfo` is a union, so they cannot be enumerated here.
|
|
49
|
+
* The union stays strictly typed where it is built, in each creator store's
|
|
50
|
+
* `getSourceInfo()` override.
|
|
51
|
+
*/
|
|
52
|
+
export type InitializeTelemetrySource = Record<PropertyKey, unknown> & {
|
|
53
|
+
/**
|
|
54
|
+
* Whether the most recently visited source was reopened, rather than the
|
|
55
|
+
* source being specified by the route
|
|
56
|
+
*/
|
|
57
|
+
restoredFromRecent: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Base payload for the query creator failure event.
|
|
61
|
+
*
|
|
62
|
+
* There is no success counterpart: a successful load is reported by
|
|
63
|
+
* `query-builder.opened` from `legend-query-builder`, which fires for every
|
|
64
|
+
* route rather than creators only. This one survives because when a load fails
|
|
65
|
+
* there is no query builder to emit from, so it is the only record that an
|
|
66
|
+
* attempt happened.
|
|
67
|
+
*/
|
|
68
|
+
export type InitializeQueryCreator_TelemetryData = InitializeTelemetrySource & {
|
|
69
|
+
timings: TimingsRecord;
|
|
70
|
+
};
|
|
71
|
+
export type InitializeQueryCreatorFailure_TelemetryData = InitializeQueryCreator_TelemetryData & TelemetryErrorFields;
|
|
72
|
+
/**
|
|
73
|
+
* The query a lifecycle event acted on. `id` is always known for update, rename
|
|
74
|
+
* and delete — they act on a query that already exists. Identity beyond the id
|
|
75
|
+
* is partial: a delete resolves the entry from the loaded list, which may not
|
|
76
|
+
* contain it.
|
|
77
|
+
*/
|
|
78
|
+
export type PartialQuery_TelemetryData = {
|
|
79
|
+
query: {
|
|
80
|
+
id: string;
|
|
81
|
+
name?: string | undefined;
|
|
82
|
+
versionId?: string | undefined;
|
|
83
|
+
groupId?: string | undefined;
|
|
84
|
+
artifactId?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Payload for a failed *create*.
|
|
89
|
+
*
|
|
90
|
+
* Deliberately has no `query` block: the server assigns the id, and a failed
|
|
91
|
+
* create never got that far, so no query exists to identify. The name the user
|
|
92
|
+
* chose is the only identity there is. Keeping this a separate type from
|
|
93
|
+
* {@link QueryLifecycleFailure_TelemetryData} means the three events that *do*
|
|
94
|
+
* always have an id cannot accidentally omit it.
|
|
95
|
+
*/
|
|
96
|
+
export type QueryCreateFailure_TelemetryData = {
|
|
97
|
+
queryName: string;
|
|
98
|
+
} & TelemetryErrorFields;
|
|
99
|
+
/**
|
|
100
|
+
* Payload for a failed update, rename or delete — actions on a query that
|
|
101
|
+
* already exists, so `query.id` is always present.
|
|
102
|
+
*/
|
|
103
|
+
export type QueryLifecycleFailure_TelemetryData = PartialQuery_TelemetryData & TelemetryErrorFields;
|
|
104
|
+
/**
|
|
105
|
+
* Payload for a failure during the existing-query load flow (graph build,
|
|
106
|
+
* query state init, viewer load).
|
|
107
|
+
*
|
|
108
|
+
* The query being loaded is identified by its route id — the full identity
|
|
109
|
+
* (`name`, `groupId`, ...) is only known once the query resolves, which by
|
|
110
|
+
* definition may not have happened when these failures fire. `queryId` is
|
|
111
|
+
* therefore the only guaranteed field; anything else that happens to be
|
|
112
|
+
* resolved is merged in via {@link PartialQuery_TelemetryData}.
|
|
113
|
+
*/
|
|
114
|
+
export type QueryLoadFailure_TelemetryData = {
|
|
115
|
+
queryId: string;
|
|
116
|
+
} & Partial<PartialQuery_TelemetryData> & TelemetryErrorFields;
|
|
117
|
+
/**
|
|
118
|
+
* Payload for an in-session data-space or data-product switch made from the
|
|
119
|
+
* query-builder setup panel.
|
|
120
|
+
*
|
|
121
|
+
* `sourceInfo` (the query builder's source info at the moment the switch is
|
|
122
|
+
* made — i.e. what the user is switching *from*) is spread FLAT into the
|
|
123
|
+
* payload, matching how every other query telemetry event reports
|
|
124
|
+
* `sourceInfo`. It is typed as {@link QueryableSourceInfo} rather than
|
|
125
|
+
* `LegendQuerySourceInfo` because it comes off the query builder state
|
|
126
|
+
* (which types it generically) even though at runtime it is always a
|
|
127
|
+
* `LegendQuerySourceInfo` produced by an editor store's `getSourceInfo()`.
|
|
128
|
+
*
|
|
129
|
+
* `to` is the GAV + element path of the target selection: the group,
|
|
130
|
+
* artifact and version the data space / data product lives in, and its
|
|
131
|
+
* element path. A missing GAV (rare, but the `origin` field on
|
|
132
|
+
* `DepotEntityWithOrigin` is optional) is reported as `undefined` rather than
|
|
133
|
+
* omitted, so dashboards can distinguish "no origin" from "field absent".
|
|
134
|
+
*/
|
|
135
|
+
export type ChangeDataSpaceOrProduct_TelemetryData = {
|
|
136
|
+
sourceInfo?: QueryableSourceInfo | undefined;
|
|
137
|
+
to: {
|
|
138
|
+
groupId: string | undefined;
|
|
139
|
+
artifactId: string | undefined;
|
|
140
|
+
versionId: string | undefined;
|
|
141
|
+
path: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
36
144
|
export declare class LegendQueryTelemetryHelper {
|
|
37
145
|
static logEvent_ViewQuerySucceeded(service: TelemetryService, data: ViewQuery_TelemetryData): void;
|
|
38
146
|
static logEvent_InitializeQueryStateSucceeded(service: TelemetryService, data: IntializeQueryState_TelemetryData): void;
|
|
147
|
+
static logEvent_InitializeQueryCreatorFailed(service: TelemetryService, data: InitializeQueryCreatorFailure_TelemetryData): void;
|
|
39
148
|
static logEvent_CreateQuerySucceeded(service: TelemetryService, data: Query_TelemetryData): void;
|
|
40
149
|
static logEvent_HostedDataCubeLaunched(service: TelemetryService, data: Query_TelemetryData): void;
|
|
41
150
|
static logEvent_UpdateQuerySucceeded(service: TelemetryService, data: Query_TelemetryData): void;
|
|
42
151
|
static logEvent_QueryViewProjectLaunched(service: TelemetryService): void;
|
|
43
152
|
static logEvent_QueryViewSdlcProjectLaunched(service: TelemetryService): void;
|
|
153
|
+
static logEvent_AboutQueryInfoLaunched(service: TelemetryService, data: QueryBuilderTelemetryContext): void;
|
|
154
|
+
static logEvent_QueryVersionHistoryLaunched(service: TelemetryService, data: QueryBuilderTelemetryContext): void;
|
|
155
|
+
static logEvent_AboutLegendQueryLaunched(service: TelemetryService, data: QueryBuilderTelemetryContext): void;
|
|
156
|
+
static logEvent_AboutDataSpaceLaunched(service: TelemetryService, data: QueryBuilderTelemetryContext): void;
|
|
157
|
+
static logEvent_AboutDataProductLaunched(service: TelemetryService, data: QueryBuilderTelemetryContext): void;
|
|
158
|
+
static logEvent_AboutIngestLaunched(service: TelemetryService, data: QueryBuilderTelemetryContext): void;
|
|
44
159
|
static logEvent_GraphInitializationSucceeded(service: TelemetryService, data: QueryGraphInitialization_TelemetryData | GraphInitializationReport): void;
|
|
45
160
|
static logEvent_RenameQuerySucceeded(service: TelemetryService, data: Query_TelemetryData): void;
|
|
161
|
+
static logEvent_DeleteQuerySucceeded(service: TelemetryService, data: PartialQuery_TelemetryData): void;
|
|
162
|
+
static logEvent_CreateQueryFailed(service: TelemetryService, data: QueryCreateFailure_TelemetryData): void;
|
|
163
|
+
static logEvent_UpdateQueryFailed(service: TelemetryService, data: QueryLifecycleFailure_TelemetryData): void;
|
|
164
|
+
static logEvent_RenameQueryFailed(service: TelemetryService, data: QueryLifecycleFailure_TelemetryData): void;
|
|
165
|
+
static logEvent_DeleteQueryFailed(service: TelemetryService, data: QueryLifecycleFailure_TelemetryData): void;
|
|
166
|
+
static logEvent_ViewQueryFailed(service: TelemetryService, data: QueryLoadFailure_TelemetryData): void;
|
|
167
|
+
static logEvent_InitializeQueryStateFailed(service: TelemetryService, data: QueryLoadFailure_TelemetryData): void;
|
|
168
|
+
static logEvent_GraphInitializationFailed(service: TelemetryService, data: TelemetryErrorFields & Partial<PartialQuery_TelemetryData>): void;
|
|
169
|
+
static logEvent_ProductionizeQueryLaunched(service: TelemetryService, data: PartialQuery_TelemetryData): void;
|
|
46
170
|
static logEvent_QueryAISuggestLaunched(service: TelemetryService): void;
|
|
47
171
|
static logEvent_QueryAISuggestApplied(service: TelemetryService): void;
|
|
48
172
|
static logEvent_QueryAISuggestDiscarded(service: TelemetryService): void;
|
|
49
173
|
static logEvent_QueryAISuggestFailure(service: TelemetryService, errorMessage: string): void;
|
|
174
|
+
static logEvent_ChangeDataSpace(service: TelemetryService, data: ChangeDataSpaceOrProduct_TelemetryData): void;
|
|
175
|
+
static logEvent_ChangeDataProduct(service: TelemetryService, data: ChangeDataSpaceOrProduct_TelemetryData): void;
|
|
50
176
|
}
|
|
51
177
|
export {};
|
|
52
178
|
//# sourceMappingURL=LegendQueryTelemetryHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendQueryTelemetryHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendQueryTelemetryHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendQueryTelemetryHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendQueryTelemetryHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EACL,KAAK,2BAA2B,EAEhC,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,SA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B,EACzB,IAAI,EAAE,8BAA8B,GACnC,IAAI;IAIP,MAAM,CAAC,mCAAmC,CACxC,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,8BAA8B,GACnC,IAAI;IAOP,MAAM,CAAC,kCAAkC,CACvC,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,0BAA0B,CAAC,GAC/D,IAAI;IAOP,MAAM,CAAC,mCAAmC,CACxC,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,0BAA0B,GAC/B,IAAI;IAIP,MAAM,CAAC,+BAA+B,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAIvE,MAAM,CAAC,8BAA8B,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAItE,MAAM,CAAC,gCAAgC,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAOxE,MAAM,CAAC,8BAA8B,CACnC,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,MAAM,GACnB,IAAI;IAMP,MAAM,CAAC,wBAAwB,CAC7B,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,sCAAsC,GAC3C,IAAI;IAOP,MAAM,CAAC,0BAA0B,CAC/B,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,sCAAsC,GAC3C,IAAI;CAMR"}
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LEGEND_QUERY_APP_EVENT } from './LegendQueryEvent.js';
|
|
17
17
|
import { GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
|
|
18
|
+
const flattenChangeDataSpaceOrProductSourceInfo = (data) => {
|
|
19
|
+
const { sourceInfo, ...rest } = data;
|
|
20
|
+
return { ...rest, ...(sourceInfo ?? {}) };
|
|
21
|
+
};
|
|
18
22
|
export class LegendQueryTelemetryHelper {
|
|
19
23
|
static logEvent_ViewQuerySucceeded(service, data) {
|
|
20
24
|
service.logEvent(LEGEND_QUERY_APP_EVENT.VIEW_QUERY__SUCCESS, data);
|
|
@@ -22,6 +26,9 @@ export class LegendQueryTelemetryHelper {
|
|
|
22
26
|
static logEvent_InitializeQueryStateSucceeded(service, data) {
|
|
23
27
|
service.logEvent(LEGEND_QUERY_APP_EVENT.INITIALIZE_QUERY_STATE__SUCCESS, data);
|
|
24
28
|
}
|
|
29
|
+
static logEvent_InitializeQueryCreatorFailed(service, data) {
|
|
30
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.INITIALIZE_QUERY_CREATOR__FAILURE, data);
|
|
31
|
+
}
|
|
25
32
|
static logEvent_CreateQuerySucceeded(service, data) {
|
|
26
33
|
service.logEvent(LEGEND_QUERY_APP_EVENT.CREATE_QUERY__SUCCESS, data);
|
|
27
34
|
}
|
|
@@ -37,12 +44,62 @@ export class LegendQueryTelemetryHelper {
|
|
|
37
44
|
static logEvent_QueryViewSdlcProjectLaunched(service) {
|
|
38
45
|
service.logEvent(LEGEND_QUERY_APP_EVENT.VIEW_SDLC_PROJECT__LAUNCH, {});
|
|
39
46
|
}
|
|
47
|
+
// ── Query builder Help-menu items injected by Legend Query ───────────────
|
|
48
|
+
//
|
|
49
|
+
// Each takes the shared query builder telemetry envelope (source info flat +
|
|
50
|
+
// `state` nested), pulled from `queryBuilderState.safeGetTelemetryContext()`
|
|
51
|
+
// at the callsite.
|
|
52
|
+
static logEvent_AboutQueryInfoLaunched(service, data) {
|
|
53
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.ABOUT_QUERY_INFO__LAUNCH, data);
|
|
54
|
+
}
|
|
55
|
+
static logEvent_QueryVersionHistoryLaunched(service, data) {
|
|
56
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.QUERY_VERSION_HISTORY__LAUNCH, data);
|
|
57
|
+
}
|
|
58
|
+
static logEvent_AboutLegendQueryLaunched(service, data) {
|
|
59
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.ABOUT_LEGEND_QUERY__LAUNCH, data);
|
|
60
|
+
}
|
|
61
|
+
static logEvent_AboutDataSpaceLaunched(service, data) {
|
|
62
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.ABOUT_DATA_SPACE__LAUNCH, data);
|
|
63
|
+
}
|
|
64
|
+
static logEvent_AboutDataProductLaunched(service, data) {
|
|
65
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.ABOUT_DATA_PRODUCT__LAUNCH, data);
|
|
66
|
+
}
|
|
67
|
+
static logEvent_AboutIngestLaunched(service, data) {
|
|
68
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.ABOUT_INGEST__LAUNCH, data);
|
|
69
|
+
}
|
|
40
70
|
static logEvent_GraphInitializationSucceeded(service, data) {
|
|
41
71
|
service.logEvent(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS, data);
|
|
42
72
|
}
|
|
43
73
|
static logEvent_RenameQuerySucceeded(service, data) {
|
|
44
74
|
service.logEvent(LEGEND_QUERY_APP_EVENT.RENAME_QUERY__SUCCESS, data);
|
|
45
75
|
}
|
|
76
|
+
static logEvent_DeleteQuerySucceeded(service, data) {
|
|
77
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.DELETE_QUERY__SUCCESS, data);
|
|
78
|
+
}
|
|
79
|
+
static logEvent_CreateQueryFailed(service, data) {
|
|
80
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.CREATE_QUERY__FAILURE, data);
|
|
81
|
+
}
|
|
82
|
+
static logEvent_UpdateQueryFailed(service, data) {
|
|
83
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.UPDATE_QUERY__FAILURE, data);
|
|
84
|
+
}
|
|
85
|
+
static logEvent_RenameQueryFailed(service, data) {
|
|
86
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.RENAME_QUERY__FAILURE, data);
|
|
87
|
+
}
|
|
88
|
+
static logEvent_DeleteQueryFailed(service, data) {
|
|
89
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.DELETE_QUERY__FAILURE, data);
|
|
90
|
+
}
|
|
91
|
+
static logEvent_ViewQueryFailed(service, data) {
|
|
92
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.VIEW_QUERY__FAILURE, data);
|
|
93
|
+
}
|
|
94
|
+
static logEvent_InitializeQueryStateFailed(service, data) {
|
|
95
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.INITIALIZE_QUERY_STATE__FAILURE, data);
|
|
96
|
+
}
|
|
97
|
+
static logEvent_GraphInitializationFailed(service, data) {
|
|
98
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.GRAPH_INITIALIZATION__FAILURE, data);
|
|
99
|
+
}
|
|
100
|
+
static logEvent_ProductionizeQueryLaunched(service, data) {
|
|
101
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.PRODUCTIONIZE_QUERY__LAUNCH, data);
|
|
102
|
+
}
|
|
46
103
|
static logEvent_QueryAISuggestLaunched(service) {
|
|
47
104
|
service.logEvent(LEGEND_QUERY_APP_EVENT.LEGENDAI_QUERY_SUGGEST__LAUNCH, {});
|
|
48
105
|
}
|
|
@@ -57,5 +114,11 @@ export class LegendQueryTelemetryHelper {
|
|
|
57
114
|
errorMessage,
|
|
58
115
|
});
|
|
59
116
|
}
|
|
117
|
+
static logEvent_ChangeDataSpace(service, data) {
|
|
118
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.CHANGE_DATA_SPACE, flattenChangeDataSpaceOrProductSourceInfo(data));
|
|
119
|
+
}
|
|
120
|
+
static logEvent_ChangeDataProduct(service, data) {
|
|
121
|
+
service.logEvent(LEGEND_QUERY_APP_EVENT.CHANGE_DATA_PRODUCT, flattenChangeDataSpaceOrProductSourceInfo(data));
|
|
122
|
+
}
|
|
60
123
|
}
|
|
61
124
|
//# sourceMappingURL=LegendQueryTelemetryHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendQueryTelemetryHelper.js","sourceRoot":"","sources":["../../src/__lib__/LegendQueryTelemetryHelper.ts"],"names":[],"mappings":"AAAA;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ACd,sBAAsB,CAAC,mBAAmB,EAC1C,yCAAyC,CAAC,IAAI,CAAC,CAChD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -77,14 +77,13 @@ export interface LegendQueryApplicationConfigurationData extends LegendApplicati
|
|
|
77
77
|
engine: {
|
|
78
78
|
url: string;
|
|
79
79
|
queryUrl?: string;
|
|
80
|
+
useCookieAuthOnly?: boolean;
|
|
81
|
+
queryClientName?: string;
|
|
80
82
|
};
|
|
81
83
|
studio: {
|
|
82
84
|
url: string;
|
|
83
85
|
instances: LegendStudioApplicationInstanceConfigurationData[];
|
|
84
86
|
};
|
|
85
|
-
taxonomy?: {
|
|
86
|
-
url: string;
|
|
87
|
-
};
|
|
88
87
|
dataCube?: {
|
|
89
88
|
url: string;
|
|
90
89
|
};
|
|
@@ -104,9 +103,10 @@ export declare class LegendQueryApplicationConfig extends LegendApplicationConfi
|
|
|
104
103
|
readonly options: LegendQueryApplicationCoreOptions;
|
|
105
104
|
readonly engineServerUrl: string;
|
|
106
105
|
readonly engineQueryServerUrl?: string | undefined;
|
|
106
|
+
readonly engineUseCookieAuthOnly: boolean;
|
|
107
|
+
readonly engineQueryClientName?: string | undefined;
|
|
107
108
|
readonly depotServerUrl: string;
|
|
108
109
|
readonly studioApplicationUrl: string;
|
|
109
|
-
readonly taxonomyApplicationUrl?: string;
|
|
110
110
|
readonly dataCubeApplicationUrl?: string;
|
|
111
111
|
readonly marketplaceApplicationUrl?: string;
|
|
112
112
|
readonly marketplaceProductionParallelUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendQueryApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,oBAAoB,EACpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,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AE,MAAM,CAAC;IACnD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,gDAAgD,EAAE,CACvE;gBAGH,KAAK,EAAE,mCAAmC,CAAC,uCAAuC,CAAC;IAqG5E,+BAA+B,IAAI,MAAM;CAGnD"}
|
|
@@ -88,9 +88,10 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
|
|
|
88
88
|
options = new LegendQueryApplicationCoreOptions();
|
|
89
89
|
engineServerUrl;
|
|
90
90
|
engineQueryServerUrl;
|
|
91
|
+
engineUseCookieAuthOnly;
|
|
92
|
+
engineQueryClientName;
|
|
91
93
|
depotServerUrl;
|
|
92
94
|
studioApplicationUrl;
|
|
93
|
-
taxonomyApplicationUrl;
|
|
94
95
|
dataCubeApplicationUrl;
|
|
95
96
|
marketplaceApplicationUrl;
|
|
96
97
|
marketplaceProductionParallelUrl;
|
|
@@ -106,6 +107,8 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
|
|
|
106
107
|
this.engineQueryServerUrl = input.configData.engine.queryUrl
|
|
107
108
|
? LegendApplicationConfig.resolveAbsoluteUrl(input.configData.engine.queryUrl)
|
|
108
109
|
: undefined;
|
|
110
|
+
this.engineUseCookieAuthOnly = Boolean(input.configData.engine.useCookieAuthOnly);
|
|
111
|
+
this.engineQueryClientName = input.configData.engine.queryClientName;
|
|
109
112
|
// depot
|
|
110
113
|
assertNonNullable(input.configData.depot, `Can't configure application: 'depot' field is missing`);
|
|
111
114
|
this.depotServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(guaranteeNonEmptyString(input.configData.depot.url, `Can't configure application: 'depot.url' field is missing or empty`));
|
|
@@ -113,10 +116,6 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
|
|
|
113
116
|
assertNonNullable(input.configData.studio, `Can't configure application: 'studio' field is missing`);
|
|
114
117
|
this.studioApplicationUrl = LegendApplicationConfig.resolveAbsoluteUrl(guaranteeNonEmptyString(input.configData.studio.url, `Can't configure application: 'studio.url' field is missing or empty`));
|
|
115
118
|
this.studioInstances = guaranteeNonNullable(input.configData.studio.instances, `Can't configure application: 'studio.instances' field is missing`);
|
|
116
|
-
// taxonomy
|
|
117
|
-
if (input.configData.taxonomy?.url) {
|
|
118
|
-
this.taxonomyApplicationUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.taxonomy.url);
|
|
119
|
-
}
|
|
120
119
|
// datacube
|
|
121
120
|
if (input.configData.dataCube?.url) {
|
|
122
121
|
this.dataCubeApplicationUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.dataCube.url);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendQueryApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EAEpB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,GAAG,GACJ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGjE,MAAM,OAAO,4BAA4B;IACvC,YAAY,CAAU;IACtB,kBAAkB,CAAU;IAC5B,iBAAiB,CAAqB;IAEtC,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,4BAA4B,EAAE;QAC9C,YAAY,EAAE,SAAS,EAAE;QACzB,kBAAkB,EAAE,SAAS,EAAE;QAC/B,iBAAiB,EAAE,GAAG,EAA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QAAQ,CAAC,UAAU,CAAC,CAAC;IAC9E,CAAC;;
|
|
1
|
+
{"version":3,"file":"LegendQueryApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EAEpB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,GAAG,GACJ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGjE,MAAM,OAAO,4BAA4B;IACvC,YAAY,CAAU;IACtB,kBAAkB,CAAU;IAC5B,iBAAiB,CAAqB;IAEtC,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,4BAA4B,EAAE;QAC9C,YAAY,EAAE,SAAS,EAAE;QACzB,kBAAkB,EAAE,SAAS,EAAE;QAC/B,iBAAiB,EAAE,GAAG,EAAE;KACzB,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,oCAAoC;IAC/C,GAAG,CAAU;IACb,YAAY,CAAU;IACtB,KAAK,GAAa,EAAE,CAAC;IACrB,aAAa,CAAU;IAEvB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,GAAG,EAAE,SAAS,EAAE;QAChB,YAAY,EAAE,SAAS,EAAE;QACzB,aAAa,EAAE,SAAS,EAAE;QAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;KACzB,CAAC,CACH,CAAC;;AAGJ,MAAM,iCAAiC;IACrC;;;;;;;;OAQG;IACH,oCAAoC,GAClC,EAAE,CAAC;IAEL;;;OA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C,OAAO,GAAG,iCAAiC,CAAC,MAAM,CACrD,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,IAAI,EAAE,CACxC,CAAC;IACJ,CAAC;IAEQ,+BAA+B;QACtC,OAAO,cAAc,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Core_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,6BAA6B,EAClC,4BAA4B,EAE7B,MAAM,2CAA2C,CAAC;AAoCnD,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAG5B,MAAM,2BAA2B,CAAC;AAanC,OAAO,EAEL,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,EACxC,KAAK,iDAAiD,EAEtD,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EAEvC,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"Core_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,6BAA6B,EAClC,4BAA4B,EAE7B,MAAM,2CAA2C,CAAC;AAoCnD,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAG5B,MAAM,2BAA2B,CAAC;AAanC,OAAO,EAEL,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,EACxC,KAAK,iDAAiD,EAEtD,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EAEvC,MAAM,6BAA6B,CAAC;AAyErC,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAwC5D,eAAO,MAAM,kBAAkB;;CAkC7B,CAAC;AAEH,qBAAa,iCAAkC,SAAQ,4BAA4B;IACjF,MAAM,CAAC,IAAI,SAAiD;;IAMnD,yBAAyB,IAAI,sBAAsB,EAAE;IASrD,8BAA8B,IAAI,oBAAoB,EAAE;IA+BxD,sCAAsC,IAAI,6BAA6B,EAAE;IAyGlF,gCAAgC,IAAI,6BAA6B,EAAE;IAWnE,kDAAkD,CAAC,IAAI,mCAAmC,EAAE;IAkJ5F,gDAAgD,CAAC,IAAI,mCAAmC,EAAE;IAgO1F,8CAA8C,CAAC,IAAI,qCAAqC,EAAE;IA0N1F,6CAA6C,CAAC,IAAI,qCAAqC;IAoDvF,yDAAyD,CAAC,IAAI,iDAAiD,EAAE;IAuQjH,yCAAyC,IAAI,iCAAiC,EAAE;CAYjF"}
|
|
@@ -47,6 +47,11 @@ import { LegendQueryDataSpaceQueryBuilderState } from '../stores/data-space/quer
|
|
|
47
47
|
import { LegendQueryDataProductQueryBuilderState } from '../stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js';
|
|
48
48
|
import { IngestLegendQueryBuilderState } from '../stores/ingest/IngestLegendQueryBuilderState.js';
|
|
49
49
|
import { renderDataProductSampleQueryPanelContent } from './data-product/DataProductSampleQueryPanel.js';
|
|
50
|
+
const isDataProductOrIngestQuery = (queryBuilderState) => queryBuilderState instanceof DataProductQueryBuilderState ||
|
|
51
|
+
queryBuilderState instanceof IngestLegendQueryBuilderState;
|
|
52
|
+
const getUnsupportedExportActionMessage = (queryBuilderState) => isDataProductOrIngestQuery(queryBuilderState)
|
|
53
|
+
? 'Not supported for Data Product or Ingest queries'
|
|
54
|
+
: 'Requires saved query';
|
|
50
55
|
export const QUERY_DATACUBE_USAGE_TITLE = 'Legend DataCube';
|
|
51
56
|
const QUERY_DATACUBE_SOURCE_TYPE = 'legendQuery';
|
|
52
57
|
const CopyButton = ({ onClick }) => (_jsxs("button", { className: "query-usage-viewer__code-action__action", tabIndex: -1, title: "Copy", onClick: onClick, children: [_jsx(CopyIcon, {}), "Copy"] }));
|
|
@@ -221,6 +226,9 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
221
226
|
title: 'Promote Curated Template query...',
|
|
222
227
|
label: 'Curated Template Query',
|
|
223
228
|
disableFunc: (queryBuilderState) => {
|
|
229
|
+
if (isDataProductOrIngestQuery(queryBuilderState)) {
|
|
230
|
+
return true;
|
|
231
|
+
}
|
|
224
232
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
|
225
233
|
QueryBuilderActionConfig_QueryApplication) {
|
|
226
234
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
@@ -261,13 +269,16 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
261
269
|
}
|
|
262
270
|
},
|
|
263
271
|
icon: _jsx(ArrowCircleUpIcon, {}),
|
|
264
|
-
|
|
272
|
+
getDisableMessage: getUnsupportedExportActionMessage,
|
|
265
273
|
},
|
|
266
274
|
{
|
|
267
275
|
key: 'legend-datacube-query',
|
|
268
276
|
title: 'Launch Legend DataCube...',
|
|
269
277
|
label: 'Legend DataCube',
|
|
270
278
|
disableFunc: (queryBuilderState) => {
|
|
279
|
+
if (isDataProductOrIngestQuery(queryBuilderState)) {
|
|
280
|
+
return true;
|
|
281
|
+
}
|
|
271
282
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
|
272
283
|
QueryBuilderActionConfig_QueryApplication) {
|
|
273
284
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
@@ -299,7 +310,7 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
299
310
|
}
|
|
300
311
|
},
|
|
301
312
|
icon: _jsx(CubeIcon, {}),
|
|
302
|
-
|
|
313
|
+
getDisableMessage: getUnsupportedExportActionMessage,
|
|
303
314
|
},
|
|
304
315
|
];
|
|
305
316
|
}
|
|
@@ -324,6 +335,7 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
324
335
|
QueryBuilderActionConfig_QueryApplication) {
|
|
325
336
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
326
337
|
if (editorStore instanceof ExistingQueryEditorStore) {
|
|
338
|
+
LegendQueryTelemetryHelper.logEvent_AboutQueryInfoLaunched(editorStore.applicationStore.telemetryService, queryBuilderState.safeGetTelemetryContext());
|
|
327
339
|
editorStore.updateState.setShowQueryInfo(true);
|
|
328
340
|
}
|
|
329
341
|
}
|
|
@@ -347,6 +359,7 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
347
359
|
QueryBuilderActionConfig_QueryApplication) {
|
|
348
360
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
349
361
|
if (editorStore instanceof ExistingQueryEditorStore) {
|
|
362
|
+
LegendQueryTelemetryHelper.logEvent_QueryVersionHistoryLaunched(editorStore.applicationStore.telemetryService, queryBuilderState.safeGetTelemetryContext());
|
|
350
363
|
editorStore.showQueryVersionHistory();
|
|
351
364
|
}
|
|
352
365
|
}
|
|
@@ -389,6 +402,7 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
389
402
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
|
390
403
|
QueryBuilderActionConfig_QueryApplication) {
|
|
391
404
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
405
|
+
LegendQueryTelemetryHelper.logEvent_AboutLegendQueryLaunched(editorStore.applicationStore.telemetryService, queryBuilderState.safeGetTelemetryContext());
|
|
392
406
|
editorStore.setShowAppInfo(true);
|
|
393
407
|
}
|
|
394
408
|
},
|
|
@@ -412,6 +426,7 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
412
426
|
QueryBuilderActionConfig_QueryApplication) {
|
|
413
427
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
414
428
|
if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
|
429
|
+
LegendQueryTelemetryHelper.logEvent_AboutDataSpaceLaunched(editorStore.applicationStore.telemetryService, queryBuilderState.safeGetTelemetryContext());
|
|
415
430
|
editorStore.setShowDataspaceInfo(true);
|
|
416
431
|
}
|
|
417
432
|
}
|
|
@@ -436,6 +451,7 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
436
451
|
QueryBuilderActionConfig_QueryApplication) {
|
|
437
452
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
438
453
|
if (queryBuilderState instanceof DataProductQueryBuilderState) {
|
|
454
|
+
LegendQueryTelemetryHelper.logEvent_AboutDataProductLaunched(editorStore.applicationStore.telemetryService, queryBuilderState.safeGetTelemetryContext());
|
|
439
455
|
editorStore.setShowDataProductInfo(true);
|
|
440
456
|
}
|
|
441
457
|
}
|
|
@@ -451,7 +467,9 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
|
451
467
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
|
452
468
|
QueryBuilderActionConfig_QueryApplication &&
|
|
453
469
|
queryBuilderState instanceof IngestLegendQueryBuilderState) {
|
|
454
|
-
queryBuilderState.workflowState.actionConfig.editorStore
|
|
470
|
+
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
|
471
|
+
LegendQueryTelemetryHelper.logEvent_AboutIngestLaunched(editorStore.applicationStore.telemetryService, queryBuilderState.safeGetTelemetryContext());
|
|
472
|
+
editorStore.setShowIngestInfo(true);
|
|
455
473
|
}
|
|
456
474
|
},
|
|
457
475
|
icon: _jsx(InfoCircleIcon, {}),
|