datajunction-ui 0.0.1-a39.dev0 → 0.0.1-a40

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": "datajunction-ui",
3
- "version": "0.0.1-a39.dev0",
3
+ "version": "0.0.1a40",
4
4
  "description": "DataJunction Metrics Platform UI",
5
5
  "module": "src/index.tsx",
6
6
  "repository": {
@@ -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
- ['purpose'],
96
+ [{ display_name: 'Purpose', name: '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
- ['purpose'],
123
+ [{ display_name: 'Purpose', name: 'purpose' }],
124
124
  );
125
125
 
126
126
  expect(mockDjClient.DataJunctionAPI.listMetricMetadata).toBeCalledTimes(
@@ -144,10 +144,9 @@ export function AddEditNodePage() {
144
144
  values.metric_direction,
145
145
  values.metric_unit,
146
146
  );
147
-
148
147
  const tagsResponse = await djClient.tagsNode(
149
148
  values.name,
150
- values.tags.map(tag => tag.name),
149
+ values.tags.map(tag => tag),
151
150
  );
152
151
  if ((status === 200 || status === 201) && tagsResponse.status === 200) {
153
152
  setStatus({
package/dj.internal.db DELETED
File without changes