@gooddata/sdk-backend-base 11.68.0-alpha.7 → 11.68.0-alpha.9
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
CHANGED
|
@@ -3,9 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
|
|
|
3
3
|
This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
|
|
4
4
|
|
|
5
5
|
--------------------------------------------------------------------------------
|
|
6
|
-
Attribution Notice for @gooddata/sdk-backend-base (11.68.0-alpha.
|
|
6
|
+
Attribution Notice for @gooddata/sdk-backend-base (11.68.0-alpha.9)
|
|
7
7
|
Package License: MIT
|
|
8
8
|
Own License File: LICENSE
|
|
9
|
+
Date generated: 2026-11-10
|
|
10
|
+
Revision ID: 84da343e85211db46f29811651dc10b32662b222
|
|
9
11
|
|
|
10
12
|
This notice lists the components that @gooddata/sdk-backend-base depends on, directly or through other
|
|
11
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -17,10 +19,10 @@ change those terms.
|
|
|
17
19
|
Dependencies
|
|
18
20
|
|
|
19
21
|
Local GoodData SDK components
|
|
20
|
-
- @gooddata/sdk-backend-spi (11.68.0-alpha.
|
|
21
|
-
- @gooddata/sdk-code-schemas (11.68.0-alpha.
|
|
22
|
-
- @gooddata/sdk-model (11.68.0-alpha.
|
|
23
|
-
- @gooddata/util (11.68.0-alpha.
|
|
22
|
+
- @gooddata/sdk-backend-spi (11.68.0-alpha.9) [MIT] — Direct
|
|
23
|
+
- @gooddata/sdk-code-schemas (11.68.0-alpha.9) [MIT] — Transitive
|
|
24
|
+
- @gooddata/sdk-model (11.68.0-alpha.9) [MIT] — Direct
|
|
25
|
+
- @gooddata/util (11.68.0-alpha.9) [MIT] — Direct
|
|
24
26
|
|
|
25
27
|
External components
|
|
26
28
|
- @braintree/sanitize-url (6.0.4) [MIT] — Direct
|
|
@@ -62,7 +64,7 @@ Local GoodData SDK components
|
|
|
62
64
|
================================================================================
|
|
63
65
|
|
|
64
66
|
--------------------------------------------------------------------------------
|
|
65
|
-
Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.
|
|
67
|
+
Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.9)
|
|
66
68
|
Package Source: Local workspace
|
|
67
69
|
Package Depth: Direct
|
|
68
70
|
--------------------------------------------------------------------------------
|
|
@@ -80,7 +82,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
80
82
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
81
83
|
|
|
82
84
|
--------------------------------------------------------------------------------
|
|
83
|
-
Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.
|
|
85
|
+
Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.9)
|
|
84
86
|
Package Source: Local workspace
|
|
85
87
|
Package Depth: Transitive
|
|
86
88
|
--------------------------------------------------------------------------------
|
|
@@ -110,7 +112,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
110
112
|
SOFTWARE.
|
|
111
113
|
|
|
112
114
|
--------------------------------------------------------------------------------
|
|
113
|
-
Package Title: @gooddata/sdk-model (11.68.0-alpha.
|
|
115
|
+
Package Title: @gooddata/sdk-model (11.68.0-alpha.9)
|
|
114
116
|
Package Source: Local workspace
|
|
115
117
|
Package Depth: Direct
|
|
116
118
|
--------------------------------------------------------------------------------
|
|
@@ -128,7 +130,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
128
130
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
129
131
|
|
|
130
132
|
--------------------------------------------------------------------------------
|
|
131
|
-
Package Title: @gooddata/util (11.68.0-alpha.
|
|
133
|
+
Package Title: @gooddata/util (11.68.0-alpha.9)
|
|
132
134
|
Package Source: Local workspace
|
|
133
135
|
Package Depth: Direct
|
|
134
136
|
--------------------------------------------------------------------------------
|
|
@@ -219,7 +221,7 @@ MIT
|
|
|
219
221
|
|
|
220
222
|
* Copyrights *
|
|
221
223
|
MIT
|
|
222
|
-
- Copyright (c)
|
|
224
|
+
- Copyright (c) Microsoft Corporation.
|
|
223
225
|
|
|
224
226
|
--------------------------------------------------------------------------------
|
|
225
227
|
Package Title: call-bind (1.0.9)
|
|
@@ -781,7 +783,7 @@ SOFTWARE.
|
|
|
781
783
|
|
|
782
784
|
* Copyrights *
|
|
783
785
|
MIT
|
|
784
|
-
- Copyright (c)
|
|
786
|
+
- Copyright (c) Jordan Harband and contributors
|
|
785
787
|
|
|
786
788
|
--------------------------------------------------------------------------------
|
|
787
789
|
Package Title: is-obj (1.0.1)
|
|
@@ -997,7 +999,7 @@ terms above.
|
|
|
997
999
|
|
|
998
1000
|
* Copyrights *
|
|
999
1001
|
MIT
|
|
1000
|
-
- Copyright (c)
|
|
1002
|
+
- Copyright (c) OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1001
1003
|
|
|
1002
1004
|
--------------------------------------------------------------------------------
|
|
1003
1005
|
Package Title: lru-cache (11.1.0)
|
|
@@ -1131,7 +1133,7 @@ SOFTWARE.
|
|
|
1131
1133
|
|
|
1132
1134
|
* Copyrights *
|
|
1133
1135
|
MIT
|
|
1134
|
-
- Copyright (c)
|
|
1136
|
+
- Copyright (c) Jordan Harband and contributors
|
|
1135
1137
|
|
|
1136
1138
|
--------------------------------------------------------------------------------
|
|
1137
1139
|
Package Title: spark-md5 (3.0.2)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cachingBackend/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cachingBackend/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAIH,KAAK,kBAAkB,EAyD1B,MAAM,2BAA2B,CAAC;AA+sGnC;;;;;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,s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C) 2007-2026 GoodData Corporation
|
|
2
2
|
import stringify from "json-stable-stringify";
|
|
3
|
-
import { compact, partition } from "lodash-es";
|
|
4
3
|
import { LRUCache } from "lru-cache";
|
|
5
4
|
import SparkMD5 from "spark-md5";
|
|
6
5
|
import { invariant } from "ts-invariant";
|
|
7
6
|
import { isAbortError, } from "@gooddata/sdk-backend-spi";
|
|
8
7
|
import { areObjRefsEqual, geoFeatureId, idRef, isIdentifierRef, isUriRef, serializeObjRef, uriRef, } from "@gooddata/sdk-model";
|
|
8
|
+
import { _compact, _partition } from "@gooddata/util";
|
|
9
9
|
import { DecoratedWorkspaceAttributesService } from "../decoratedBackend/attributes.js";
|
|
10
10
|
import { DecoratedAutomationsQuery, DecoratedWorkspaceAutomationsService, } from "../decoratedBackend/automations.js";
|
|
11
11
|
import { DecoratedWorkspaceCatalogFactory } from "../decoratedBackend/catalog.js";
|
|
@@ -675,7 +675,7 @@ function refMatchesMdObject(ref, mdObject, type) {
|
|
|
675
675
|
areObjRefsEqual(ref, uriRef(mdObject.uri)));
|
|
676
676
|
}
|
|
677
677
|
function firstDefined(arr) {
|
|
678
|
-
return
|
|
678
|
+
return _compact(arr).at(0);
|
|
679
679
|
}
|
|
680
680
|
function elementsCacheKey(ref, settings) {
|
|
681
681
|
const fingerprint = stringify(settings) || "undefined";
|
|
@@ -982,7 +982,7 @@ class WithAttributesCaching extends DecoratedWorkspaceAttributesService {
|
|
|
982
982
|
cacheHit: cacheHit,
|
|
983
983
|
};
|
|
984
984
|
});
|
|
985
|
-
const [withCacheHits, withoutCacheHits] =
|
|
985
|
+
const [withCacheHits, withoutCacheHits] = _partition(refsWithCacheResults, ({ cacheHit }) => !!cacheHit);
|
|
986
986
|
const refsToLoad = withoutCacheHits.map((item) => item.ref);
|
|
987
987
|
// Use a single shared load promise so that concurrent callers asking for the same uncached refs
|
|
988
988
|
// collapse onto one underlying request. Per-ref promises are derived from it and registered into
|
|
@@ -1041,7 +1041,7 @@ class WithAttributesCaching extends DecoratedWorkspaceAttributesService {
|
|
|
1041
1041
|
// Reconstruct the original ordering. Derive the output from what actually resolved (compact) rather
|
|
1042
1042
|
// than from refsToLoad, so a concurrent caller sharing the in-flight promise of a ref the server
|
|
1043
1043
|
// omitted does not trip the invariant below.
|
|
1044
|
-
const candidates =
|
|
1044
|
+
const candidates = _compact([...loadedFromServer, ...alreadyInCache]);
|
|
1045
1045
|
return outputRefs
|
|
1046
1046
|
.map((ref) => candidates.find((item) => refMatchesMdObject(ref, item, "displayForm")))
|
|
1047
1047
|
.filter((match) => {
|
|
@@ -1123,7 +1123,7 @@ class WithAttributesCaching extends DecoratedWorkspaceAttributesService {
|
|
|
1123
1123
|
cacheHit: cacheHit,
|
|
1124
1124
|
};
|
|
1125
1125
|
});
|
|
1126
|
-
const [withCacheHits, withoutCacheHits] =
|
|
1126
|
+
const [withCacheHits, withoutCacheHits] = _partition(refsWithCacheResults, ({ cacheHit }) => !!cacheHit);
|
|
1127
1127
|
const refsToLoad = withoutCacheHits.map((item) => item.ref);
|
|
1128
1128
|
// Use a single shared load promise so that concurrent callers asking for the same uncached refs
|
|
1129
1129
|
// collapse onto one underlying request. Per-ref promises are derived from it and registered into
|
|
@@ -1176,7 +1176,7 @@ class WithAttributesCaching extends DecoratedWorkspaceAttributesService {
|
|
|
1176
1176
|
? skipMissingReferences(refs, refsToLoad, loadedRefs)
|
|
1177
1177
|
: refs;
|
|
1178
1178
|
// reconstruct the original ordering
|
|
1179
|
-
const candidates =
|
|
1179
|
+
const candidates = _compact([...loadedFromServer, ...alreadyInCache]);
|
|
1180
1180
|
return outputRefs
|
|
1181
1181
|
.map((ref) => candidates.find((item) => refMatchesMdObject(ref, item, "attribute")))
|
|
1182
1182
|
.filter((match) => {
|
|
@@ -409,7 +409,7 @@ function dummyLocalizationService() {
|
|
|
409
409
|
getUsageWorkspaces: () => Promise.resolve({ workspaces: [], totalCount: 0 }),
|
|
410
410
|
getUsageUsers: () => Promise.resolve({ users: [], totalCount: 0 }),
|
|
411
411
|
getStatistics: () => Promise.resolve({ metadata: { locales: [] }, data: { locales: [] } }),
|
|
412
|
-
|
|
412
|
+
getIssues: () => Promise.resolve({ issues: [] }),
|
|
413
413
|
getStatisticsWorkspaces: () => Promise.resolve({ workspaces: [], totalCount: 0 }),
|
|
414
414
|
getMissingTranslations: () => Promise.resolve([]),
|
|
415
415
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../src/toolkit/paging.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../src/toolkit/paging.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE;;;;;GAKG;AACH,qBAAa,cAAc,CAAC,CAAC,CAAE,YAAW,cAAc,CAAC,CAAC,CAAC;IAOnD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE;IANpC,SAAgB,KAAK,EAAE,CAAC,EAAE,CAAC;IAC3B,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,UAAU,EAAE,MAAM,CAAC;IAEnC,YACuB,QAAQ,EAAE,CAAC,EAAE,EAChC,KAAK,SAAK,EACV,MAAM,SAAI,EAcb;IAEY,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAQ9C;IAEY,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAM/D;IAEY,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAE/B;IAEY,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAEtE;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,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CAAC,CAAC,CAgBjE;IAEK,GAAG,QAAa,OAAO,CAAC,CAAC,EAAE,CAAC,CAmBjC;IAEK,SAAS,cAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,KAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAGxE;CACL"}
|
package/esm/toolkit/paging.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { range } from "lodash-es";
|
|
3
2
|
import { invariant } from "ts-invariant";
|
|
3
|
+
import { _range } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* This implementation of {@link @gooddata/sdk-backend-spi#IPagedResource} pages over a list of items
|
|
6
6
|
* provided at construction time. The paging is done using pre-configured page limit and starts at particular offset.
|
|
@@ -106,7 +106,7 @@ export class ServerPaging {
|
|
|
106
106
|
all = async () => {
|
|
107
107
|
const results = [];
|
|
108
108
|
const maxRequests = 6;
|
|
109
|
-
const allPagesToLoad =
|
|
109
|
+
const allPagesToLoad = _range(0, this.totalCount / this.limit);
|
|
110
110
|
// if the paged resource is already at the 0 offset, use it directly to save a duplicate request
|
|
111
111
|
if (this.offset === 0) {
|
|
112
112
|
results.push(...this.items);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-base",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.9",
|
|
4
4
|
"description": "GoodData.UI SDK - Base for backend implementations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"ts-invariant": "0.10.3",
|
|
31
31
|
"tslib": "2.8.1",
|
|
32
32
|
"uuid": "11.1.1",
|
|
33
|
-
"@gooddata/sdk-backend-spi": "11.68.0-alpha.
|
|
34
|
-
"@gooddata/sdk-model": "11.68.0-alpha.
|
|
35
|
-
"@gooddata/util": "11.68.0-alpha.
|
|
33
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.9",
|
|
34
|
+
"@gooddata/sdk-model": "11.68.0-alpha.9",
|
|
35
|
+
"@gooddata/util": "11.68.0-alpha.9"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"oxlint-tsgolint": "7.0.2001",
|
|
57
57
|
"typescript": "7.0.2",
|
|
58
58
|
"vitest": "5.0.4",
|
|
59
|
-
"@gooddata/eslint-config": "11.68.0-alpha.
|
|
60
|
-
"@gooddata/reference-workspace": "11.68.0-alpha.
|
|
61
|
-
"@gooddata/oxlint-config": "11.68.0-alpha.
|
|
59
|
+
"@gooddata/eslint-config": "11.68.0-alpha.9",
|
|
60
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.9",
|
|
61
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.9"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"_phase:build": "npm run build",
|