datajunction-ui 0.0.1-a38 → 0.0.1-a39.dev0
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/dj.internal.db
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@ describe('AddEditNodePage submission failed', () => {
|
|
|
93
93
|
expect(mockDjClient.DataJunctionAPI.tagsNode).toBeCalled();
|
|
94
94
|
expect(mockDjClient.DataJunctionAPI.tagsNode).toBeCalledWith(
|
|
95
95
|
'default.num_repair_orders',
|
|
96
|
-
[
|
|
96
|
+
['purpose'],
|
|
97
97
|
);
|
|
98
98
|
expect(mockDjClient.DataJunctionAPI.tagsNode).toReturnWith({
|
|
99
99
|
json: { message: 'Some tags were not found' },
|
|
@@ -120,7 +120,7 @@ describe('AddEditNodePage submission succeeded', () => {
|
|
|
120
120
|
expect(mockDjClient.DataJunctionAPI.tagsNode).toBeCalledTimes(1);
|
|
121
121
|
expect(mockDjClient.DataJunctionAPI.tagsNode).toBeCalledWith(
|
|
122
122
|
'default.num_repair_orders',
|
|
123
|
-
[
|
|
123
|
+
['purpose'],
|
|
124
124
|
);
|
|
125
125
|
|
|
126
126
|
expect(mockDjClient.DataJunctionAPI.listMetricMetadata).toBeCalledTimes(
|
|
@@ -144,9 +144,10 @@ export function AddEditNodePage() {
|
|
|
144
144
|
values.metric_direction,
|
|
145
145
|
values.metric_unit,
|
|
146
146
|
);
|
|
147
|
+
|
|
147
148
|
const tagsResponse = await djClient.tagsNode(
|
|
148
149
|
values.name,
|
|
149
|
-
values.tags.map(tag => tag),
|
|
150
|
+
values.tags.map(tag => tag.name),
|
|
150
151
|
);
|
|
151
152
|
if ((status === 200 || status === 201) && tagsResponse.status === 200) {
|
|
152
153
|
setStatus({
|