teraslice 3.0.0-dev.13 → 3.0.0-dev.14

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.
@@ -46,7 +46,6 @@ export class AssetsService {
46
46
  const code = created ? 201 : 200;
47
47
  const assetResponse = {
48
48
  asset_id: assetId,
49
- _id: assetId
50
49
  };
51
50
  res.status(code).json(assetResponse);
52
51
  }
@@ -74,7 +73,6 @@ export class AssetsService {
74
73
  else {
75
74
  const assetResponse = {
76
75
  asset_id: assetId,
77
- _id: assetId
78
76
  };
79
77
  requestHandler(async () => {
80
78
  await this.assetsStorage.remove(assetId);
@@ -382,17 +382,17 @@ export class JobsService {
382
382
  }
383
383
  adjustNamesByAsset(jobConfig, dict) {
384
384
  jobConfig.operations = jobConfig.operations.map((op) => {
385
- if (op.api_name?.includes('@')) {
386
- const { name, assetIdentifier, tag } = parseName(op.api_name);
385
+ if (op._api_name?.includes('@')) {
386
+ const { name, assetIdentifier, tag } = parseName(op._api_name);
387
387
  const hashId = dict.get(assetIdentifier);
388
388
  if (!hashId) {
389
- throw new Error(`Invalid operation api_name for _op: ${name}, could not find the hashID for asset identifier ${assetIdentifier}`);
389
+ throw new Error(`Invalid operation _api_name for _op: ${name}, could not find the hashID for asset identifier ${assetIdentifier}`);
390
390
  }
391
391
  let hashedName = `${name}@${hashId}`;
392
392
  if (tag) {
393
393
  hashedName = `${hashedName}:${tag}`;
394
394
  }
395
- op.api_name = hashedName;
395
+ op._api_name = hashedName;
396
396
  }
397
397
  if (op._op.includes('@')) {
398
398
  const { name, assetIdentifier } = parseName(op._op);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "teraslice",
3
3
  "displayName": "Teraslice",
4
- "version": "3.0.0-dev.13",
4
+ "version": "3.0.0-dev.14",
5
5
  "description": "Distributed computing platform for processing JSON data",
6
6
  "homepage": "https://github.com/terascope/teraslice#readme",
7
7
  "bugs": {
@@ -39,11 +39,11 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@kubernetes/client-node": "~1.3.0",
42
- "@terascope/core-utils": "~2.0.0-dev.10",
43
- "@terascope/elasticsearch-api": "~5.0.0-dev.11",
44
- "@terascope/job-components": "~2.0.0-dev.11",
45
- "@terascope/teraslice-messaging": "~2.0.0-dev.11",
46
- "@terascope/types": "~2.0.0-dev.8",
42
+ "@terascope/core-utils": "~2.0.0-dev.11",
43
+ "@terascope/elasticsearch-api": "~5.0.0-dev.12",
44
+ "@terascope/job-components": "~2.0.0-dev.12",
45
+ "@terascope/teraslice-messaging": "~2.0.0-dev.12",
46
+ "@terascope/types": "~2.0.0-dev.9",
47
47
  "async-mutex": "~0.5.0",
48
48
  "barbe": "~3.0.17",
49
49
  "body-parser": "~2.2.0",
@@ -61,11 +61,11 @@
61
61
  "semver": "~7.7.2",
62
62
  "socket.io": "~4.8.1",
63
63
  "socket.io-client": "~4.8.1",
64
- "terafoundation": "~2.0.0-dev.12",
64
+ "terafoundation": "~2.0.0-dev.13",
65
65
  "uuid": "~13.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@terascope/opensearch-client": "~2.0.0-dev.10",
68
+ "@terascope/opensearch-client": "~2.0.0-dev.11",
69
69
  "@types/archiver": "~6.0.3",
70
70
  "@types/body-parser": "^1.19.6",
71
71
  "@types/decompress": "^4.2.7",