@truedat/bg 5.12.7 → 5.12.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.8",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "5.12.
|
|
90
|
-
"@truedat/df": "5.12.
|
|
91
|
-
"@truedat/lm": "5.12.
|
|
89
|
+
"@truedat/core": "5.12.8",
|
|
90
|
+
"@truedat/df": "5.12.8",
|
|
91
|
+
"@truedat/lm": "5.12.8",
|
|
92
92
|
"decode-uri-component": "^0.2.2",
|
|
93
93
|
"file-saver": "^2.0.5",
|
|
94
94
|
"moment": "^2.29.4",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"react-dom": ">= 16.8.6 < 17",
|
|
112
112
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "1549c3b7659d53ad9d3f52cab75020195840e29c"
|
|
115
115
|
}
|
package/src/taxonomy/api.js
CHANGED
|
@@ -5,7 +5,7 @@ const API_DOMAIN_MEMBER = "/api/acl_entries/:id";
|
|
|
5
5
|
const API_DOMAINS = "/api/domains";
|
|
6
6
|
const API_DOMAIN_CONCEPT_CHILDREN =
|
|
7
7
|
"/api/domains/:domain_id/business_concepts/:user_name/count";
|
|
8
|
-
const API_RESOURCE_ACL_ENTRIES = "/api/:
|
|
8
|
+
const API_RESOURCE_ACL_ENTRIES = "/api/acl_entries/domains/:resource_id";
|
|
9
9
|
|
|
10
10
|
export {
|
|
11
11
|
API_ACL_ENTRY,
|
|
@@ -8,7 +8,7 @@ describe("sagas: addDomainMemberSaga", () => {
|
|
|
8
8
|
const acl_entry = { id: 1, name: "foo" };
|
|
9
9
|
const payload = { acl_entry, resource_id };
|
|
10
10
|
const meta = { resource_id };
|
|
11
|
-
const url = "/api/domains/123
|
|
11
|
+
const url = "/api/acl_entries/domains/123"; // Note resource_type is "domains"
|
|
12
12
|
|
|
13
13
|
it("should put a success action when a response is returned", () => {
|
|
14
14
|
const data = [];
|
|
@@ -9,7 +9,7 @@ const toApiPath = compile(API_RESOURCE_ACL_ENTRIES);
|
|
|
9
9
|
export function* addDomainMemberSaga({ payload }) {
|
|
10
10
|
try {
|
|
11
11
|
const { resource_id, acl_entry } = payload;
|
|
12
|
-
const url = toApiPath({ resource_id
|
|
12
|
+
const url = toApiPath({ resource_id });
|
|
13
13
|
const requestData = { acl_entry };
|
|
14
14
|
const meta = { resource_id };
|
|
15
15
|
yield put({ meta, ...addDomainMember.request() });
|