@truedat/ie 4.45.1 → 4.45.6

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/ie",
3
- "version": "4.45.1",
3
+ "version": "4.45.6",
4
4
  "description": "Truedat Web Ingests",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.45.1",
37
+ "@truedat/test": "4.45.6",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -87,8 +87,8 @@
87
87
  ]
88
88
  },
89
89
  "dependencies": {
90
- "@truedat/core": "4.45.1",
91
- "@truedat/df": "4.45.1",
90
+ "@truedat/core": "4.45.6",
91
+ "@truedat/df": "4.45.6",
92
92
  "file-saver": "^2.0.5",
93
93
  "moment": "^2.24.0",
94
94
  "path-to-regexp": "^1.7.0",
@@ -107,5 +107,5 @@
107
107
  "react-dom": ">= 16.8.6 < 17",
108
108
  "semantic-ui-react": ">= 0.88.2 < 2.1"
109
109
  },
110
- "gitHead": "c13f37ee357bf4a5e8c8c99eb6bd0c798f468c49"
110
+ "gitHead": "6624767ce3b6893d538087057b662d11f90eb72d"
111
111
  }
@@ -14,7 +14,7 @@ const mapStatusColor = {
14
14
  pending_approval: "teal",
15
15
  published: "green",
16
16
  rejected: "red",
17
- versioned: "yellow"
17
+ versioned: "yellow",
18
18
  };
19
19
 
20
20
  const IngestRow = ({ ingest, active, onClick, disabled }) => {
@@ -46,14 +46,14 @@ IngestRow.propTypes = {
46
46
  ingest: PropTypes.object,
47
47
  active: PropTypes.bool,
48
48
  onClick: PropTypes.func,
49
- disabled: PropTypes.bool
49
+ disabled: PropTypes.bool,
50
50
  };
51
51
 
52
52
  export const IngestsSelector = ({
53
53
  ingests,
54
54
  ingestId,
55
55
  selectedIngest,
56
- handleIngestSelected
56
+ handleIngestSelected,
57
57
  }) => {
58
58
  const selectedIngestIsFiltered = !_.reduce(
59
59
  (acc, c) => (selectedIngest && c.id == selectedIngest.id) || acc,
@@ -94,7 +94,7 @@ export const IngestsSelector = ({
94
94
  />
95
95
  ))}
96
96
  {selectedIngest && selectedIngestIsFiltered && (
97
- <IngestRow ingest={selectedIngest} active={true} />
97
+ <IngestRow ingest={selectedIngest} active />
98
98
  )}
99
99
  </Table.Body>
100
100
  </Table>
@@ -112,7 +112,7 @@ export const IngestsSelector = ({
112
112
  IngestsSelector.propTypes = {
113
113
  ingests: PropTypes.array,
114
114
  selectedIngest: PropTypes.object,
115
- handleIngestSelected: PropTypes.func
115
+ handleIngestSelected: PropTypes.func,
116
116
  };
117
117
 
118
118
  const mapStateToProps = ({ ingests }) => ({ ingests });
@@ -20,19 +20,25 @@ describe("<IngestForm />", () => {
20
20
 
21
21
  it("matches the latest snapshot", async () => {
22
22
  const { container, queryByText } = render(<IngestForm />, renderOpts);
23
+ await waitFor(
24
+ () => expect(queryByText(/lazy/i)).not.toBeInTheDocument(),
25
+ { timeout: 10000 }
26
+ );
23
27
  await waitFor(() =>
24
28
  expect(queryByText(/loading/i)).not.toBeInTheDocument()
25
29
  );
26
- await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
27
30
  expect(container).toMatchSnapshot();
28
31
  });
29
32
 
30
33
  it("contains a template selector", async () => {
31
34
  const { queryByText } = render(<IngestForm />, renderOpts);
35
+ await waitFor(
36
+ () => expect(queryByText(/lazy/i)).not.toBeInTheDocument(),
37
+ { timeout: 10000 }
38
+ );
32
39
  await waitFor(() =>
33
40
  expect(queryByText(/loading/i)).not.toBeInTheDocument()
34
41
  );
35
- await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
36
42
  expect(queryByText("template1")).toBeInTheDocument();
37
43
  });
38
44
  });
@@ -50,19 +56,25 @@ describe("<IngestForm />", () => {
50
56
 
51
57
  it("matches the latest snapshot", async () => {
52
58
  const { container, queryByText } = render(<IngestForm />, renderOpts);
59
+ await waitFor(
60
+ () => expect(queryByText(/lazy/i)).not.toBeInTheDocument(),
61
+ { timeout: 10000 }
62
+ );
53
63
  await waitFor(() =>
54
64
  expect(queryByText(/loading/i)).not.toBeInTheDocument()
55
65
  );
56
- await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
57
66
  expect(container).toMatchSnapshot();
58
67
  });
59
68
 
60
69
  it("contains no <TemplateSelector />", async () => {
61
70
  const { queryByText } = render(<IngestForm />, renderOpts);
71
+ await waitFor(
72
+ () => expect(queryByText(/lazy/i)).not.toBeInTheDocument(),
73
+ { timeout: 10000 }
74
+ );
62
75
  await waitFor(() =>
63
76
  expect(queryByText(/loading/i)).not.toBeInTheDocument()
64
77
  );
65
- await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
66
78
  expect(queryByText("template1")).not.toBeInTheDocument();
67
79
  });
68
80
  });
@@ -5,7 +5,7 @@ import { IngestsLoader } from "../IngestsLoader";
5
5
  const getProps = () => ({
6
6
  clearIngests: jest.fn(),
7
7
  loading: false,
8
- fetchIngests: jest.fn()
8
+ fetchIngests: jest.fn(),
9
9
  });
10
10
 
11
11
  describe("<IngestsLoader />", () => {
@@ -17,7 +17,7 @@ describe("<IngestsLoader />", () => {
17
17
 
18
18
  it("renders a loader if ingestLoading is true", () => {
19
19
  const props = getProps();
20
- const wrapper = mount(<IngestsLoader {...props} loading={true} />);
20
+ const wrapper = mount(<IngestsLoader {...props} loading />);
21
21
  expect(wrapper.find("Loading").length).toBe(1);
22
22
  });
23
23
 
@@ -198,23 +198,23 @@ exports[`<IngestForm /> with a single template matches the latest snapshot 1`] =
198
198
  autocorrect="on"
199
199
  contenteditable="true"
200
200
  data-gramm="false"
201
- data-key="9"
201
+ data-key="10"
202
202
  data-slate-editor="true"
203
203
  role="textbox"
204
204
  spellcheck="true"
205
205
  style="outline: none; white-space: pre-wrap; word-wrap: break-word;"
206
206
  >
207
207
  <div
208
- data-key="10"
208
+ data-key="11"
209
209
  data-slate-object="block"
210
210
  style="position: relative;"
211
211
  >
212
212
  <span
213
- data-key="13"
213
+ data-key="14"
214
214
  data-slate-object="text"
215
215
  >
216
216
  <span
217
- data-offset-key="13:0"
217
+ data-offset-key="14:0"
218
218
  data-slate-leaf="true"
219
219
  >
220
220
  <span>
@@ -501,11 +501,11 @@ exports[`<IngestForm /> with multiple templates matches the latest snapshot 1`]
501
501
  style="position: relative;"
502
502
  >
503
503
  <span
504
- data-key="3"
504
+ data-key="4"
505
505
  data-slate-object="text"
506
506
  >
507
507
  <span
508
- data-offset-key="3:0"
508
+ data-offset-key="4:0"
509
509
  data-slate-leaf="true"
510
510
  >
511
511
  <span>
@@ -14,7 +14,6 @@ export default {
14
14
  "filters._confidential": "Confidential",
15
15
  "filters.domain": "Domain",
16
16
  "filters.filiacion": "Filiacion",
17
- "filters.status": "Status",
18
17
  "filters.template": "Tipo",
19
18
  "filters.execution_status": "Execution status",
20
19
  "ingest.error.existing.ingest":
@@ -15,7 +15,6 @@ export default {
15
15
  "filters._confidential": "Confidencial",
16
16
  "filters.domain": "Dominio",
17
17
  "filters.filiacion": "Filiacion",
18
- "filters.status": "Estado",
19
18
  "filters.template": "Tipo",
20
19
  "filters.execution_status": "Estado ejecución",
21
20
  "ingest.error.existing.ingest":