@gooddata/sdk-backend-base 11.60.0-alpha.2 → 11.60.0-alpha.3
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cachingBackend/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAGH,KAAK,kBAAkB,EAuD1B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cachingBackend/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAGH,KAAK,kBAAkB,EAuD1B,MAAM,2BAA2B,CAAC;AAmpGnC;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB;;;;;OAKG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAElC;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAC;IAEvB;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,IAAI,CAAC;IAEnC;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;IACH,oBAAoB,EAAE,MAAM,IAAI,CAAC;IAEjC;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;;;;;;;;;;;;;OAcG;IAC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AAC;IAEhC;;;;;;;;;;OAUG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IAEtC;;;;;;;;;;;OAWG;IACH,oCAAoC,CAAC,EAAE,MAAM,CAAC;IAE9C;;;;;;;;;;;OAWG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;;;;;;;;;OAYG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;;;;;;;;;;;OAYG;IACH,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAE5C;;;;;;;;;;;;;OAaG;IACH,sCAAsC,CAAC,EAAE,MAAM,CAAC;IAEhD;;;;;;;;;;;;;OAaG;IACH,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAE/C;;;;;;;;;;OAUG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AASF;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,EAAE,oBA4B7C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACvB,WAAW,EAAE,kBAAkB,EAC/B,MAAM,EAAE,oBAAoB,GAC7B,kBAAkB,CAoHpB"}
|
|
@@ -1405,6 +1405,7 @@ function getOrCreateAutomationsCache(ctx, workspace) {
|
|
|
1405
1405
|
class CachedAutomationsQueryFactory extends DecoratedAutomationsQuery {
|
|
1406
1406
|
ctx;
|
|
1407
1407
|
workspace;
|
|
1408
|
+
options;
|
|
1408
1409
|
settings = {
|
|
1409
1410
|
size: 100,
|
|
1410
1411
|
page: 0,
|
|
@@ -1423,10 +1424,11 @@ class CachedAutomationsQueryFactory extends DecoratedAutomationsQuery {
|
|
|
1423
1424
|
dashboardFilterType: "exact",
|
|
1424
1425
|
statusFilterType: "exact",
|
|
1425
1426
|
};
|
|
1426
|
-
constructor(decorated, ctx, workspace) {
|
|
1427
|
+
constructor(decorated, ctx, workspace, options = {}) {
|
|
1427
1428
|
super(decorated);
|
|
1428
1429
|
this.ctx = ctx;
|
|
1429
1430
|
this.workspace = workspace;
|
|
1431
|
+
this.options = options;
|
|
1430
1432
|
}
|
|
1431
1433
|
withSize(size) {
|
|
1432
1434
|
this.settings.size = size;
|
|
@@ -1486,7 +1488,8 @@ class CachedAutomationsQueryFactory extends DecoratedAutomationsQuery {
|
|
|
1486
1488
|
}
|
|
1487
1489
|
query() {
|
|
1488
1490
|
const cache = getOrCreateAutomationsCache(this.ctx, this.workspace);
|
|
1489
|
-
|
|
1491
|
+
// the options change what the results contain, so they are part of the key
|
|
1492
|
+
const key = stringify({ ...this.settings, options: this.options }) || "undefined";
|
|
1490
1493
|
const result = cache.queries.get(key);
|
|
1491
1494
|
if (!result) {
|
|
1492
1495
|
const promise = super.query().catch((e) => {
|
|
@@ -1588,7 +1591,7 @@ class WithAutomationsCaching extends DecoratedWorkspaceAutomationsService {
|
|
|
1588
1591
|
cache.queries.clear();
|
|
1589
1592
|
}
|
|
1590
1593
|
getAutomationsQuery(options) {
|
|
1591
|
-
return new CachedAutomationsQueryFactory(super.getAutomationsQuery(options), this.ctx, this.workspace);
|
|
1594
|
+
return new CachedAutomationsQueryFactory(super.getAutomationsQuery(options), this.ctx, this.workspace, options);
|
|
1592
1595
|
}
|
|
1593
1596
|
}
|
|
1594
1597
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-base",
|
|
3
|
-
"version": "11.60.0-alpha.
|
|
3
|
+
"version": "11.60.0-alpha.3",
|
|
4
4
|
"description": "GoodData.UI SDK - Base for backend implementations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ts-invariant": "0.10.3",
|
|
30
30
|
"tslib": "2.8.1",
|
|
31
31
|
"uuid": "11.1.1",
|
|
32
|
-
"@gooddata/
|
|
33
|
-
"@gooddata/sdk-model": "11.60.0-alpha.
|
|
34
|
-
"@gooddata/
|
|
32
|
+
"@gooddata/sdk-backend-spi": "11.60.0-alpha.3",
|
|
33
|
+
"@gooddata/sdk-model": "11.60.0-alpha.3",
|
|
34
|
+
"@gooddata/util": "11.60.0-alpha.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"oxlint-tsgolint": "7.0.2001",
|
|
55
55
|
"typescript": "7.0.2",
|
|
56
56
|
"vitest": "4.1.11",
|
|
57
|
-
"@gooddata/eslint-config": "11.60.0-alpha.
|
|
58
|
-
"@gooddata/oxlint-config": "11.60.0-alpha.
|
|
59
|
-
"@gooddata/reference-workspace": "11.60.0-alpha.
|
|
57
|
+
"@gooddata/eslint-config": "11.60.0-alpha.3",
|
|
58
|
+
"@gooddata/oxlint-config": "11.60.0-alpha.3",
|
|
59
|
+
"@gooddata/reference-workspace": "11.60.0-alpha.3"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"_phase:build": "npm run build",
|