@truedat/lm 7.5.7 → 7.5.10

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.
Files changed (71) hide show
  1. package/index.js +5 -0
  2. package/package.json +43 -67
  3. package/src/components/ConceptImplementationLink.js +1 -2
  4. package/src/components/ConceptLink.js +2 -3
  5. package/src/components/ConceptLinkTags.js +0 -1
  6. package/src/components/ConceptStructureLinkForm.js +3 -3
  7. package/src/components/ConfirmDeleteRelation.js +0 -1
  8. package/src/components/ImplementationLinkRow.js +0 -1
  9. package/src/components/ImplementationLinks.js +1 -2
  10. package/src/components/ImplementationRelationForm.js +5 -8
  11. package/src/components/LinksPane.js +0 -1
  12. package/src/components/NewRelationTag.js +0 -1
  13. package/src/components/RelationActions.js +3 -4
  14. package/src/components/RelationGraph.js +1 -1
  15. package/src/components/RelationGraphDepth.js +6 -3
  16. package/src/components/RelationRoutes.js +16 -25
  17. package/src/components/RelationRow.js +6 -7
  18. package/src/components/RelationTagCards.js +2 -2
  19. package/src/components/RelationTagForm.js +0 -2
  20. package/src/components/RelationTags.js +1 -2
  21. package/src/components/RelationTagsLoader.js +2 -2
  22. package/src/components/Relations.js +0 -1
  23. package/src/components/RelationsGraphLoader.js +0 -1
  24. package/src/components/StructureLinkRow.js +0 -1
  25. package/src/components/StructureLinks.js +1 -2
  26. package/src/components/StructureRelationForm.js +5 -9
  27. package/src/components/TagTypeDropdownSelector.js +1 -1
  28. package/src/components/TagTypeSelector.js +0 -2
  29. package/src/components/__tests__/ConceptImplementationLink.spec.js +0 -1
  30. package/src/components/__tests__/ConceptLinkTags.spec.js +7 -9
  31. package/src/components/__tests__/ConceptStructureLinkForm.spec.js +68 -20
  32. package/src/components/__tests__/ConfirmDeleteRelation.spec.js +0 -1
  33. package/src/components/__tests__/ImplementationLinkRow.spec.js +0 -1
  34. package/src/components/__tests__/ImplementationLinks.spec.js +0 -1
  35. package/src/components/__tests__/ImplementationRelationForm.spec.js +45 -73
  36. package/src/components/__tests__/LinksPane.spec.js +0 -1
  37. package/src/components/__tests__/NewRelationTag.spec.js +0 -1
  38. package/src/components/__tests__/RelationActions.spec.js +14 -15
  39. package/src/components/__tests__/RelationRoutes.spec.js +59 -7
  40. package/src/components/__tests__/RelationRow.spec.js +46 -23
  41. package/src/components/__tests__/RelationTagCards.spec.js +0 -1
  42. package/src/components/__tests__/RelationTagForm.spec.js +26 -37
  43. package/src/components/__tests__/RelationTags.spec.js +0 -1
  44. package/src/components/__tests__/RelationTagsLoader.spec.js +6 -6
  45. package/src/components/__tests__/Relations.spec.js +19 -17
  46. package/src/components/__tests__/RelationsGraphLoader.spec.js +32 -26
  47. package/src/components/__tests__/RelationsLoader.spec.js +19 -19
  48. package/src/components/__tests__/StructureRelationForm.spec.js +41 -42
  49. package/src/components/__tests__/TagTypeSelector.spec.js +7 -13
  50. package/src/components/__tests__/__snapshots__/ConceptImplementationLink.spec.js.snap +1 -0
  51. package/src/components/__tests__/__snapshots__/ConceptLinkTags.spec.js.snap +12 -20
  52. package/src/components/__tests__/__snapshots__/ConceptStructureLinkForm.spec.js.snap +170 -19
  53. package/src/components/__tests__/__snapshots__/ImplementationLinks.spec.js.snap +4 -0
  54. package/src/components/__tests__/__snapshots__/ImplementationRelationForm.spec.js.snap +13 -13
  55. package/src/components/__tests__/__snapshots__/NewRelationTag.spec.js.snap +12 -11
  56. package/src/components/__tests__/__snapshots__/RelationActions.spec.js.snap +1 -1
  57. package/src/components/__tests__/__snapshots__/RelationRoutes.spec.js.snap +21 -5
  58. package/src/components/__tests__/__snapshots__/RelationRow.spec.js.snap +7 -1
  59. package/src/components/__tests__/__snapshots__/RelationTagCards.spec.js.snap +0 -1
  60. package/src/components/__tests__/__snapshots__/RelationTagForm.spec.js.snap +11 -10
  61. package/src/components/__tests__/__snapshots__/RelationTags.spec.js.snap +1 -1
  62. package/src/components/__tests__/__snapshots__/RelationTagsLoader.spec.js.snap +1 -1
  63. package/src/components/__tests__/__snapshots__/Relations.spec.js.snap +36 -27
  64. package/src/components/__tests__/__snapshots__/RelationsGraphLoader.spec.js.snap +1 -25
  65. package/src/components/__tests__/__snapshots__/StructureRelationForm.spec.js.snap +1 -1
  66. package/src/components/__tests__/__snapshots__/TagTypeSelector.spec.js.snap +11 -14
  67. package/src/hooks/useTags.js +1 -1
  68. package/src/sagas/__tests__/fetchRelationsGraph.spec.js +2 -2
  69. package/src/sagas/fetchRelationsGraph.js +1 -1
  70. package/src/selectors/getStructureLinks.js +1 -1
  71. package/src/services/relationGraphTraversal.js +3 -3
@@ -4,7 +4,6 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <div
6
6
  class="ui bottom attached segment"
7
- style=""
8
7
  >
9
8
  <div
10
9
  class="ui grid"
@@ -16,7 +15,7 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
16
15
  <h4
17
16
  class="ui header"
18
17
  >
19
- header
18
+ implementations.relation.new.header
20
19
  </h4>
21
20
  <div
22
21
  class="field concept-relation-form"
@@ -26,7 +25,7 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
26
25
  >
27
26
  <b>
28
27
  <label>
29
- Relation types
28
+ relations.relationType
30
29
  </label>
31
30
  </b>
32
31
  <div>
@@ -75,7 +74,7 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
75
74
  </div>
76
75
  </div>
77
76
  <label>
78
- Related Concept
77
+ conceptRelations.relatedConcept
79
78
  </label>
80
79
  <div
81
80
  class="ui segment"
@@ -88,7 +87,7 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
88
87
  class="search link icon"
89
88
  />
90
89
  <input
91
- placeholder="Search..."
90
+ placeholder="search.placeholder"
92
91
  type="text"
93
92
  value=""
94
93
  />
@@ -132,7 +131,7 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
132
131
  <div
133
132
  class="appliedFilters"
134
133
  >
135
- Applied Filters
134
+ search.applied_filters
136
135
  </div>
137
136
  <div
138
137
  aria-expanded="true"
@@ -190,12 +189,12 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
190
189
  <a
191
190
  class="resetFilters"
192
191
  >
193
- Clear Filters
192
+ search.clear_filters
194
193
  </a>
195
194
  <a
196
195
  class="resetFilters"
197
196
  >
198
- Save Filters
197
+ search.save_filters
199
198
  </a>
200
199
  </div>
201
200
  <table
@@ -210,17 +209,17 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
210
209
  <th
211
210
  class=""
212
211
  >
213
- Name
212
+ concepts.props.name
214
213
  </th>
215
214
  <th
216
215
  class=""
217
216
  >
218
- Domain
217
+ concepts.props.domain
219
218
  </th>
220
219
  <th
221
220
  class=""
222
221
  >
223
- Status
222
+ concepts.props.status
224
223
  </th>
225
224
  </tr>
226
225
  </thead>
@@ -284,14 +283,15 @@ exports[`<ImplementationRelationForm /> matches the latest snapshot 1`] = `
284
283
  disabled=""
285
284
  tabindex="-1"
286
285
  >
287
- Create
286
+ actions.create
288
287
  </button>
289
288
  <a
290
289
  class="ui secondary button"
290
+ data-discover="true"
291
291
  href="/"
292
292
  role="button"
293
293
  >
294
- Cancel
294
+ actions.cancel
295
295
  </a>
296
296
  </div>
297
297
  </div>
@@ -15,7 +15,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
15
15
  <div
16
16
  class="content"
17
17
  >
18
- Create Relation Type
18
+ New Relation Type
19
19
  </div>
20
20
  </h2>
21
21
  <form
@@ -27,7 +27,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
27
27
  <label
28
28
  for="type"
29
29
  >
30
- Type
30
+ relationTags.props.type
31
31
  </label>
32
32
  <div
33
33
  class="ui input"
@@ -35,7 +35,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
35
35
  <input
36
36
  autocomplete="off"
37
37
  id="type"
38
- placeholder="Type"
38
+ placeholder="relationTags.props.type.placeholder"
39
39
  required=""
40
40
  type="text"
41
41
  value=""
@@ -48,7 +48,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
48
48
  <label
49
49
  for="target_type"
50
50
  >
51
- Target type
51
+ relationTags.props.target_type
52
52
  </label>
53
53
  <div
54
54
  aria-expanded="false"
@@ -65,7 +65,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
65
65
  class="divider default text"
66
66
  role="alert"
67
67
  >
68
- Target type
68
+ relationTags.props.target_type.placeholder
69
69
  </div>
70
70
  <i
71
71
  aria-hidden="true"
@@ -84,7 +84,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
84
84
  <span
85
85
  class="text"
86
86
  >
87
- Concept
87
+ target_type.business_concept
88
88
  </span>
89
89
  </div>
90
90
  <div
@@ -97,7 +97,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
97
97
  <span
98
98
  class="text"
99
99
  >
100
- Ingest
100
+ target_type.ingest
101
101
  </span>
102
102
  </div>
103
103
  <div
@@ -110,7 +110,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
110
110
  <span
111
111
  class="text"
112
112
  >
113
- Implementations
113
+ target_type.implementations
114
114
  </span>
115
115
  </div>
116
116
  <div
@@ -123,7 +123,7 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
123
123
  <span
124
124
  class="text"
125
125
  >
126
- Structure
126
+ target_type.data_field
127
127
  </span>
128
128
  </div>
129
129
  </div>
@@ -138,14 +138,15 @@ exports[`<NewRelationTag /> matches the latest snapshot 1`] = `
138
138
  tabindex="-1"
139
139
  type="submit"
140
140
  >
141
- Create
141
+ actions.create
142
142
  </button>
143
143
  <a
144
144
  class="ui secondary button"
145
+ data-discover="true"
145
146
  href="/"
146
147
  role="button"
147
148
  >
148
- Cancel
149
+ actions.cancel
149
150
  </a>
150
151
  </div>
151
152
  </form>
@@ -1,3 +1,3 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<RelationActions /> matches the latest snapshot 1`] = `<Fragment />`;
3
+ exports[`<RelationActions /> matches the latest snapshot 1`] = `<div />`;
@@ -1,8 +1,24 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<RelationRoutes /> matches the latest snapshot 1`] = `
4
- <Route
5
- path="/relationTags"
6
- render={[Function]}
7
- />
3
+ exports[`<RelationRoutes /> renders correctly with RELATION_TAGS route 1`] = `
4
+ <div>
5
+ <div>
6
+ RelationTagsLoader
7
+ </div>
8
+ <div>
9
+ RelationTags
10
+ </div>
11
+ </div>
8
12
  `;
13
+
14
+ exports[`<RelationRoutes /> renders correctly with RELATION_TAGS_NEW route 1`] = `
15
+ <div>
16
+ <div>
17
+ NewRelationTag
18
+ </div>
19
+ </div>
20
+ `;
21
+
22
+ exports[`<RelationRoutes /> renders correctly with default route 1`] = `<div />`;
23
+
24
+ exports[`<RelationRoutes /> renders unauthorized component when not authorized 1`] = `<div />`;
@@ -1,3 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<RelationRow /> matches the latest snapshot 1`] = `""`;
3
+ exports[`<RelationRow /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <table>
6
+ <tbody />
7
+ </table>
8
+ </div>
9
+ `;
@@ -32,7 +32,6 @@ exports[`<RelationTagCards /> matches the latest snapshot 1`] = `
32
32
  readonly=""
33
33
  tabindex="0"
34
34
  type="checkbox"
35
- value=""
36
35
  />
37
36
  <label>
38
37
  Expandable
@@ -11,7 +11,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
11
11
  <label
12
12
  for="type"
13
13
  >
14
- type
14
+ relationTags.props.type
15
15
  </label>
16
16
  <div
17
17
  class="ui input"
@@ -19,7 +19,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
19
19
  <input
20
20
  autocomplete="off"
21
21
  id="type"
22
- placeholder="..."
22
+ placeholder="relationTags.props.type.placeholder"
23
23
  required=""
24
24
  type="text"
25
25
  value=""
@@ -32,7 +32,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
32
32
  <label
33
33
  for="target_type"
34
34
  >
35
- target
35
+ relationTags.props.target_type
36
36
  </label>
37
37
  <div
38
38
  aria-expanded="false"
@@ -49,7 +49,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
49
49
  class="divider default text"
50
50
  role="alert"
51
51
  >
52
- ...
52
+ relationTags.props.target_type.placeholder
53
53
  </div>
54
54
  <i
55
55
  aria-hidden="true"
@@ -68,7 +68,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
68
68
  <span
69
69
  class="text"
70
70
  >
71
- concept
71
+ target_type.business_concept
72
72
  </span>
73
73
  </div>
74
74
  <div
@@ -81,7 +81,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
81
81
  <span
82
82
  class="text"
83
83
  >
84
- ingest
84
+ target_type.ingest
85
85
  </span>
86
86
  </div>
87
87
  <div
@@ -94,7 +94,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
94
94
  <span
95
95
  class="text"
96
96
  >
97
- implementations
97
+ target_type.implementations
98
98
  </span>
99
99
  </div>
100
100
  <div
@@ -107,7 +107,7 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
107
107
  <span
108
108
  class="text"
109
109
  >
110
- structure
110
+ target_type.data_field
111
111
  </span>
112
112
  </div>
113
113
  </div>
@@ -122,14 +122,15 @@ exports[`<RelationTagForm /> matches the latest snapshot 1`] = `
122
122
  tabindex="-1"
123
123
  type="submit"
124
124
  >
125
- create
125
+ actions.create
126
126
  </button>
127
127
  <a
128
128
  class="ui secondary button"
129
+ data-discover="true"
129
130
  href="/"
130
131
  role="button"
131
132
  >
132
- cancel
133
+ actions.cancel
133
134
  </a>
134
135
  </div>
135
136
  </form>
@@ -10,6 +10,7 @@ exports[`<RelationTags /> matches the latest snapshot 1`] = `
10
10
  >
11
11
  <a
12
12
  class="ui primary right floated button"
13
+ data-discover="true"
13
14
  href="/relationTags/new"
14
15
  role="button"
15
16
  >
@@ -60,7 +61,6 @@ exports[`<RelationTags /> matches the latest snapshot 1`] = `
60
61
  readonly=""
61
62
  tabindex="0"
62
63
  type="checkbox"
63
- value=""
64
64
  />
65
65
  <label>
66
66
  Expandable
@@ -1,3 +1,3 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<RelationTagsLoader /> matches the latest snapshot 1`] = `""`;
3
+ exports[`<RelationTagsLoader /> matches the latest snapshot 1`] = `<div />`;
@@ -1,32 +1,41 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<Relations /> matches the latest snapshot 1`] = `
4
- <Segment
5
- attached="bottom"
6
- >
7
- <Grid>
8
- <GridRow>
9
- <GridColumn>
10
- <Connect(RelationActions) />
11
- </GridColumn>
12
- </GridRow>
13
- <GridRow>
14
- <GridColumn>
15
- <Table
16
- as="table"
17
- selectable={true}
4
+ <div>
5
+ <div
6
+ class="ui bottom attached segment"
7
+ >
8
+ <div
9
+ class="ui grid"
10
+ >
11
+ <div
12
+ class="row"
13
+ >
14
+ <div
15
+ class="column"
16
+ />
17
+ </div>
18
+ <div
19
+ class="row"
20
+ >
21
+ <div
22
+ class="column"
18
23
  >
19
- <TableBody
20
- as="tbody"
21
- />
22
- </Table>
23
- </GridColumn>
24
- </GridRow>
25
- <GridRow>
26
- <MemoizedFormattedMessage
27
- id="relations.empty"
28
- />
29
- </GridRow>
30
- </Grid>
31
- </Segment>
24
+ <table
25
+ class="ui selectable table"
26
+ >
27
+ <tbody
28
+ class=""
29
+ />
30
+ </table>
31
+ </div>
32
+ </div>
33
+ <div
34
+ class="row"
35
+ >
36
+ relations.empty
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </div>
32
41
  `;
@@ -1,27 +1,3 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<RelationsGraphLoader /> matches the latest snapshot 1`] = `
4
- <RelationsGraphLoader
5
- clearRelationsGraph={[MockFunction]}
6
- fetchRelationsGraph={
7
- [MockFunction] {
8
- "calls": [
9
- [
10
- {
11
- "id": 1,
12
- "type": "business_concept",
13
- },
14
- ],
15
- ],
16
- "results": [
17
- {
18
- "type": "return",
19
- "value": undefined,
20
- },
21
- ],
22
- }
23
- }
24
- relationsGraphLoading={false}
25
- resource_id={1}
26
- />
27
- `;
3
+ exports[`<RelationsGraphLoader /> matches the latest snapshot 1`] = `<div />`;
@@ -4,7 +4,6 @@ exports[`<StructureRelationForm /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <div
6
6
  class="ui grid"
7
- style=""
8
7
  >
9
8
  <div
10
9
  class="sixteen wide column"
@@ -225,6 +224,7 @@ exports[`<StructureRelationForm /> matches the latest snapshot 1`] = `
225
224
  </button>
226
225
  <a
227
226
  class="ui secondary button"
227
+ data-discover="true"
228
228
  href="/"
229
229
  role="button"
230
230
  >
@@ -1,17 +1,14 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<TagTypeSelector /> matches last snapshot 1`] = `
4
- <FormField
5
- style={
6
- {
7
- "marginBottom": "10px",
8
- }
9
- }
10
- >
11
- <label>
12
- <MemoizedFormattedMessage
13
- id="relations.relationType"
14
- />
15
- </label>
16
- </FormField>
3
+ exports[`<TagTypeSelector /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="field"
7
+ style="margin-bottom: 10px;"
8
+ >
9
+ <label>
10
+ relations.relationType
11
+ </label>
12
+ </div>
13
+ </div>
17
14
  `;
@@ -5,6 +5,6 @@ import { apiJsonPatch } from "@truedat/core/services/api";
5
5
  import { API_TAG } from "../api";
6
6
 
7
7
  export const useTagUpdate = (id) => {
8
- const url = compile(API_TAG)({ id });
8
+ const url = compile(API_TAG)({ id: `${id}` });
9
9
  return useSWRMutations(url, (url, { arg }) => apiJsonPatch(url, arg));
10
10
  };
@@ -87,10 +87,10 @@ describe("sagas: fetchRelationsGraphRequestSaga", () => {
87
87
  });
88
88
 
89
89
  describe("sagas: fetchRelationsGraphSaga", () => {
90
- const id = 1;
90
+ const id = "1";
91
91
 
92
92
  const type = "business_concept";
93
- const url = toApiPath({ id }) + `?type=${type}`;
93
+ const url = toApiPath({ id: `${id}` }) + `?type=${type}`;
94
94
  const data = { nodes, edges };
95
95
 
96
96
  it("should put a success action when a response is returned", () => {
@@ -9,7 +9,7 @@ const toApiPath = compile(API_RELATIONS_GRAPH);
9
9
  export function* fetchRelationsGraphSaga({ payload }) {
10
10
  try {
11
11
  const { id, type } = payload;
12
- const url = toApiPath({ id }) + `?type=${type}`;
12
+ const url = toApiPath({ id: `${id}` }) + `?type=${type}`;
13
13
  yield put(fetchRelationsGraph.request());
14
14
  const { data } = yield call(apiJson, url, JSON_OPTS);
15
15
  yield put(fetchRelationsGraph.success(data));
@@ -1,7 +1,7 @@
1
1
  import _ from "lodash/fp";
2
2
  import { createSelector } from "reselect";
3
3
 
4
- const getStructureLinks = state => state.structureLinks;
4
+ const getStructureLinks = (state) => state.structureLinks;
5
5
 
6
6
  export const getStructureToConceptLinks = createSelector(
7
7
  getStructureLinks,
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable fp/no-mutation */
2
2
  /* eslint-disable fp/no-let */
3
3
  import _ from "lodash/fp";
4
- import { defaultMemoize } from "reselect";
4
+ import { lruMemoize } from "reselect";
5
5
 
6
6
  export const EMPTY = "_EMPTY";
7
7
 
@@ -13,7 +13,7 @@ const equalityCheck = (previousVal, currentVal) =>
13
13
  ? _.isEqual(previousVal.sort(), currentVal.sort())
14
14
  : previousVal === currentVal;
15
15
 
16
- export const findMaxDepth = defaultMemoize(
16
+ export const findMaxDepth = lruMemoize(
17
17
  (graph, currentId, traversalTags) => {
18
18
  const start = currentIdToNode(graph, currentId);
19
19
  return bfsMaxDepth(graph, start, traversalTags);
@@ -21,7 +21,7 @@ export const findMaxDepth = defaultMemoize(
21
21
  { maxSize: 10, equalityCheck }
22
22
  );
23
23
 
24
- export const pruneGraph = defaultMemoize(
24
+ export const pruneGraph = lruMemoize(
25
25
  (graph, currentId, depth, traversalTags) => {
26
26
  const start = currentIdToNode(graph, currentId);
27
27
  const maxDepth = findMaxDepth(graph, currentId, traversalTags);