@truedat/bg 4.59.7 → 4.59.8
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "4.59.
|
|
3
|
+
"version": "4.59.8",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "4.59.
|
|
90
|
-
"@truedat/df": "4.59.
|
|
89
|
+
"@truedat/core": "4.59.8",
|
|
90
|
+
"@truedat/df": "4.59.8",
|
|
91
91
|
"decode-uri-component": "^0.2.2",
|
|
92
92
|
"file-saver": "^2.0.5",
|
|
93
93
|
"moment": "^2.29.4",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"react-dom": ">= 16.8.6 < 17",
|
|
111
111
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "679895d762c466ab983d13bbdad90a58261da3b2"
|
|
114
114
|
}
|
|
@@ -2,7 +2,7 @@ import { testSaga } from "redux-saga-test-plan";
|
|
|
2
2
|
import { apiJsonPost, JSON_OPTS } from "@truedat/core/services/api";
|
|
3
3
|
import {
|
|
4
4
|
saveConceptFiltersRequestSaga,
|
|
5
|
-
saveConceptFiltersSaga
|
|
5
|
+
saveConceptFiltersSaga,
|
|
6
6
|
} from "../saveConceptFilters";
|
|
7
7
|
import { saveConceptFilters } from "../../routines";
|
|
8
8
|
import { API_CONCEPT_USER_FILTERS } from "../../api";
|
|
@@ -29,9 +29,17 @@ describe("sagas: saveConceptFiltersRequestSaga", () => {
|
|
|
29
29
|
|
|
30
30
|
describe("sagas: saveConceptFiltersSaga", () => {
|
|
31
31
|
const data = { user_search_filter: { id: 1, name: "a" } };
|
|
32
|
-
const payload = {
|
|
32
|
+
const payload = {
|
|
33
|
+
filterName: "a",
|
|
34
|
+
filters: { country: ["A"] },
|
|
35
|
+
isGlobal: true,
|
|
36
|
+
};
|
|
33
37
|
const requestData = {
|
|
34
|
-
user_search_filter: {
|
|
38
|
+
user_search_filter: {
|
|
39
|
+
name: "a",
|
|
40
|
+
filters: { country: ["A"] },
|
|
41
|
+
is_global: true,
|
|
42
|
+
},
|
|
35
43
|
};
|
|
36
44
|
it("should put a success action when a response is returned", () => {
|
|
37
45
|
expect(() => {
|
|
@@ -5,9 +5,11 @@ import { API_CONCEPT_USER_FILTERS } from "../api";
|
|
|
5
5
|
|
|
6
6
|
export function* saveConceptFiltersSaga({ payload }) {
|
|
7
7
|
try {
|
|
8
|
-
const { filterName, filters } = payload;
|
|
8
|
+
const { filterName, filters, isGlobal } = payload;
|
|
9
9
|
const url = API_CONCEPT_USER_FILTERS;
|
|
10
|
-
const requestData = {
|
|
10
|
+
const requestData = {
|
|
11
|
+
user_search_filter: { name: filterName, filters, is_global: isGlobal },
|
|
12
|
+
};
|
|
11
13
|
yield put({ ...saveConceptFilters.request() });
|
|
12
14
|
const { data } = yield call(apiJsonPost, url, requestData, JSON_OPTS);
|
|
13
15
|
yield put({ ...saveConceptFilters.success(data) });
|