Skip to content

Commit 587cf96

Browse files
committed
* now tuples limited for only ones that defined in data properties even for drilldown (#458)
1 parent 61acf80 commit 587cf96

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deep-see-web",
3-
"version": "4.0.21",
3+
"version": "4.0.22",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve --proxy-config=proxy.conf.samples-bi.js",

src/app/components/widgets/base-widget.class.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ export class BaseWidget implements OnInit, OnDestroy {
839839
if (this.isEmptyData(data)) {
840840
return;
841841
}
842+
this.removeColsThatNotExistInDataProperties(data);
842843
this._currentData = data;
843844

844845

@@ -1695,11 +1696,22 @@ export class BaseWidget implements OnInit, OnDestroy {
16951696
return true;
16961697
}
16971698
}*/
1698-
const dim = t.dimension.toString().split('/');
1699+
// Check full dimension path
1700+
/*const dim = t.dimension.toString();
1701+
let exists = this.widget.dataProperties.some(p => {
1702+
const dv = p.dataValue.toString();
1703+
return dv === dim;
1704+
});
1705+
if (exists) {
1706+
return true;
1707+
}*/
1708+
1709+
// Check partial dimension path
1710+
const dimArr = t.dimension.toString().split('/');
16991711
const exists = this.widget.dataProperties.some(p => {
17001712
//p.dataValue === t.dimension
17011713
const dv = p.dataValue.toString().split('/');
1702-
return dv.some(v => dim.includes(v));
1714+
return dv.some(v => dimArr.includes(v));
17031715
});
17041716
if (!exists) {
17051717
indices.push(idx);

src/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 4.0.22
2+
* now tuples limited for only ones that defined in data properties even for drilldown (#458)
3+
14
#### 4.0.21
25
* fixed issue with missing widget title after drilldown and back button (#450)
36
* fixed issue with missing chart titles (#455)

0 commit comments

Comments
 (0)