@truedat/se 7.13.2 → 7.13.4

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/se",
3
- "version": "7.13.2",
3
+ "version": "7.13.4",
4
4
  "description": "Truedat Web Search Engine",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -48,14 +48,14 @@
48
48
  "@testing-library/jest-dom": "^6.6.3",
49
49
  "@testing-library/react": "^16.3.0",
50
50
  "@testing-library/user-event": "^14.6.1",
51
- "@truedat/test": "7.13.2",
51
+ "@truedat/test": "7.13.4",
52
52
  "identity-obj-proxy": "^3.0.0",
53
53
  "jest": "^29.7.0",
54
54
  "redux-saga-test-plan": "^4.0.6"
55
55
  },
56
56
  "dependencies": {
57
57
  "@apollo/client": "^3.13.8",
58
- "@truedat/core": "7.13.2",
58
+ "@truedat/core": "7.13.4",
59
59
  "axios": "^1.12.0",
60
60
  "graphql": "^16.11.0",
61
61
  "is-hotkey": "^0.2.0",
@@ -81,5 +81,5 @@
81
81
  "semantic-ui-react": "^3.0.0-beta.2",
82
82
  "swr": "^2.3.3"
83
83
  },
84
- "gitHead": "9327f81482ad5a526ceb40c2ca4165ce37434f3c"
84
+ "gitHead": "6040831e5a3ad34db35c7233cb3b630a1ad81c4e"
85
85
  }
@@ -8,7 +8,6 @@ import { useActiveRoute } from "@truedat/core/hooks";
8
8
  import { useAuthorized } from "@truedat/core/hooks";
9
9
  import {
10
10
  SEARCH_CONCEPTS,
11
- SEARCH_INGESTS,
12
11
  SEARCH_RESULTS,
13
12
  SEARCH_STRUCTURES,
14
13
  } from "@truedat/core/routes";
@@ -18,7 +17,6 @@ const relations = {
18
17
  all: ["all"],
19
18
  concepts: ["business_glossary_view"],
20
19
  structures: ["data_dictionary"],
21
- ingests: ["ingests"],
22
20
  };
23
21
 
24
22
  export const SearchTab = ({ route, name }) => {
@@ -52,9 +50,6 @@ export const SearchTabs = ({ indices }) => {
52
50
  {_.includes("structures")(indices) && (
53
51
  <SearchTab route={SEARCH_STRUCTURES} name="structures" />
54
52
  )}
55
- {_.includes("ingests")(indices) && (
56
- <SearchTab route={SEARCH_INGESTS} name="ingests" />
57
- )}
58
53
  </Menu>
59
54
  );
60
55
  };
@@ -3,7 +3,6 @@ import { useAuthorized } from "@truedat/core/hooks/useAuthorized";
3
3
  import {
4
4
  SEARCH,
5
5
  SEARCH_CONCEPTS,
6
- SEARCH_INGESTS,
7
6
  SEARCH_RESULTS,
8
7
  SEARCH_STRUCTURES,
9
8
  ELASTICINDEXES,
@@ -78,14 +77,6 @@ describe("<SearchRoutes />", () => {
78
77
  expect(rendered.container).toMatchSnapshot();
79
78
  });
80
79
 
81
- it("renders correctly with SEARCH_INGESTS route", async () => {
82
- const rendered = render(<SearchRoutes />, {
83
- routes: [SEARCH_INGESTS],
84
- });
85
- await waitForLoad(rendered);
86
- expect(rendered.container).toMatchSnapshot();
87
- });
88
-
89
80
  it("renders correctly with SEARCH_STRUCTURES route", async () => {
90
81
  const rendered = render(<SearchRoutes />, {
91
82
  routes: [SEARCH_STRUCTURES],
@@ -10,14 +10,13 @@ jest.mock("@truedat/core/hooks", () => ({
10
10
  }));
11
11
 
12
12
  describe("<SearchTabs />", () => {
13
- const props = { indices: ["concepts", "ingests", "structures"] };
13
+ const props = { indices: ["concepts", "structures"] };
14
14
  const renderOpts = {
15
15
  messages: {
16
16
  en: {
17
17
  "tabs.se.all": "All",
18
18
  "tabs.se.concepts": "Concepts",
19
19
  "tabs.se.structures": "Structures",
20
- "tabs.se.ingests": "Ingests",
21
20
  },
22
21
  },
23
22
  };
@@ -33,17 +33,6 @@ exports[`<SearchRoutes /> renders correctly with SEARCH_CONCEPTS route 1`] = `
33
33
  </div>
34
34
  `;
35
35
 
36
- exports[`<SearchRoutes /> renders correctly with SEARCH_INGESTS route 1`] = `
37
- <div>
38
- <div>
39
- SearchLoader
40
- </div>
41
- <div>
42
- Search
43
- </div>
44
- </div>
45
- `;
46
-
47
36
  exports[`<SearchRoutes /> renders correctly with SEARCH_RESULTS route 1`] = `
48
37
  <div>
49
38
  <div>
@@ -26,13 +26,6 @@ exports[`<SearchTabs /> matches the latest snapshot 1`] = `
26
26
  >
27
27
  Structures
28
28
  </a>
29
- <a
30
- class="item"
31
- data-discover="true"
32
- href="/search/ingests"
33
- >
34
- Ingests
35
- </a>
36
29
  </div>
37
30
  </div>
38
31
  `;
@@ -13,7 +13,7 @@ describe("selectors: getSearchQuery", () => {
13
13
  expect(result).toEqual({
14
14
  page: 4,
15
15
  size: 20,
16
- indexes: ["concepts", "ingests", "structures"],
16
+ indexes: ["concepts", "structures"],
17
17
  });
18
18
  });
19
19
 
@@ -45,21 +45,4 @@ describe("selectors: getSearchQuery", () => {
45
45
  indexes: ["concepts"],
46
46
  });
47
47
  });
48
-
49
- it("should return ingest index on route SEARCH_INGESTS", () => {
50
- const searchQuery = {
51
- query: "My q",
52
- path: SEARCH_INGESTS,
53
- page: 5,
54
- size: 20,
55
- };
56
- const result = getSearchQuery({ searchQuery });
57
-
58
- expect(result).toEqual({
59
- query: "My q",
60
- page: 4,
61
- size: 20,
62
- indexes: ["ingests"],
63
- });
64
- });
65
48
  });
@@ -3,11 +3,7 @@ import { searchIndicesSelector } from "../searchIndicesSelector";
3
3
  describe("selectors: searchIndicesSelector", () => {
4
4
  it("should return default indices if searchIndexes is not present in state", () => {
5
5
  const state = {};
6
- expect(searchIndicesSelector(state)).toEqual([
7
- "concepts",
8
- "ingests",
9
- "structures",
10
- ]);
6
+ expect(searchIndicesSelector(state)).toEqual(["concepts", "structures"]);
11
7
  });
12
8
 
13
9
  it("should return unique values present searchIndexes", () => {
@@ -1,16 +1,14 @@
1
1
  import {
2
2
  SEARCH,
3
3
  SEARCH_CONCEPTS,
4
- SEARCH_INGESTS,
5
4
  SEARCH_RESULTS,
6
5
  SEARCH_STRUCTURES,
7
6
  } from "@truedat/core/routes";
8
7
 
9
8
  export const defaultIndices = {
10
- [SEARCH]: ["concepts", "ingests", "structures"],
11
- [SEARCH_RESULTS]: ["concepts", "ingests", "structures"],
9
+ [SEARCH]: ["concepts", "structures"],
10
+ [SEARCH_RESULTS]: ["concepts", "structures"],
12
11
  [SEARCH_CONCEPTS]: ["concepts"],
13
- [SEARCH_INGESTS]: ["ingests"],
14
12
  [SEARCH_STRUCTURES]: ["structures"],
15
13
  };
16
14