@gooddata/sdk-ui-analytical-designer 11.69.0-alpha.2 → 11.69.0-alpha.4
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/NOTICE +47 -47
- package/esm/actions/data_actions.d.ts +2 -1
- package/esm/actions/data_actions.d.ts.map +1 -1
- package/esm/actions/data_actions.js +2 -2
- package/esm/backend.d.ts +15 -1
- package/esm/backend.d.ts.map +1 -1
- package/esm/backend.js +26 -2
- package/esm/components/DeleteReportDialog.d.ts.map +1 -1
- package/esm/components/DeleteReportDialog.js +12 -8
- package/esm/components/DeleteReportDialogUsageList.d.ts +2 -4
- package/esm/components/DeleteReportDialogUsageList.d.ts.map +1 -1
- package/esm/components/DeleteReportDialogUsageList.js +10 -7
- package/esm/components/InsightUsageOnDashboards.d.ts.map +1 -1
- package/esm/components/InsightUsageOnDashboards.js +16 -8
- package/esm/components/Report.d.ts +3 -1
- package/esm/components/Report.d.ts.map +1 -1
- package/esm/components/Report.js +13 -4
- package/esm/components/SaveReportFromKDDialog.js +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts +1 -0
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/supportedPresetsHook.js +1 -0
- package/esm/components/header/EditorActions.d.ts +1 -0
- package/esm/components/header/EditorActions.d.ts.map +1 -1
- package/esm/components/header/EditorActions.js +1 -0
- package/esm/components/header/OptionsMenu/useOptionsProps.d.ts +1 -0
- package/esm/components/header/OptionsMenu/useOptionsProps.d.ts.map +1 -1
- package/esm/components/header/OptionsMenu/useOptionsProps.js +1 -0
- package/esm/components/report/executionProgress/ExecutionProgressPanel.d.ts +12 -0
- package/esm/components/report/executionProgress/ExecutionProgressPanel.d.ts.map +1 -0
- package/esm/components/report/executionProgress/ExecutionProgressPanel.js +157 -0
- package/esm/components/report/executionProgress/ExecutionProgressSteps.d.ts +17 -0
- package/esm/components/report/executionProgress/ExecutionProgressSteps.d.ts.map +1 -0
- package/esm/components/report/executionProgress/ExecutionProgressSteps.js +122 -0
- package/esm/components/report/executionProgress/ExecutionStats.d.ts +10 -0
- package/esm/components/report/executionProgress/ExecutionStats.d.ts.map +1 -0
- package/esm/components/report/executionProgress/ExecutionStats.js +105 -0
- package/esm/components/report/executionProgress/timeline.d.ts +34 -0
- package/esm/components/report/executionProgress/timeline.d.ts.map +1 -0
- package/esm/components/report/executionProgress/timeline.js +51 -0
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts +2 -2
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.d.ts.map +1 -1
- package/esm/components/saveReportFromKD/InsightUsageOnDashboardsList.js +13 -6
- package/esm/models/metadata.d.ts +3 -0
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +3 -0
- package/esm/reducers/combined_root_reducer.d.ts +3 -0
- package/esm/reducers/combined_root_reducer.d.ts.map +1 -1
- package/esm/reducers/combined_root_reducer.js +2 -0
- package/esm/sagas/execute_report_sagas.d.ts +1 -0
- package/esm/sagas/execute_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.d.ts +3 -1
- package/esm/sagas/open_report_sagas.d.ts.map +1 -1
- package/esm/sagas/open_report_sagas.js +7 -2
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/sagas/sagas.js +4 -0
- package/esm/selectors/feature_flag_selector.d.ts +23 -2
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +2 -0
- package/esm/selectors/report_selector.js +1 -1
- package/esm/selectors/report_visualization_selector.d.ts +4 -0
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_from_kd_dialog_selector.d.ts +10 -10
- package/esm/selectors/save_report_selector.d.ts +12 -12
- package/esm/selectors/save_report_selector.js +1 -1
- package/esm/services/buckets_service.d.ts +1 -0
- package/esm/services/buckets_service.d.ts.map +1 -1
- package/esm/store/execution_progress/execution_loading_view_model.d.ts +72 -0
- package/esm/store/execution_progress/execution_loading_view_model.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_loading_view_model.js +122 -0
- package/esm/store/execution_progress/execution_progress_actions.d.ts +42 -0
- package/esm/store/execution_progress/execution_progress_actions.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_actions.js +19 -0
- package/esm/store/execution_progress/execution_progress_mock.d.ts +31 -0
- package/esm/store/execution_progress/execution_progress_mock.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_mock.js +458 -0
- package/esm/store/execution_progress/execution_progress_saga.d.ts +56 -0
- package/esm/store/execution_progress/execution_progress_saga.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_saga.js +226 -0
- package/esm/store/execution_progress/execution_progress_selectors.d.ts +66 -0
- package/esm/store/execution_progress/execution_progress_selectors.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_selectors.js +7 -0
- package/esm/store/execution_progress/execution_progress_slice.d.ts +4 -0
- package/esm/store/execution_progress/execution_progress_slice.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_slice.js +95 -0
- package/esm/store/execution_progress/execution_progress_state.d.ts +54 -0
- package/esm/store/execution_progress/execution_progress_state.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_state.js +12 -0
- package/esm/store/execution_progress/execution_progress_view_model.d.ts +136 -0
- package/esm/store/execution_progress/execution_progress_view_model.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_progress_view_model.js +378 -0
- package/esm/store/execution_progress/execution_stats_view_model.d.ts +42 -0
- package/esm/store/execution_progress/execution_stats_view_model.d.ts.map +1 -0
- package/esm/store/execution_progress/execution_stats_view_model.js +51 -0
- package/esm/store/insight_usage/insight_usage_helpers.d.ts +13 -3
- package/esm/store/insight_usage/insight_usage_helpers.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_helpers.js +37 -1
- package/esm/store/insight_usage/insight_usage_selectors.d.ts +5 -6
- package/esm/store/insight_usage/insight_usage_selectors.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_selectors.js +5 -4
- package/esm/store/insight_usage/insight_usage_slice.d.ts.map +1 -1
- package/esm/store/insight_usage/insight_usage_slice.js +1 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts +8 -0
- package/esm/store/insight_usage/insight_usage_state.d.ts.map +1 -1
- package/esm/store/types.d.ts +3 -0
- package/esm/store/types.d.ts.map +1 -1
- package/esm/translations/en-US.json +196 -0
- package/esm/utils/api.d.ts +6 -1
- package/esm/utils/api.d.ts.map +1 -1
- package/esm/utils/api.js +28 -0
- package/package.json +21 -21
- package/styles/css/execution_progress.css +486 -0
- package/styles/css/execution_progress.css.map +1 -0
- package/styles/css/main.css +485 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/_ad_partials.scss +1 -0
- package/styles/scss/execution_progress.scss +547 -0
|
@@ -30,8 +30,8 @@ export declare const isUsedOutsideSourceDashboard: ((state: IAppState) => boolea
|
|
|
30
30
|
resultsCount: () => number;
|
|
31
31
|
resetResultsCount: () => void;
|
|
32
32
|
} & {
|
|
33
|
-
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").
|
|
34
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").
|
|
33
|
+
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments, resultFuncArgs_2: string) => boolean;
|
|
34
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments, resultFuncArgs_2: string) => boolean) & {
|
|
35
35
|
clearCache: () => void;
|
|
36
36
|
resultsCount: () => number;
|
|
37
37
|
resetResultsCount: () => void;
|
|
@@ -57,18 +57,18 @@ export declare const isUsedOutsideSourceDashboard: ((state: IAppState) => boolea
|
|
|
57
57
|
} & {
|
|
58
58
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
59
59
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
60
|
-
}, ((state: IAppState) => import("../store/insight_usage/insight_usage_state.js").
|
|
60
|
+
}, ((state: IAppState) => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments) & {
|
|
61
61
|
clearCache: () => void;
|
|
62
62
|
resultsCount: () => number;
|
|
63
63
|
resetResultsCount: () => void;
|
|
64
64
|
} & {
|
|
65
|
-
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").
|
|
66
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").
|
|
65
|
+
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments;
|
|
66
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments) & {
|
|
67
67
|
clearCache: () => void;
|
|
68
68
|
resultsCount: () => number;
|
|
69
69
|
resetResultsCount: () => void;
|
|
70
70
|
};
|
|
71
|
-
lastResult: () => import("../store/insight_usage/insight_usage_state.js").
|
|
71
|
+
lastResult: () => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments;
|
|
72
72
|
dependencies: [typeof import("../store/insight_usage/insight_usage_selectors.js").getInsightUsageState];
|
|
73
73
|
recomputations: () => number;
|
|
74
74
|
resetRecomputations: () => void;
|
|
@@ -123,8 +123,8 @@ export declare const saveReportSelector: ((state: IAppState) => {
|
|
|
123
123
|
resultsCount: () => number;
|
|
124
124
|
resetResultsCount: () => void;
|
|
125
125
|
} & {
|
|
126
|
-
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").
|
|
127
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").
|
|
126
|
+
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments, resultFuncArgs_2: string) => boolean;
|
|
127
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageOnDashboard, resultFuncArgs_1: import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments, resultFuncArgs_2: string) => boolean) & {
|
|
128
128
|
clearCache: () => void;
|
|
129
129
|
resultsCount: () => number;
|
|
130
130
|
resetResultsCount: () => void;
|
|
@@ -150,18 +150,18 @@ export declare const saveReportSelector: ((state: IAppState) => {
|
|
|
150
150
|
} & {
|
|
151
151
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
152
152
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
153
|
-
}, ((state: IAppState) => import("../store/insight_usage/insight_usage_state.js").
|
|
153
|
+
}, ((state: IAppState) => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments) & {
|
|
154
154
|
clearCache: () => void;
|
|
155
155
|
resultsCount: () => number;
|
|
156
156
|
resetResultsCount: () => void;
|
|
157
157
|
} & {
|
|
158
|
-
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").
|
|
159
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").
|
|
158
|
+
resultFunc: (resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments;
|
|
159
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../store/insight_usage/insight_usage_state.js").IInsightUsageState) => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments) & {
|
|
160
160
|
clearCache: () => void;
|
|
161
161
|
resultsCount: () => number;
|
|
162
162
|
resetResultsCount: () => void;
|
|
163
163
|
};
|
|
164
|
-
lastResult: () => import("../store/insight_usage/insight_usage_state.js").
|
|
164
|
+
lastResult: () => import("../store/insight_usage/insight_usage_state.js").IInsightUsageInDocuments;
|
|
165
165
|
dependencies: [typeof import("../store/insight_usage/insight_usage_selectors.js").getInsightUsageState];
|
|
166
166
|
recomputations: () => number;
|
|
167
167
|
resetRecomputations: () => void;
|
|
@@ -224,7 +224,7 @@ export const showDisabledSaveButtonTooltip = (state) => !!getRouteQueryAsOfDate(
|
|
|
224
224
|
export const isSaveAsNewDisabledSelector = (state) => !reportCanBeSaved(state) || savingInProgressSelector(state);
|
|
225
225
|
export const isUsedOutsideSourceDashboard = createSelector(getInsightUsageOnDashboardsSelector, getInsightUsageInDocumentsSelector, getSourceDashboardId, (usages, documents, sourceDashboardId) => {
|
|
226
226
|
const isUsedOnOtherDashboard = usages.allDashboards.filter((usage) => usage.id != sourceDashboardId).length > 0;
|
|
227
|
-
return isUsedOnOtherDashboard || documents.
|
|
227
|
+
return isUsedOnOtherDashboard || documents.allDocumentsCount > 0;
|
|
228
228
|
});
|
|
229
229
|
export const saveReportSelector = createSelector(isSavingSelector, isSaveDisabledSelector, isUsedOutsideSourceDashboard, isEditFromKD, showDisabledSaveButtonTooltip, (isSaving, isDisabled, usedOnOther, editingFromKD, showDisabledTooltip) => ({
|
|
230
230
|
isSaving,
|
|
@@ -35,6 +35,7 @@ export declare function bucketsWereChanged(state: IAppState, valid?: boolean): {
|
|
|
35
35
|
};
|
|
36
36
|
report: {
|
|
37
37
|
execution: import("../store/execution/execution_state.js").IExecutionState;
|
|
38
|
+
executionProgress: import("../store/execution_progress/execution_progress_state.js").IExecutionProgressState;
|
|
38
39
|
saving: import("../store/report/report_state.js").IReportSavingState;
|
|
39
40
|
savingAsNew: import("../store/report/report_state.js").IReportSavingAsNewState;
|
|
40
41
|
opening: import("../store/report/report_state.js").IReportOpeningState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buckets_service.d.ts","sourceRoot":"","sources":["../../src/services/buckets_service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAQ,KAAK,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAYnF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAmBzE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AA8ChF,OAAO,EAEH,KAAK,uBAAuB,EAE/B,MAAM,4CAA4C,CAAC;AASpD,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAclF,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAO3G,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EACH,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,WAAW,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBA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gB,sCAAsC,CAClD,OAAO,EAAE,WAAW,EAGpB,eAAe,EAAE,WAAW,GAAG,wBAAwB,GAAG,SAAS,EACnE,mBAAmB,EAAE,aAAa,CAAC,OAAO,CAAC,EAC3C,qBAAqB,EAAE,YAAY,EAAE,EACrC,YAAY,EAAE,iBAAiB,GAChC,iBAAiB,CAKnB;AAwBD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE3D"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type ExecutionProgressStepState, type IExecutionProgressSourceViewModel, type IExecutionProgressViewModel } from "./execution_progress_view_model.js";
|
|
2
|
+
/**
|
|
3
|
+
* The sub-steps of the loading view (chronological, only once started; `render` is the header):
|
|
4
|
+
*
|
|
5
|
+
* - `cache` — Checking local cache: the root start until it missed its cache (requested its children).
|
|
6
|
+
* - `prepare` — Preparing the query: preprocessing and SQL generation, until the query is requested.
|
|
7
|
+
* - `query` — Querying data: the data source query, one row per data source when federated.
|
|
8
|
+
* - `render` — Rendering visualisation: post-processing and drawing the chart, until the view closes.
|
|
9
|
+
*/
|
|
10
|
+
export type ExecutionLoadingStepKind = "cache" | "prepare" | "query" | "render";
|
|
11
|
+
export interface IExecutionLoadingStepViewModel {
|
|
12
|
+
kind: ExecutionLoadingStepKind;
|
|
13
|
+
state: ExecutionProgressStepState;
|
|
14
|
+
/** server time */
|
|
15
|
+
startedAt?: number;
|
|
16
|
+
finishedAt?: number;
|
|
17
|
+
/** query: the data source queried (one data source) */
|
|
18
|
+
dataSourceId?: string;
|
|
19
|
+
dataSourceName?: string;
|
|
20
|
+
/** query: one entry per data source of a federated query */
|
|
21
|
+
sources?: IExecutionProgressSourceViewModel[];
|
|
22
|
+
/** query: the federated source that is (or was) the slowest */
|
|
23
|
+
slowestSourceResultId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* - `compact` — the single "Computing the visualisation" line: before anything is known, and for any
|
|
27
|
+
* result served from a cache (backend result cache, raw cache, browser cache).
|
|
28
|
+
* - `steps` — the step list: the data comes from the data source.
|
|
29
|
+
*/
|
|
30
|
+
export type ExecutionLoadingMode = "compact" | "steps";
|
|
31
|
+
export interface IExecutionLoadingViewModel {
|
|
32
|
+
mode: ExecutionLoadingMode;
|
|
33
|
+
steps: IExecutionLoadingStepViewModel[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Builds the loading view from the execution progress. It expands into the steps only once the data
|
|
37
|
+
* is known to come from the data source — the SQL is generated or a query requested — so a cache hit
|
|
38
|
+
* never flashes the steps.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildExecutionLoadingViewModel(progress: IExecutionProgressViewModel): IExecutionLoadingViewModel;
|
|
41
|
+
/** "100ms" under a second, whole seconds rounded down from it ("7s"), as in the design */
|
|
42
|
+
export declare function formatStepDuration(ms: number): string;
|
|
43
|
+
/**
|
|
44
|
+
* The duration a sub-step (or a federated source) shows: a finished one always its duration; a
|
|
45
|
+
* running one a live whole-second timer from 1 s on, nothing before.
|
|
46
|
+
*/
|
|
47
|
+
export declare function loadingStepDuration(step: {
|
|
48
|
+
startedAt?: number;
|
|
49
|
+
finishedAt?: number;
|
|
50
|
+
state: ExecutionProgressStepState;
|
|
51
|
+
}, serverNow: number): string | undefined;
|
|
52
|
+
/** consecutive steps appear at least this far apart, even when their events arrive together */
|
|
53
|
+
export declare const STEP_REVEAL_GAP_MS = 350;
|
|
54
|
+
/**
|
|
55
|
+
* The reveal queue of the step list: how many steps (in chronological order) are shown, and when the
|
|
56
|
+
* last one appeared.
|
|
57
|
+
*/
|
|
58
|
+
export interface IStepRevealState {
|
|
59
|
+
revealed: number;
|
|
60
|
+
lastRevealAt: number;
|
|
61
|
+
}
|
|
62
|
+
export declare const initialStepRevealState: IStepRevealState;
|
|
63
|
+
/**
|
|
64
|
+
* Reveals the next started step once the gap since the previous reveal passed; one step at a time.
|
|
65
|
+
* `started` is the number of steps that have started. Never hides a step already shown.
|
|
66
|
+
*/
|
|
67
|
+
export declare function advanceStepReveal(state: IStepRevealState, started: number, now: number): IStepRevealState;
|
|
68
|
+
/** when the next queued step is due, or undefined when nothing is queued */
|
|
69
|
+
export declare function nextStepRevealAt(state: IStepRevealState, started: number): number | undefined;
|
|
70
|
+
/** the sub-steps revealed so far, in chronological order */
|
|
71
|
+
export declare function revealedLoadingSteps(steps: IExecutionLoadingStepViewModel[], revealed: number): IExecutionLoadingStepViewModel[];
|
|
72
|
+
//# sourceMappingURL=execution_loading_view_model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution_loading_view_model.d.ts","sourceRoot":"","sources":["../../../src/store/execution_progress/execution_loading_view_model.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EAEtC,KAAK,2BAA2B,EACnC,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhF,MAAM,WAAW,8BAA8B;IAC3C,IAAI,EAAE,wBAAwB,CAAC;IAC/B,KAAK,EAAE,0BAA0B,CAAC;IAClC,kBAAkB;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAC9C,+DAA+D;IAC/D,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvD,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,8BAA8B,EAAE,CAAC;CAC3C;AAID;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC1C,QAAQ,EAAE,2BAA2B,GACtC,0BAA0B,CAyF5B;AAED,0FAA0F;AAC1F,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAC/B,IAAI,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,0BAA0B,CAAA;CAAE,EACpF,SAAS,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CASpB;AAED,+FAA+F;AAC/F,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,sBAAsB,EAAE,gBAA2D,CAAC;AAEjG;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAKzG;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE7F;AAED,4DAA4D;AAC5D,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,8BAA8B,EAAE,EACvC,QAAQ,EAAE,MAAM,GACjB,8BAA8B,EAAE,CAElC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
const COMPACT = { mode: "compact", steps: [] };
|
|
3
|
+
/**
|
|
4
|
+
* Builds the loading view from the execution progress. It expands into the steps only once the data
|
|
5
|
+
* is known to come from the data source — the SQL is generated or a query requested — so a cache hit
|
|
6
|
+
* never flashes the steps.
|
|
7
|
+
*/
|
|
8
|
+
export function buildExecutionLoadingViewModel(progress) {
|
|
9
|
+
if (progress.source === "browserCache" || progress.cacheHit || !progress.hasEvents) {
|
|
10
|
+
return COMPACT;
|
|
11
|
+
}
|
|
12
|
+
const step = (kind) => progress.steps.find((candidate) => candidate.kind === kind);
|
|
13
|
+
const preparing = step("preparing");
|
|
14
|
+
const sqlGeneration = step("sqlGeneration");
|
|
15
|
+
const query = step("federation") ?? step("query");
|
|
16
|
+
const postprocessing = step("postprocessing");
|
|
17
|
+
// a federation whose sources all came from the raw cache queried nothing, like a single
|
|
18
|
+
// source served from the raw cache
|
|
19
|
+
const servedFromCache = query?.cacheHit === true ||
|
|
20
|
+
(query?.sources !== undefined &&
|
|
21
|
+
query.sources.length > 0 &&
|
|
22
|
+
query.sources.every((source) => source.cacheHit));
|
|
23
|
+
const queried = query !== undefined && query.state !== "pending" && !servedFromCache;
|
|
24
|
+
if (servedFromCache || (!sqlGeneration && !queried)) {
|
|
25
|
+
return COMPACT;
|
|
26
|
+
}
|
|
27
|
+
const failed = progress.phase === "failed";
|
|
28
|
+
const settle = (startedAt, finishedAt) => {
|
|
29
|
+
if (startedAt === undefined) {
|
|
30
|
+
return "pending";
|
|
31
|
+
}
|
|
32
|
+
if (finishedAt !== undefined) {
|
|
33
|
+
return "done";
|
|
34
|
+
}
|
|
35
|
+
return failed ? "failed" : "running";
|
|
36
|
+
};
|
|
37
|
+
const queryStartedAt = queried ? query.startedAt : undefined;
|
|
38
|
+
// rendering follows the post-processing, or a successful query without one; never a failed query
|
|
39
|
+
const renderStartedAt = postprocessing && postprocessing.state !== "pending"
|
|
40
|
+
? postprocessing.startedAt
|
|
41
|
+
: query?.state === "done"
|
|
42
|
+
? query.finishedAt
|
|
43
|
+
: undefined;
|
|
44
|
+
const cacheStartedAt = progress.startedAt;
|
|
45
|
+
const cacheFinishedAt = progress.childrenRequestedAt ?? sqlGeneration?.startedAt ?? preparing?.finishedAt ?? queryStartedAt;
|
|
46
|
+
const prepareFinishedAt = queryStartedAt ?? renderStartedAt;
|
|
47
|
+
const steps = [
|
|
48
|
+
{
|
|
49
|
+
kind: "cache",
|
|
50
|
+
state: settle(cacheStartedAt, cacheFinishedAt),
|
|
51
|
+
startedAt: cacheStartedAt,
|
|
52
|
+
finishedAt: cacheFinishedAt,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
kind: "prepare",
|
|
56
|
+
state: settle(cacheFinishedAt, prepareFinishedAt),
|
|
57
|
+
startedAt: cacheFinishedAt,
|
|
58
|
+
finishedAt: prepareFinishedAt,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
kind: "query",
|
|
62
|
+
state: queried ? query.state : "pending",
|
|
63
|
+
startedAt: queryStartedAt,
|
|
64
|
+
finishedAt: queried ? query.finishedAt : undefined,
|
|
65
|
+
dataSourceId: query?.dataSourceId ?? sqlGeneration?.dataSourceId,
|
|
66
|
+
dataSourceName: query?.dataSourceName ?? sqlGeneration?.dataSourceName,
|
|
67
|
+
...(query?.sources ? { sources: query.sources } : {}),
|
|
68
|
+
...(query?.slowestSourceResultId ? { slowestSourceResultId: query.slowestSourceResultId } : {}),
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
kind: "render",
|
|
72
|
+
// drawing the chart follows the computation: it runs until the view closes
|
|
73
|
+
state: settle(renderStartedAt, undefined),
|
|
74
|
+
startedAt: renderStartedAt,
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
// chronological, appended below the "Rendering visualisation" header; future steps are not shown,
|
|
78
|
+
// and the rendering itself is the header
|
|
79
|
+
return {
|
|
80
|
+
mode: "steps",
|
|
81
|
+
steps: steps.filter((loadingStep) => loadingStep.state !== "pending" && loadingStep.kind !== "render"),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/** "100ms" under a second, whole seconds rounded down from it ("7s"), as in the design */
|
|
85
|
+
export function formatStepDuration(ms) {
|
|
86
|
+
return ms < 1000 ? `${Math.max(0, Math.round(ms))}ms` : `${Math.floor(ms / 1000)}s`;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The duration a sub-step (or a federated source) shows: a finished one always its duration; a
|
|
90
|
+
* running one a live whole-second timer from 1 s on, nothing before.
|
|
91
|
+
*/
|
|
92
|
+
export function loadingStepDuration(step, serverNow) {
|
|
93
|
+
if (step.startedAt === undefined || step.state === "pending") {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
if (step.finishedAt !== undefined) {
|
|
97
|
+
return formatStepDuration(step.finishedAt - step.startedAt);
|
|
98
|
+
}
|
|
99
|
+
const runningMs = serverNow - step.startedAt;
|
|
100
|
+
return runningMs >= 1000 ? formatStepDuration(runningMs) : undefined;
|
|
101
|
+
}
|
|
102
|
+
/** consecutive steps appear at least this far apart, even when their events arrive together */
|
|
103
|
+
export const STEP_REVEAL_GAP_MS = 350;
|
|
104
|
+
export const initialStepRevealState = { revealed: 0, lastRevealAt: -Infinity };
|
|
105
|
+
/**
|
|
106
|
+
* Reveals the next started step once the gap since the previous reveal passed; one step at a time.
|
|
107
|
+
* `started` is the number of steps that have started. Never hides a step already shown.
|
|
108
|
+
*/
|
|
109
|
+
export function advanceStepReveal(state, started, now) {
|
|
110
|
+
if (state.revealed >= started || now - state.lastRevealAt < STEP_REVEAL_GAP_MS) {
|
|
111
|
+
return state;
|
|
112
|
+
}
|
|
113
|
+
return { revealed: state.revealed + 1, lastRevealAt: now };
|
|
114
|
+
}
|
|
115
|
+
/** when the next queued step is due, or undefined when nothing is queued */
|
|
116
|
+
export function nextStepRevealAt(state, started) {
|
|
117
|
+
return state.revealed < started ? state.lastRevealAt + STEP_REVEAL_GAP_MS : undefined;
|
|
118
|
+
}
|
|
119
|
+
/** the sub-steps revealed so far, in chronological order */
|
|
120
|
+
export function revealedLoadingSteps(steps, revealed) {
|
|
121
|
+
return steps.slice(0, revealed);
|
|
122
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type IComputationProfile, type IExecutionProgressEvent } from "@gooddata/sdk-backend-tiger";
|
|
2
|
+
import { type ExecutionProgressSource } from "./execution_progress_state.js";
|
|
3
|
+
export declare const executionProgressStarted: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
4
|
+
reportExecutionId: string;
|
|
5
|
+
executionId: string;
|
|
6
|
+
source: ExecutionProgressSource;
|
|
7
|
+
resultId?: string;
|
|
8
|
+
}, string>;
|
|
9
|
+
export declare const executionProgressEventReceived: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportExecutionId: string, event: IExecutionProgressEvent, receivedAt: number], {
|
|
10
|
+
reportExecutionId: string;
|
|
11
|
+
event: IExecutionProgressEvent;
|
|
12
|
+
receivedAt: number;
|
|
13
|
+
}, "EXECUTION_PROGRESS_EVENT_RECEIVED", never, never>;
|
|
14
|
+
export declare const executionProgressStreamClosed: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
15
|
+
reportExecutionId: string;
|
|
16
|
+
}, string>;
|
|
17
|
+
/** the progress is not available for the execution: no execution id, or the stream failed */
|
|
18
|
+
export declare const executionProgressUnavailable: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
|
+
reportExecutionId: string;
|
|
20
|
+
}, string>;
|
|
21
|
+
/** the execution stats were opened: load the stored profile of the result, once */
|
|
22
|
+
export declare const executionStatsOpened: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
23
|
+
reportExecutionId: string;
|
|
24
|
+
}, string>;
|
|
25
|
+
export declare const executionStatsProfileLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
26
|
+
reportExecutionId: string;
|
|
27
|
+
}, string>;
|
|
28
|
+
export declare const executionStatsProfileLoaded: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
|
+
reportExecutionId: string;
|
|
30
|
+
profile: IComputationProfile | null;
|
|
31
|
+
}, string>;
|
|
32
|
+
export declare const executionStatsProfileFailed: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
33
|
+
reportExecutionId: string;
|
|
34
|
+
/** the result is not known, so there is nothing to load */
|
|
35
|
+
unavailable?: boolean;
|
|
36
|
+
}, string>;
|
|
37
|
+
/**
|
|
38
|
+
* Nothing executes any more (empty buckets, cleared, an insight that does not execute): the stats of
|
|
39
|
+
* the previous report execution must not outlive it.
|
|
40
|
+
*/
|
|
41
|
+
export declare const executionProgressCleared: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"EXECUTION_PROGRESS_CLEARED">;
|
|
42
|
+
//# sourceMappingURL=execution_progress_actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution_progress_actions.d.ts","sourceRoot":"","sources":["../../../src/store/execution_progress/execution_progress_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAErG,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,eAAO,MAAM,wBAAwB;uBACd,MAAM;iBACZ,MAAM;YACX,uBAAuB;eACpB,MAAM;UACW,CAAC;AAEjC,eAAO,MAAM,8BAA8B;;;;qDAK1C,CAAC;AAEF,eAAO,MAAM,6BAA6B;uBAAqC,MAAM;UAEpF,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,4BAA4B;uBAAqC,MAAM;UAEnF,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,oBAAoB;uBAAqC,MAAM;UAA6B,CAAC;AAE1G,eAAO,MAAM,4BAA4B;uBAAqC,MAAM;UAEnF,CAAC;AAEF,eAAO,MAAM,2BAA2B;uBACjB,MAAM;aAChB,mBAAmB,GAAG,IAAI;UACH,CAAC;AAErC,eAAO,MAAM,2BAA2B;uBACjB,MAAM;IACzB,2DAA2D;kBAC7C,OAAO;UACW,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,wBAAwB,sFAA6C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { createAction } from "@reduxjs/toolkit";
|
|
3
|
+
export const executionProgressStarted = createAction("EXECUTION_PROGRESS_STARTED");
|
|
4
|
+
export const executionProgressEventReceived = createAction("EXECUTION_PROGRESS_EVENT_RECEIVED", (reportExecutionId, event, receivedAt) => ({
|
|
5
|
+
payload: { reportExecutionId, event, receivedAt },
|
|
6
|
+
}));
|
|
7
|
+
export const executionProgressStreamClosed = createAction("EXECUTION_PROGRESS_STREAM_CLOSED");
|
|
8
|
+
/** the progress is not available for the execution: no execution id, or the stream failed */
|
|
9
|
+
export const executionProgressUnavailable = createAction("EXECUTION_PROGRESS_UNAVAILABLE");
|
|
10
|
+
/** the execution stats were opened: load the stored profile of the result, once */
|
|
11
|
+
export const executionStatsOpened = createAction("EXECUTION_STATS_OPENED");
|
|
12
|
+
export const executionStatsProfileLoading = createAction("EXECUTION_STATS_PROFILE_LOADING");
|
|
13
|
+
export const executionStatsProfileLoaded = createAction("EXECUTION_STATS_PROFILE_LOADED");
|
|
14
|
+
export const executionStatsProfileFailed = createAction("EXECUTION_STATS_PROFILE_FAILED");
|
|
15
|
+
/**
|
|
16
|
+
* Nothing executes any more (empty buckets, cleared, an insight that does not execute): the stats of
|
|
17
|
+
* the previous report execution must not outlive it.
|
|
18
|
+
*/
|
|
19
|
+
export const executionProgressCleared = createAction("EXECUTION_PROGRESS_CLEARED");
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type IComputationProfile, type IExecutionProgressEvent } from "@gooddata/sdk-backend-tiger";
|
|
2
|
+
/**
|
|
3
|
+
* Mocked execution progress streams following the backend contract — to develop and demo the
|
|
4
|
+
* progress panel without the backend endpoint. Also the fixtures of the view model tests.
|
|
5
|
+
*
|
|
6
|
+
* Enable in the browser with `?executionProgressMock=<scenario>` in the URL or
|
|
7
|
+
* `localStorage.executionProgressMock = "<scenario>"`.
|
|
8
|
+
*/
|
|
9
|
+
export type ExecutionProgressMockScenario = "fresh" | "federation" | "cacheHit" | "cacheHitNoProfile" | "failure";
|
|
10
|
+
/**
|
|
11
|
+
* The events of a scenario in the order the backend sends them, with absolute timestamps from
|
|
12
|
+
* `startTime`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function buildMockExecutionProgressEvents(scenario: ExecutionProgressMockScenario, startTime: number, executionId?: string): IExecutionProgressEvent[];
|
|
15
|
+
/**
|
|
16
|
+
* The profile the backend stores with the result of a scenario (how it was computed), as served by
|
|
17
|
+
* the result metadata; null when none is stored. Times in absolute ms from `startTime`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function buildMockComputationProfile(scenario: ExecutionProgressMockScenario, startTime: number): IComputationProfile | null;
|
|
20
|
+
export interface IExecutionProgressMock {
|
|
21
|
+
stream: (signal: AbortSignal) => ReadableStream<IExecutionProgressEvent>;
|
|
22
|
+
/** the stored profile of the result, as the result metadata serves it */
|
|
23
|
+
loadComputationProfile: () => Promise<IComputationProfile | null>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The mocked stream opener and result metadata when a mock scenario is enabled, otherwise
|
|
27
|
+
* undefined. The events are emitted at their scenario times, so the panel animates like with the
|
|
28
|
+
* real backend.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getExecutionProgressMock(): IExecutionProgressMock | undefined;
|
|
31
|
+
//# sourceMappingURL=execution_progress_mock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution_progress_mock.d.ts","sourceRoot":"","sources":["../../../src/store/execution_progress/execution_progress_mock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAIrG;;;;;;GAMG;AACH,MAAM,MAAM,6BAA6B,GACnC,OAAO,GACP,YAAY,GACZ,UAAU,GACV,mBAAmB,GACnB,SAAS,CAAC;AAuXhB;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,QAAQ,EAAE,6BAA6B,EACvC,SAAS,EAAE,MAAM,EACjB,WAAW,SAAmB,GAC/B,uBAAuB,EAAE,CAE3B;AAkBD;;;GAGG;AACH,wBAAgB,2BAA2B,CACvC,QAAQ,EAAE,6BAA6B,EACvC,SAAS,EAAE,MAAM,GAClB,mBAAmB,GAAG,IAAI,CA4D5B;AAED,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,cAAc,CAAC,uBAAuB,CAAC,CAAC;IACzE,yEAAyE;IACzE,sBAAsB,EAAE,MAAM,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACrE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,sBAAsB,GAAG,SAAS,CAwC7E"}
|