Skip to content

Commit

Permalink
* added support for range filters with NOW keyword for all widgets (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
agnybida committed Oct 2, 2023
1 parent 5102118 commit 5029401
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deep-see-web",
"version": "3.2.16",
"version": "3.2.17",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config=proxy.conf.json --port 4007",
Expand Down
15 changes: 15 additions & 0 deletions src/app/services/filter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,21 @@ export class FilterService {
if (flt.value?.toString().indexOf(':') !== -1) {
if (flt.isDate) {
this.initDateFilter(flt);
} else {
const parts = flt.value?.toString().split(':');
flt.fromIdx = flt.values?.findIndex(f => f.path === parts[0]);
flt.toIdx = flt.values?.findIndex(f => f.path === parts[1]);
if (flt.fromIdx === -1) {
flt.values.push({path: parts[0], name: parts[0].replace('&[', '').replace(']', '')});
flt.fromIdx = flt.values.length - 1;
}
flt.values[flt.fromIdx].checked = true;
if (flt.toIdx === -1) {
flt.values.push({path: parts[1], name: parts[1].replace('&[', '').replace(']', '')});
flt.toIdx = flt.values.length - 1;
}
flt.values[flt.toIdx].checked = true;
flt.isInterval = true;
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#### 3.2.17
* added support for range filters with `NOW` keyword for all widgets (#403)

#### 3.2.16
* added `Accept-Language: en-US` to all requests
* added `Accept-Language: en-US` to all requests (#404)

#### 3.2.15
* temporary fix for scorecard columns filtering when axis contains children
Expand Down

0 comments on commit 5029401

Please sign in to comment.