@truedat/cx 8.7.0 → 8.7.2
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 +3 -3
- package/src/configurations/components/Configuration.js +1 -1
- package/src/configurations/components/ConfigurationActions.js +2 -2
- package/src/configurations/components/ConfigurationCards.js +2 -2
- package/src/configurations/components/ConfigurationForm.js +3 -3
- package/src/configurations/components/ConfigurationRoutes.js +2 -2
- package/src/configurations/components/ConfigurationTokenLoader.js +1 -1
- package/src/configurations/components/Configurations.js +1 -1
- package/src/configurations/components/DynamicConfigurationForm.js +1 -1
- package/src/configurations/components/EditConfiguration.js +1 -1
- package/src/configurations/components/__tests__/ConfigurationCards.spec.js +3 -3
- package/src/configurations/reducers/__tests__/configuration.spec.js +4 -4
- package/src/configurations/reducers/__tests__/configurationLoading.spec.js +4 -4
- package/src/configurations/reducers/__tests__/configurationRedirect.spec.js +9 -9
- package/src/configurations/reducers/__tests__/configurationToken.spec.js +6 -6
- package/src/configurations/reducers/__tests__/configurationTokenLoading.spec.js +3 -3
- package/src/configurations/reducers/__tests__/configurations.spec.js +4 -4
- package/src/configurations/reducers/__tests__/configurationsLoading.spec.js +4 -4
- package/src/configurations/reducers/__tests__/systemConfigurations.spec.js +3 -3
- package/src/configurations/reducers/configurations.js +1 -1
- package/src/configurations/reducers/systemConfigurations.js +1 -1
- package/src/configurations/routines.js +1 -1
- package/src/configurations/sagas/__tests__/deleteConfiguration.spec.js +1 -1
- package/src/configurations/sagas/__tests__/fetchConfigurations.spec.js +3 -3
- package/src/configurations/sagas/__tests__/signConfiguration.spec.js +1 -1
- package/src/configurations/sagas/index.js +2 -2
- package/src/jobs/components/JobFilters.js +1 -1
- package/src/jobs/components/JobFiltersLoader.js +1 -1
- package/src/jobs/components/JobSelectedFilters.js +2 -2
- package/src/jobs/components/JobsLoader.js +2 -2
- package/src/jobs/components/JobsTable.js +1 -1
- package/src/jobs/components/__tests__/JobRow.spec.js +2 -2
- package/src/jobs/components/__tests__/JobsTable.spec.js +4 -4
- package/src/jobs/reducers/__tests__/job.spec.js +2 -2
- package/src/jobs/reducers/__tests__/jobActiveFilters.spec.js +11 -11
- package/src/jobs/reducers/__tests__/jobCount.spec.js +3 -3
- package/src/jobs/reducers/__tests__/jobFilters.spec.js +2 -2
- package/src/jobs/reducers/__tests__/jobFiltersLoading.spec.js +2 -2
- package/src/jobs/reducers/__tests__/jobQuery.spec.js +4 -4
- package/src/jobs/reducers/__tests__/jobSelectedFilter.spec.js +9 -9
- package/src/jobs/reducers/__tests__/jobs.spec.js +5 -5
- package/src/jobs/reducers/__tests__/jobsPageSize.spec.js +3 -3
- package/src/jobs/reducers/jobFilters.js +1 -1
- package/src/jobs/reducers/jobSelectedFilter.js +1 -1
- package/src/jobs/sagas/__tests__/fetchJob.spec.js +2 -2
- package/src/jobs/sagas/__tests__/fetchJobFilters.spec.js +5 -5
- package/src/jobs/sagas/__tests__/fetchJobs.spec.js +5 -5
- package/src/jobs/sagas/index.js +2 -2
- package/src/jobs/selectors/getJobAvailableFilters.js +2 -2
- package/src/jobs/selectors/getJobFilterTypes.js +1 -1
- package/src/jobs/selectors/getJobSelectedFilterActiveValues.js +1 -1
- package/src/jobs/selectors/getJobSelectedFilterValues.js +2 -2
- package/src/jobs/selectors/getJobSelectedFilters.js +1 -1
- package/src/jobs/selectors/jobColumnsSelector.js +1 -1
- package/src/jobs/selectors/jobRowsSelector.js +2 -2
- package/src/jobs/selectors/sourceJobColumnsSelector.js +1 -1
- package/src/messages/en.js +12 -7
- package/src/messages/es.js +12 -7
- package/src/messages/index.js +1 -1
- package/src/sources/components/NewJob.js +1 -1
- package/src/sources/components/SourceActions.js +2 -2
- package/src/sources/components/SourceConfiguration.js +1 -1
- package/src/sources/components/SourceForm.js +2 -2
- package/src/sources/components/SourceSelector.js +8 -8
- package/src/sources/components/Sources.js +1 -1
- package/src/sources/components/__tests__/SourceDetail.spec.js +1 -1
- package/src/sources/components/__tests__/SourceForm.spec.js +3 -3
- package/src/sources/components/__tests__/SourceSelector.spec.js +1 -1
- package/src/sources/components/__tests__/Sources.spec.js +4 -4
- package/src/sources/reducers/__tests__/sourceRedirect.spec.js +8 -8
- package/src/sources/reducers/__tests__/sourceUpdateStatus.spec.js +4 -4
- package/src/sources/sagas/createSource.js +1 -1
- package/src/sources/sagas/updateSource.js +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
closeJobFilter,
|
|
5
5
|
removeJobFilter,
|
|
6
6
|
resetJobFilters,
|
|
7
|
-
toggleJobFilterValue
|
|
7
|
+
toggleJobFilterValue,
|
|
8
8
|
} from "../../routines";
|
|
9
9
|
import { jobActiveFilters } from "..";
|
|
10
10
|
|
|
@@ -21,8 +21,8 @@ describe("reducers: jobActiveFilters", () => {
|
|
|
21
21
|
expect(
|
|
22
22
|
jobActiveFilters(fooState, {
|
|
23
23
|
type: addJobFilter.TRIGGER,
|
|
24
|
-
payload
|
|
25
|
-
})
|
|
24
|
+
payload,
|
|
25
|
+
}),
|
|
26
26
|
).toEqual({ ...fooState, baz: [] });
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -34,8 +34,8 @@ describe("reducers: jobActiveFilters", () => {
|
|
|
34
34
|
expect(
|
|
35
35
|
jobActiveFilters(state, {
|
|
36
36
|
type: closeJobFilter.TRIGGER,
|
|
37
|
-
payload
|
|
38
|
-
})
|
|
37
|
+
payload,
|
|
38
|
+
}),
|
|
39
39
|
).toEqual({ foo });
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -47,16 +47,16 @@ describe("reducers: jobActiveFilters", () => {
|
|
|
47
47
|
expect(
|
|
48
48
|
jobActiveFilters(state, {
|
|
49
49
|
type: removeJobFilter.TRIGGER,
|
|
50
|
-
payload
|
|
51
|
-
})
|
|
50
|
+
payload,
|
|
51
|
+
}),
|
|
52
52
|
).toEqual({ bar });
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
it("should handle the resetJobFilters.TRIGGER action", () => {
|
|
56
56
|
expect(
|
|
57
57
|
jobActiveFilters(fooState, {
|
|
58
|
-
type: resetJobFilters.TRIGGER
|
|
59
|
-
})
|
|
58
|
+
type: resetJobFilters.TRIGGER,
|
|
59
|
+
}),
|
|
60
60
|
).toEqual(initialState);
|
|
61
61
|
});
|
|
62
62
|
|
|
@@ -68,8 +68,8 @@ describe("reducers: jobActiveFilters", () => {
|
|
|
68
68
|
expect(
|
|
69
69
|
jobActiveFilters(state, {
|
|
70
70
|
type: toggleJobFilterValue.TRIGGER,
|
|
71
|
-
payload
|
|
72
|
-
})
|
|
71
|
+
payload,
|
|
72
|
+
}),
|
|
73
73
|
).toEqual({ foo: ["foo1", "foo3"], bar });
|
|
74
74
|
});
|
|
75
75
|
|
|
@@ -12,7 +12,7 @@ describe("reducers: jobCount", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearJobs.TRIGGER action", () => {
|
|
14
14
|
expect(jobCount(fooState, { type: clearJobs.TRIGGER })).toEqual(
|
|
15
|
-
initialState
|
|
15
|
+
initialState,
|
|
16
16
|
);
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -22,8 +22,8 @@ describe("reducers: jobCount", () => {
|
|
|
22
22
|
expect(
|
|
23
23
|
jobCount(fooState, {
|
|
24
24
|
type: fetchJobs.SUCCESS,
|
|
25
|
-
payload: { headers }
|
|
26
|
-
})
|
|
25
|
+
payload: { headers },
|
|
26
|
+
}),
|
|
27
27
|
).toEqual(count);
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -12,7 +12,7 @@ describe("reducers: jobFilters", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the clearJobFilters.TRIGGER action", () => {
|
|
14
14
|
expect(jobFilters(fooState, { type: clearJobFilters.TRIGGER })).toEqual(
|
|
15
|
-
initialState
|
|
15
|
+
initialState,
|
|
16
16
|
);
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ describe("reducers: jobFilters", () => {
|
|
|
25
25
|
jobFilters(fooState, {
|
|
26
26
|
type: fetchJobFilters.SUCCESS,
|
|
27
27
|
payload: { data: { data } },
|
|
28
|
-
})
|
|
28
|
+
}),
|
|
29
29
|
).toEqual(data);
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -12,13 +12,13 @@ describe("reducers: jobFiltersLoading", () => {
|
|
|
12
12
|
|
|
13
13
|
it("should handle the fetchJobFilters.REQUEST action", () => {
|
|
14
14
|
expect(
|
|
15
|
-
jobFiltersLoading(fooState, { type: fetchJobFilters.REQUEST })
|
|
15
|
+
jobFiltersLoading(fooState, { type: fetchJobFilters.REQUEST }),
|
|
16
16
|
).toEqual(true);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("should handle the fetchJobFilters.FULFILL action", () => {
|
|
20
20
|
expect(
|
|
21
|
-
jobFiltersLoading(fooState, { type: fetchJobFilters.FULFILL })
|
|
21
|
+
jobFiltersLoading(fooState, { type: fetchJobFilters.FULFILL }),
|
|
22
22
|
).toEqual(false);
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -12,7 +12,7 @@ describe("reducers: jobQuery", () => {
|
|
|
12
12
|
const activePage = 123;
|
|
13
13
|
const payload = { activePage };
|
|
14
14
|
expect(
|
|
15
|
-
jobQuery(fooState, { type: selectJobPage.TRIGGER, payload })
|
|
15
|
+
jobQuery(fooState, { type: selectJobPage.TRIGGER, payload }),
|
|
16
16
|
).toEqual({ ...fooState, page: activePage });
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -28,14 +28,14 @@ describe("reducers: jobQuery", () => {
|
|
|
28
28
|
it("should set the query from the payload", () => {
|
|
29
29
|
const payload = { query };
|
|
30
30
|
expect(
|
|
31
|
-
jobQuery(fooState, { type: searchJobs.TRIGGER, payload })
|
|
31
|
+
jobQuery(fooState, { type: searchJobs.TRIGGER, payload }),
|
|
32
32
|
).toMatchObject({ query });
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
it("when query is not empty it should order by relevance", () => {
|
|
36
36
|
const payload = { query };
|
|
37
37
|
expect(
|
|
38
|
-
jobQuery(fooState, { type: searchJobs.TRIGGER, payload })
|
|
38
|
+
jobQuery(fooState, { type: searchJobs.TRIGGER, payload }),
|
|
39
39
|
).toMatchObject({
|
|
40
40
|
query,
|
|
41
41
|
sort: [{ _score: "desc" }],
|
|
@@ -45,7 +45,7 @@ describe("reducers: jobQuery", () => {
|
|
|
45
45
|
it("when query is empty it should order by type", () => {
|
|
46
46
|
const payload = { query: "" };
|
|
47
47
|
expect(
|
|
48
|
-
jobQuery(fooState, { type: searchJobs.TRIGGER, payload })
|
|
48
|
+
jobQuery(fooState, { type: searchJobs.TRIGGER, payload }),
|
|
49
49
|
).toMatchObject({ query: "", sort: [{ end_date: "desc" }] });
|
|
50
50
|
});
|
|
51
51
|
});
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
closeJobFilter,
|
|
5
5
|
openJobFilter,
|
|
6
6
|
removeJobFilter,
|
|
7
|
-
resetJobFilters
|
|
7
|
+
resetJobFilters,
|
|
8
8
|
} from "../../routines";
|
|
9
9
|
import { jobSelectedFilter } from "..";
|
|
10
10
|
|
|
@@ -21,14 +21,14 @@ describe("reducers: jobSelectedFilter", () => {
|
|
|
21
21
|
expect(
|
|
22
22
|
jobSelectedFilter(fooState, {
|
|
23
23
|
type: addJobFilter.TRIGGER,
|
|
24
|
-
payload
|
|
25
|
-
})
|
|
24
|
+
payload,
|
|
25
|
+
}),
|
|
26
26
|
).toEqual(filter);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
it("should handle the closeJobFilter.TRIGGER action", () => {
|
|
30
30
|
expect(
|
|
31
|
-
jobSelectedFilter(fooState, { type: closeJobFilter.TRIGGER })
|
|
31
|
+
jobSelectedFilter(fooState, { type: closeJobFilter.TRIGGER }),
|
|
32
32
|
).toEqual(initialState);
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -38,8 +38,8 @@ describe("reducers: jobSelectedFilter", () => {
|
|
|
38
38
|
expect(
|
|
39
39
|
jobSelectedFilter(fooState, {
|
|
40
40
|
type: openJobFilter.TRIGGER,
|
|
41
|
-
payload
|
|
42
|
-
})
|
|
41
|
+
payload,
|
|
42
|
+
}),
|
|
43
43
|
).toEqual(filter);
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -49,14 +49,14 @@ describe("reducers: jobSelectedFilter", () => {
|
|
|
49
49
|
expect(
|
|
50
50
|
jobSelectedFilter(fooState, {
|
|
51
51
|
type: removeJobFilter.TRIGGER,
|
|
52
|
-
payload
|
|
53
|
-
})
|
|
52
|
+
payload,
|
|
53
|
+
}),
|
|
54
54
|
).toEqual(initialState);
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
it("should handle the resetJobFilters.TRIGGER action", () => {
|
|
58
58
|
expect(
|
|
59
|
-
jobSelectedFilter(fooState, { type: resetJobFilters.TRIGGER })
|
|
59
|
+
jobSelectedFilter(fooState, { type: resetJobFilters.TRIGGER }),
|
|
60
60
|
).toEqual(initialState);
|
|
61
61
|
});
|
|
62
62
|
|
|
@@ -23,20 +23,20 @@ describe("reducers: job", () => {
|
|
|
23
23
|
{
|
|
24
24
|
source: {
|
|
25
25
|
external_id: "source external_id_2",
|
|
26
|
-
type: "source_type_2"
|
|
26
|
+
type: "source_type_2",
|
|
27
27
|
},
|
|
28
28
|
status: "init",
|
|
29
29
|
message: "Job started",
|
|
30
|
-
end_date: "2020-01-21 16:31"
|
|
31
|
-
}
|
|
30
|
+
end_date: "2020-01-21 16:31",
|
|
31
|
+
},
|
|
32
32
|
];
|
|
33
33
|
const data = { data: collection };
|
|
34
34
|
const headers = { "x-total-count": "123" };
|
|
35
35
|
expect(
|
|
36
36
|
jobs(fooState, {
|
|
37
37
|
type: fetchJobs.SUCCESS,
|
|
38
|
-
payload: { data, headers }
|
|
39
|
-
})
|
|
38
|
+
payload: { data, headers },
|
|
39
|
+
}),
|
|
40
40
|
).toEqual(collection);
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -14,7 +14,7 @@ describe("reducers: jobsPageSize", () => {
|
|
|
14
14
|
it("should return the passed state if no size is specified", () => {
|
|
15
15
|
const payload = {};
|
|
16
16
|
expect(
|
|
17
|
-
jobsPageSize(fooState, { type: fetchJobs.TRIGGER, payload })
|
|
17
|
+
jobsPageSize(fooState, { type: fetchJobs.TRIGGER, payload }),
|
|
18
18
|
).toEqual(fooState);
|
|
19
19
|
});
|
|
20
20
|
});
|
|
@@ -25,8 +25,8 @@ describe("reducers: jobsPageSize", () => {
|
|
|
25
25
|
expect(
|
|
26
26
|
jobsPageSize(fooState, {
|
|
27
27
|
type: fetchJobs.TRIGGER,
|
|
28
|
-
payload: { size }
|
|
29
|
-
})
|
|
28
|
+
payload: { size },
|
|
29
|
+
}),
|
|
30
30
|
).toBe(1234);
|
|
31
31
|
});
|
|
32
32
|
});
|
|
@@ -10,7 +10,7 @@ const jobFilters = (state = initialState, { type, payload }) => {
|
|
|
10
10
|
case fetchJobFilters.SUCCESS:
|
|
11
11
|
return _.flow(
|
|
12
12
|
_.propOr({}, "data.data"),
|
|
13
|
-
_.omitBy(_.flow(_.getOr([], "values"), _.isEmpty))
|
|
13
|
+
_.omitBy(_.flow(_.getOr([], "values"), _.isEmpty)),
|
|
14
14
|
)(payload);
|
|
15
15
|
default:
|
|
16
16
|
return state;
|
|
@@ -30,11 +30,11 @@ describe("sagas: fetchJobSaga", () => {
|
|
|
30
30
|
const data = {
|
|
31
31
|
source: {
|
|
32
32
|
external_id: "source external_id_2",
|
|
33
|
-
type: "source_type_2"
|
|
33
|
+
type: "source_type_2",
|
|
34
34
|
},
|
|
35
35
|
status: "init",
|
|
36
36
|
message: "Job started",
|
|
37
|
-
end_date: "2020-01-21 16:31"
|
|
37
|
+
end_date: "2020-01-21 16:31",
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
it("should pass the query parameter to the API with 100ms delay", () => {
|
|
@@ -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
|
fetchJobFiltersRequestSaga,
|
|
5
|
-
fetchJobFiltersSaga
|
|
5
|
+
fetchJobFiltersSaga,
|
|
6
6
|
} from "../fetchJobFilters";
|
|
7
7
|
import { fetchJobFilters } from "../../routines";
|
|
8
8
|
import { API_JOB_FILTERS_SEARCH } from "../../api";
|
|
@@ -30,11 +30,11 @@ describe("sagas: fetchJobFiltersRequestSaga", () => {
|
|
|
30
30
|
describe("sagas: fetchJobFiltersSaga", () => {
|
|
31
31
|
const payload = {
|
|
32
32
|
filters: {
|
|
33
|
-
test: "value"
|
|
34
|
-
}
|
|
33
|
+
test: "value",
|
|
34
|
+
},
|
|
35
35
|
};
|
|
36
36
|
const data = {
|
|
37
|
-
test2: [1, 2, 3]
|
|
37
|
+
test2: [1, 2, 3],
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
it("should put a success action when a response is returned", () => {
|
|
@@ -75,7 +75,7 @@ describe("sagas: fetchJobFiltersSaga", () => {
|
|
|
75
75
|
it("should put a failure action when the call returns an error", () => {
|
|
76
76
|
const response = {
|
|
77
77
|
status: 400,
|
|
78
|
-
data: "message"
|
|
78
|
+
data: "message",
|
|
79
79
|
};
|
|
80
80
|
const error = { response };
|
|
81
81
|
|
|
@@ -31,16 +31,16 @@ describe("sagas: fetchJobsSaga", () => {
|
|
|
31
31
|
{
|
|
32
32
|
source: {
|
|
33
33
|
external_id: "source external_id_2",
|
|
34
|
-
type: "source_type_2"
|
|
34
|
+
type: "source_type_2",
|
|
35
35
|
},
|
|
36
36
|
status: "init",
|
|
37
37
|
message: "Job started",
|
|
38
|
-
end_date: "2020-01-21 16:31"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
38
|
+
end_date: "2020-01-21 16:31",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
41
|
};
|
|
42
42
|
const headers = {
|
|
43
|
-
"x-total-count": "123"
|
|
43
|
+
"x-total-count": "123",
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
it("should pass the query parameter to the API with 100ms delay", () => {
|
package/src/jobs/sagas/index.js
CHANGED
|
@@ -7,12 +7,12 @@ export {
|
|
|
7
7
|
createJobRequestSaga,
|
|
8
8
|
fetchJobRequestSaga,
|
|
9
9
|
fetchJobsRequestSaga,
|
|
10
|
-
fetchJobFiltersRequestSaga
|
|
10
|
+
fetchJobFiltersRequestSaga,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export default [
|
|
14
14
|
createJobRequestSaga(),
|
|
15
15
|
fetchJobRequestSaga(),
|
|
16
16
|
fetchJobsRequestSaga(),
|
|
17
|
-
fetchJobFiltersRequestSaga()
|
|
17
|
+
fetchJobFiltersRequestSaga(),
|
|
18
18
|
];
|
|
@@ -4,5 +4,5 @@ import { createSelector } from "reselect";
|
|
|
4
4
|
export const getJobSelectedFilterActiveValues = createSelector(
|
|
5
5
|
[_.prop("jobSelectedFilter"), _.prop("jobActiveFilters")],
|
|
6
6
|
(jobSelectedFilter, jobActiveFilters) =>
|
|
7
|
-
_.propOr([], jobSelectedFilter)(jobActiveFilters)
|
|
7
|
+
_.propOr([], jobSelectedFilter)(jobActiveFilters),
|
|
8
8
|
);
|
package/src/messages/en.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable prettier/prettier */
|
|
2
1
|
export default {
|
|
3
2
|
"alert.signConfiguration.failed.header": "Error signing configuration",
|
|
4
3
|
"alert.createSource.failed.header": "Error creating source",
|
|
@@ -15,7 +14,8 @@ export default {
|
|
|
15
14
|
"configuration.props.external_id": "Id Externo",
|
|
16
15
|
"configuration.search.no_results": "No configurations found",
|
|
17
16
|
"configurations.actions.create": "Create",
|
|
18
|
-
"configurations.actions.delete.confirmation.content":
|
|
17
|
+
"configurations.actions.delete.confirmation.content":
|
|
18
|
+
"Configuration {external_id} will be deleted. Are you sure?",
|
|
19
19
|
"configurations.actions.delete.confirmation.header": "Delete Configuration",
|
|
20
20
|
"configurations.actions.edit": "Edit Configuration",
|
|
21
21
|
"configurations.actions.remove": "Delete Configuration",
|
|
@@ -28,7 +28,8 @@ export default {
|
|
|
28
28
|
"filters.status.draft": "Draft",
|
|
29
29
|
"filters.status.rejected": "Rejected",
|
|
30
30
|
"filters.type": "Type",
|
|
31
|
-
"job.pending.content":
|
|
31
|
+
"job.pending.content":
|
|
32
|
+
"This job has not started yet, please check again later.",
|
|
32
33
|
"job.pending.header": "Job Pending",
|
|
33
34
|
"jobType.DQ.label": "Data Quality",
|
|
34
35
|
"jobType.Metadata.label": "Catalog",
|
|
@@ -54,14 +55,17 @@ export default {
|
|
|
54
55
|
"navigation.admin.jobs": "Jobs",
|
|
55
56
|
"navigation.admin.sources": "Sources",
|
|
56
57
|
"source.actions.delete": "Delete source",
|
|
57
|
-
"source.actions.delete.confirmation.content":
|
|
58
|
+
"source.actions.delete.confirmation.content":
|
|
59
|
+
"Source {external_id} will be deleted. Are you sure?",
|
|
58
60
|
"source.actions.delete.confirmation.header": "Delete source",
|
|
59
61
|
"source.actions.disable": "Disable",
|
|
60
|
-
"source.actions.disable.confirmation.content":
|
|
62
|
+
"source.actions.disable.confirmation.content":
|
|
63
|
+
"Source {external_id} will be disabled. Are you sure?",
|
|
61
64
|
"source.actions.disable.confirmation.header": "Disable source",
|
|
62
65
|
"source.actions.edit": "Edit source",
|
|
63
66
|
"source.actions.enable": "Enable",
|
|
64
|
-
"source.actions.enable.confirmation.content":
|
|
67
|
+
"source.actions.enable.confirmation.content":
|
|
68
|
+
"Source {external_id} will be enabled. Are you sure?",
|
|
65
69
|
"source.actions.enable.confirmation.header": "Enable source",
|
|
66
70
|
"source.config.label": "Configuration",
|
|
67
71
|
"source.disabled": "Disabled",
|
|
@@ -73,7 +77,8 @@ export default {
|
|
|
73
77
|
"source.status": "Status",
|
|
74
78
|
"source.type": "Type",
|
|
75
79
|
"sources.actions.create": "New Source",
|
|
76
|
-
"sources.count":
|
|
80
|
+
"sources.count":
|
|
81
|
+
"{count, plural, =0 {No sources found} =1 {One source found} other {# sources found}}",
|
|
77
82
|
"sources.header": "Metadata Sources",
|
|
78
83
|
"sources.search.placeholder": "Search sources",
|
|
79
84
|
"sources.subheader": "Management of Metadata Sources",
|
package/src/messages/es.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable prettier/prettier */
|
|
2
1
|
export default {
|
|
3
2
|
"alert.signConfiguration.failed.header": "Error firmando configuración",
|
|
4
3
|
"alert.createSource.failed.header": "Error al crear origen",
|
|
@@ -15,7 +14,8 @@ export default {
|
|
|
15
14
|
"configuration.props.external_id": "External Id",
|
|
16
15
|
"configuration.search.no_results": "Ninguna configuración encontrada",
|
|
17
16
|
"configurations.actions.create": "Nueva Configuración",
|
|
18
|
-
"configurations.actions.delete.confirmation.content":
|
|
17
|
+
"configurations.actions.delete.confirmation.content":
|
|
18
|
+
"La configuración {external_id} va a ser eliminada. ¿Desea proceder?",
|
|
19
19
|
"configurations.actions.delete.confirmation.header": "Borrar Configuración",
|
|
20
20
|
"configurations.actions.edit": "Editar Configuración",
|
|
21
21
|
"configurations.actions.remove": "Eliminar Configuración",
|
|
@@ -28,7 +28,8 @@ export default {
|
|
|
28
28
|
"filters.status.draft": "Borrador",
|
|
29
29
|
"filters.status.rejected": "Rechazado",
|
|
30
30
|
"filters.type": "Tipo",
|
|
31
|
-
"job.pending.content":
|
|
31
|
+
"job.pending.content":
|
|
32
|
+
"Este job no se ha iniciado aún, por favor comprueba de nuevo más tarde",
|
|
32
33
|
"job.pending.header": "Job Pendiente",
|
|
33
34
|
"jobType.DQ.label": "Calidad",
|
|
34
35
|
"jobType.Metadata.label": "Catálogo",
|
|
@@ -54,14 +55,17 @@ export default {
|
|
|
54
55
|
"navigation.admin.jobs": "Jobs",
|
|
55
56
|
"navigation.admin.sources": "Orígenes",
|
|
56
57
|
"source.actions.delete": "Eliminar origen",
|
|
57
|
-
"source.actions.delete.confirmation.content":
|
|
58
|
+
"source.actions.delete.confirmation.content":
|
|
59
|
+
"El origen {external_id} va a ser eliminado. ¿Desea proceder?",
|
|
58
60
|
"source.actions.delete.confirmation.header": "Eliminar origen",
|
|
59
61
|
"source.actions.disable": "Desactivar",
|
|
60
|
-
"source.actions.disable.confirmation.content":
|
|
62
|
+
"source.actions.disable.confirmation.content":
|
|
63
|
+
"El origen {external_id} va a ser desactivado. ¿Desea proceder?",
|
|
61
64
|
"source.actions.disable.confirmation.header": "Desactivar origen",
|
|
62
65
|
"source.actions.edit": "Editar origen",
|
|
63
66
|
"source.actions.enable": "Activar",
|
|
64
|
-
"source.actions.enable.confirmation.content":
|
|
67
|
+
"source.actions.enable.confirmation.content":
|
|
68
|
+
"El origen {external_id} va a ser activado. ¿Desea proceder?",
|
|
65
69
|
"source.actions.enable.confirmation.header": "Activar origen",
|
|
66
70
|
"source.config.label": "Configuración",
|
|
67
71
|
"source.disabled": "Deshabilitado",
|
|
@@ -73,7 +77,8 @@ export default {
|
|
|
73
77
|
"source.status": "Estado",
|
|
74
78
|
"source.type": "Tipo",
|
|
75
79
|
"sources.actions.create": "Nuevo origen",
|
|
76
|
-
"sources.count":
|
|
80
|
+
"sources.count":
|
|
81
|
+
"{count, plural, =0 {Ningún origen encontrado} =1 {un origen encontrado} other {# origenes encontrados}}",
|
|
77
82
|
"sources.header": "Orígenes de metadatos",
|
|
78
83
|
"sources.search.placeholder": "Buscar origenes",
|
|
79
84
|
"sources.subheader": "Gestión de los distintos orígenes de metadatos",
|
package/src/messages/index.js
CHANGED
|
@@ -27,7 +27,7 @@ export const ConfirmToggleModal = ({ onConfirm, source }) => {
|
|
|
27
27
|
size="small"
|
|
28
28
|
content={formatMessage(
|
|
29
29
|
{ id: `source.actions.${action}.confirmation.content` },
|
|
30
|
-
{ external_id: <i>{externalId}</i> }
|
|
30
|
+
{ external_id: <i>{externalId}</i> },
|
|
31
31
|
)}
|
|
32
32
|
onConfirm={() => onConfirm({ id })}
|
|
33
33
|
/>
|
|
@@ -56,7 +56,7 @@ export const ConfirmDeleteModal = ({ deleteSource, externalId, id }) => {
|
|
|
56
56
|
size="small"
|
|
57
57
|
content={formatMessage(
|
|
58
58
|
{ id: "source.actions.delete.confirmation.content" },
|
|
59
|
-
{ external_id: <i>{externalId}</i> }
|
|
59
|
+
{ external_id: <i>{externalId}</i> },
|
|
60
60
|
)}
|
|
61
61
|
onConfirm={() => deleteSource({ id })}
|
|
62
62
|
/>
|
|
@@ -5,7 +5,7 @@ import { connect } from "react-redux";
|
|
|
5
5
|
import { updateSource } from "../routines";
|
|
6
6
|
|
|
7
7
|
const DynamicFormViewer = lazy(
|
|
8
|
-
() => import("@truedat/df/components/DynamicFormViewer")
|
|
8
|
+
() => import("@truedat/df/components/DynamicFormViewer"),
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
export const SourceConfiguration = ({
|
|
@@ -87,7 +87,7 @@ export class SourceForm extends Component {
|
|
|
87
87
|
const template = this.state.template;
|
|
88
88
|
const config = _.flow(
|
|
89
89
|
_.prop("content"),
|
|
90
|
-
applyTemplate(template)
|
|
90
|
+
applyTemplate(template),
|
|
91
91
|
)(this.state);
|
|
92
92
|
onSubmit({ source: { ...source, config: config } });
|
|
93
93
|
};
|
|
@@ -111,7 +111,7 @@ export class SourceForm extends Component {
|
|
|
111
111
|
defaultMessage: label,
|
|
112
112
|
}),
|
|
113
113
|
})),
|
|
114
|
-
_.sortBy(accentInsensitivePathOrder("text"))
|
|
114
|
+
_.sortBy(accentInsensitivePathOrder("text")),
|
|
115
115
|
)(templates);
|
|
116
116
|
|
|
117
117
|
return (
|
|
@@ -28,14 +28,14 @@ export const SourceSelector = ({
|
|
|
28
28
|
const options = loading
|
|
29
29
|
? []
|
|
30
30
|
: _.flow(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
_.prop("sources"),
|
|
32
|
+
_.sortBy(accentInsensitivePathOrder("externalId")),
|
|
33
|
+
_.map(({ id, externalId }) => ({
|
|
34
|
+
key: id,
|
|
35
|
+
value: id,
|
|
36
|
+
text: externalId,
|
|
37
|
+
})),
|
|
38
|
+
)(data);
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
41
|
<Form.Dropdown
|