@gooddata/sdk-backend-tiger 11.37.0-alpha.0 → 11.37.0-alpha.2

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.
@@ -1,3 +1,3 @@
1
- export declare const LIB_VERSION = "11.37.0-alpha.0";
1
+ export declare const LIB_VERSION = "11.37.0-alpha.2";
2
2
  export declare const LIB_DESCRIPTION = "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN";
3
3
  export declare const LIB_NAME = "@gooddata/sdk-backend-tiger";
package/esm/__version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // (C) 2021 GoodData Corporation
2
2
  // DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
3
- export const LIB_VERSION = "11.37.0-alpha.0";
3
+ export const LIB_VERSION = "11.37.0-alpha.2";
4
4
  export const LIB_DESCRIPTION = "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN";
5
5
  export const LIB_NAME = "@gooddata/sdk-backend-tiger";
@@ -167,6 +167,7 @@ export function mapFeatures(features) {
167
167
  ...loadFeature(features, TigerFeaturesNames.EnableAutomationTrigger, "enableAutomationTrigger", "BOOLEAN", FeatureFlagsValues.enableAutomationTrigger),
168
168
  ...loadFeature(features, TigerFeaturesNames.EnableUserDataFiltersUi, "enableUserDataFiltersUi", "BOOLEAN", FeatureFlagsValues.enableUserDataFiltersUi),
169
169
  ...loadFeature(features, TigerFeaturesNames.EnableEnhancedInsightPicker, "enableEnhancedInsightPicker", "BOOLEAN", FeatureFlagsValues.enableEnhancedInsightPicker),
170
+ ...loadFeature(features, TigerFeaturesNames.EnableMetricEditorRemoteModule, "enableShellApplication_metricEditor", "BOOLEAN", FeatureFlagsValues.enableShellApplication_metricEditor),
170
171
  };
171
172
  }
172
173
  function loadFeature(features, feature, name, outputType, possibleValues) {
@@ -167,7 +167,8 @@ export declare enum TigerFeaturesNames {
167
167
  EnableEnhancedInsightPicker = "enableEnhancedInsightPicker",
168
168
  EnableAiAgenticMultiConversations = "enableAiAgenticMultiConversations",
169
169
  EnableAiLlmAnthropicProvider = "enableAiLlmAnthropicProvider",
170
- EnableRadarChart = "enableRadarChart"
170
+ EnableRadarChart = "enableRadarChart",
171
+ EnableMetricEditorRemoteModule = "enableShellApplication_metricEditor"
171
172
  }
172
173
  export type ITigerFeatureFlags = {
173
174
  dashboardEditModeDevRollout: (typeof FeatureFlagsValues)["dashboardEditModeDevRollout"][number];
@@ -334,6 +335,7 @@ export type ITigerFeatureFlags = {
334
335
  enableUserDataFiltersUi: (typeof FeatureFlagsValues)["enableUserDataFiltersUi"][number];
335
336
  enableEnhancedInsightPicker: (typeof FeatureFlagsValues)["enableEnhancedInsightPicker"][number];
336
337
  enableAiLlmAnthropicProvider: (typeof FeatureFlagsValues)["enableAiLlmAnthropicProvider"][number];
338
+ enableShellApplication_metricEditor: (typeof FeatureFlagsValues)["enableShellApplication_metricEditor"][number];
337
339
  };
338
340
  export declare const DefaultFeatureFlags: ITigerFeatureFlags;
339
341
  export declare const FeatureFlagsValues: {
@@ -502,4 +504,5 @@ export declare const FeatureFlagsValues: {
502
504
  enableUserDataFiltersUi: readonly [true, false];
503
505
  enableEnhancedInsightPicker: readonly [true, false];
504
506
  enableAiLlmAnthropicProvider: readonly [true, false];
507
+ enableShellApplication_metricEditor: readonly [true, false];
505
508
  };
@@ -172,6 +172,7 @@ var TigerFeaturesNames;
172
172
  TigerFeaturesNames["EnableAiAgenticMultiConversations"] = "enableAiAgenticMultiConversations";
173
173
  TigerFeaturesNames["EnableAiLlmAnthropicProvider"] = "enableAiLlmAnthropicProvider";
174
174
  TigerFeaturesNames["EnableRadarChart"] = "enableRadarChart";
175
+ TigerFeaturesNames["EnableMetricEditorRemoteModule"] = "enableShellApplication_metricEditor";
175
176
  })(TigerFeaturesNames || (TigerFeaturesNames = {}));
176
177
  export const DefaultFeatureFlags = {
177
178
  dashboardEditModeDevRollout: true,
@@ -338,6 +339,7 @@ export const DefaultFeatureFlags = {
338
339
  enableUserDataFiltersUi: false,
339
340
  enableEnhancedInsightPicker: false,
340
341
  enableAiLlmAnthropicProvider: false,
342
+ enableShellApplication_metricEditor: false,
341
343
  };
342
344
  export const FeatureFlagsValues = {
343
345
  dashboardEditModeDevRollout: [true, false],
@@ -505,4 +507,5 @@ export const FeatureFlagsValues = {
505
507
  enableUserDataFiltersUi: [true, false],
506
508
  enableEnhancedInsightPicker: [true, false],
507
509
  enableAiLlmAnthropicProvider: [true, false],
510
+ enableShellApplication_metricEditor: [true, false],
508
511
  };
@@ -5,7 +5,10 @@ export declare class TigerWorkspaceKeyDriverAnalysis implements IWorkspaceKeyDri
5
5
  private readonly authCall;
6
6
  readonly workspace: string;
7
7
  private readonly dateStringifier;
8
+ private cancelToken;
9
+ private resultId;
8
10
  constructor(authCall: TigerAuthenticatedCallGuard, workspace: string, dateStringifier: DateStringifier);
9
- computeChangeAnalysis(definition: IChangeAnalysisDefinition, period: IChangeAnalysisPeriod, options?: IChangeAnalysisOptions): Promise<IChangeAnalysisResults>;
11
+ computeChangeAnalysis(definition: IChangeAnalysisDefinition, period: IChangeAnalysisPeriod, options?: IChangeAnalysisOptions, signal?: AbortSignal): Promise<IChangeAnalysisResults>;
12
+ cancelChangeAnalysis(): Promise<void>;
10
13
  private retrieveComputeResult;
11
14
  }
@@ -1,5 +1,5 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- import { ExecutionAPI_ChangeAnalysis, ExecutionResultAPI_ChangeAnalysisResult, } from "@gooddata/api-client-tiger/endpoints/execution";
2
+ import { ExecutionAPI_ChangeAnalysis, ExecutionResultAPI_CancelExecutions, ExecutionResultAPI_ChangeAnalysisResult, } from "@gooddata/api-client-tiger/endpoints/execution";
3
3
  import { convertChangeAnalyzeToKeyDriver } from "../../../convertors/fromBackend/KdaConverter.js";
4
4
  import { convertAttribute } from "../../../convertors/toBackend/afm/AttributeConverter.js";
5
5
  import { convertFilter } from "../../../convertors/toBackend/afm/FilterConverter.js";
@@ -8,12 +8,14 @@ export class TigerWorkspaceKeyDriverAnalysis {
8
8
  authCall;
9
9
  workspace;
10
10
  dateStringifier;
11
+ cancelToken = null;
12
+ resultId = null;
11
13
  constructor(authCall, workspace, dateStringifier) {
12
14
  this.authCall = authCall;
13
15
  this.workspace = workspace;
14
16
  this.dateStringifier = dateStringifier;
15
17
  }
16
- async computeChangeAnalysis(definition, period, options) {
18
+ async computeChangeAnalysis(definition, period, options, signal) {
17
19
  return this.authCall(async (client) => {
18
20
  const filters = definition.filters?.map((f) => convertFilter(f)).filter(Boolean);
19
21
  const results = await ExecutionAPI_ChangeAnalysis(client.axios, client.basePath, {
@@ -35,15 +37,44 @@ export class TigerWorkspaceKeyDriverAnalysis {
35
37
  includeTags: options?.includeTags,
36
38
  excludeTags: options?.excludeTags,
37
39
  },
38
- }, {});
40
+ }, {
41
+ signal: signal,
42
+ });
43
+ if (signal) {
44
+ this.cancelToken = results.headers["x-gdc-cancel-token"];
45
+ }
39
46
  const link = results.data.links.executionResult;
40
- return await this.retrieveComputeResult(client, link);
47
+ this.resultId = link;
48
+ const execResults = await this.retrieveComputeResult(client, link, signal);
49
+ this.cancelToken = null;
50
+ this.resultId = null;
51
+ return execResults;
41
52
  });
42
53
  }
43
- async retrieveComputeResult(client, resultId) {
54
+ async cancelChangeAnalysis() {
55
+ const resultId = this.resultId;
56
+ const cancelToken = this.cancelToken;
57
+ if (cancelToken && resultId) {
58
+ await this.authCall(async (client) => {
59
+ await ExecutionResultAPI_CancelExecutions(client.axios, client.basePath, {
60
+ workspaceId: this.workspace,
61
+ afmCancelTokens: {
62
+ resultIdToCancelTokenPairs: {
63
+ [resultId]: cancelToken,
64
+ },
65
+ },
66
+ });
67
+ });
68
+ }
69
+ this.cancelToken = null;
70
+ this.resultId = null;
71
+ }
72
+ async retrieveComputeResult(client, resultId, signal) {
44
73
  const result = await ExecutionResultAPI_ChangeAnalysisResult(client.axios, client.basePath, {
45
74
  workspaceId: this.workspace,
46
75
  resultId,
76
+ }, {
77
+ signal,
47
78
  });
48
79
  const list = result.data.data;
49
80
  const keyDrivers = list.map((item) => convertChangeAnalyzeToKeyDriver(item));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-tiger",
3
- "version": "11.37.0-alpha.0",
3
+ "version": "11.37.0-alpha.2",
4
4
  "description": "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -33,12 +33,12 @@
33
33
  "ts-invariant": "0.10.3",
34
34
  "tslib": "2.8.1",
35
35
  "uuid": "11.1.0",
36
- "@gooddata/sdk-backend-base": "11.37.0-alpha.0",
37
- "@gooddata/api-client-tiger": "11.37.0-alpha.0",
38
- "@gooddata/sdk-backend-spi": "11.37.0-alpha.0",
39
- "@gooddata/sdk-code-convertors": "11.37.0-alpha.0",
40
- "@gooddata/sdk-model": "11.37.0-alpha.0",
41
- "@gooddata/util": "11.37.0-alpha.0"
36
+ "@gooddata/sdk-backend-base": "11.37.0-alpha.2",
37
+ "@gooddata/api-client-tiger": "11.37.0-alpha.2",
38
+ "@gooddata/sdk-backend-spi": "11.37.0-alpha.2",
39
+ "@gooddata/sdk-code-convertors": "11.37.0-alpha.2",
40
+ "@gooddata/sdk-model": "11.37.0-alpha.2",
41
+ "@gooddata/util": "11.37.0-alpha.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@gooddata/fixtures": "3.3.12",
@@ -65,10 +65,10 @@
65
65
  "oxlint-tsgolint": "0.11.4",
66
66
  "typescript": "5.9.3",
67
67
  "vitest": "4.1.0",
68
- "@gooddata/catalog-export": "11.37.0-alpha.0",
69
- "@gooddata/eslint-config": "11.37.0-alpha.0",
70
- "@gooddata/oxlint-config": "11.37.0-alpha.0",
71
- "@gooddata/reference-workspace": "11.37.0-alpha.0"
68
+ "@gooddata/catalog-export": "11.37.0-alpha.2",
69
+ "@gooddata/eslint-config": "11.37.0-alpha.2",
70
+ "@gooddata/oxlint-config": "11.37.0-alpha.2",
71
+ "@gooddata/reference-workspace": "11.37.0-alpha.2"
72
72
  },
73
73
  "scripts": {
74
74
  "_phase:build": "npm run build",