@gooddata/sdk-code-convertors 11.40.0-alpha.1 → 11.40.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.
|
@@ -776,6 +776,15 @@ function declarativeMeasureValueFilterToYaml(filter, errorContext) {
|
|
|
776
776
|
conditions.forEach((c) => conditionsSeq.add(measureValueConditionToYaml(c)));
|
|
777
777
|
measureValueFilter.add(new Pair("conditions", conditionsSeq));
|
|
778
778
|
}
|
|
779
|
+
if (filter.dashboardMeasureValueFilter.dimensionality?.length) {
|
|
780
|
+
const dimensionalitySeq = new YAMLSeq();
|
|
781
|
+
filter.dashboardMeasureValueFilter.dimensionality.forEach((item, i) => {
|
|
782
|
+
dimensionalitySeq.add(getIdentifier(item, undefined, updateErrorContext(errorContext, {
|
|
783
|
+
path: ["dashboardMeasureValueFilter", "dimensionality", i.toString()],
|
|
784
|
+
})));
|
|
785
|
+
});
|
|
786
|
+
measureValueFilter.add(new Pair("dimensionality", dimensionalitySeq));
|
|
787
|
+
}
|
|
779
788
|
// Aggregate per-condition `treatNullValuesAs` into a single top-level YAML flag
|
|
780
789
|
// (mirrors the insight MVF YAML representation).
|
|
781
790
|
const treatNullValuesAsZero = conditions.some(conditionHasTreatNullValuesAs);
|
|
@@ -813,11 +813,15 @@ export function yamlFilterContextToDeclarative(baseId, yamlFilters) {
|
|
|
813
813
|
});
|
|
814
814
|
const measureRef = createIdentifier(mvf.using ?? "", { forceMetric: true }) ??
|
|
815
815
|
createLocalIdentifier(mvf.using ?? "");
|
|
816
|
+
const dimensionality = mvf.dimensionality
|
|
817
|
+
?.map((item) => createIdentifier(item))
|
|
818
|
+
.filter((item) => item !== null);
|
|
816
819
|
return {
|
|
817
820
|
dashboardMeasureValueFilter: {
|
|
818
821
|
measure: measureRef,
|
|
819
822
|
localIdentifier: key,
|
|
820
823
|
...(conditions && conditions.length > 0 ? { conditions } : {}),
|
|
824
|
+
...(dimensionality && dimensionality.length > 0 ? { dimensionality } : {}),
|
|
821
825
|
...(mvf.title ? { title: mvf.title } : {}),
|
|
822
826
|
},
|
|
823
827
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-code-convertors",
|
|
3
|
-
"version": "11.40.0-alpha.
|
|
3
|
+
"version": "11.40.0-alpha.2",
|
|
4
4
|
"description": "GoodData AAC declarative converters",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"uuid": "11.1.0",
|
|
28
28
|
"yaml": "2.8.3",
|
|
29
|
-
"@gooddata/api-client-tiger": "11.40.0-alpha.
|
|
30
|
-
"@gooddata/sdk-
|
|
31
|
-
"@gooddata/sdk-
|
|
29
|
+
"@gooddata/api-client-tiger": "11.40.0-alpha.2",
|
|
30
|
+
"@gooddata/sdk-model": "11.40.0-alpha.2",
|
|
31
|
+
"@gooddata/sdk-code-schemas": "11.40.0-alpha.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-extractor": "^7.55.2",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"oxlint-tsgolint": "0.11.4",
|
|
51
51
|
"typescript": "5.9.3",
|
|
52
52
|
"vitest": "4.1.0",
|
|
53
|
-
"@gooddata/
|
|
54
|
-
"@gooddata/
|
|
53
|
+
"@gooddata/eslint-config": "11.40.0-alpha.2",
|
|
54
|
+
"@gooddata/oxlint-config": "11.40.0-alpha.2"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"_phase:build": "npm run build",
|