@sap-ux/adp-tooling 0.13.14 → 0.13.17
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.
|
@@ -12,6 +12,7 @@ interface AnnotationDataSourceMap {
|
|
|
12
12
|
[key: string]: {
|
|
13
13
|
serviceUrl: string;
|
|
14
14
|
annotationDetails: AnnotationFileDetails;
|
|
15
|
+
metadataReadErrorMsg: string | undefined;
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
export interface AnnotationDataSourceResponse {
|
|
@@ -97,6 +98,13 @@ export default class RoutesHandler {
|
|
|
97
98
|
* @param next Next Function
|
|
98
99
|
*/
|
|
99
100
|
handleGetAllAnnotationFilesMappedByDataSource: (_req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @param manifestService
|
|
104
|
+
* @param dataSrouceID
|
|
105
|
+
* @returns error message with reason
|
|
106
|
+
*/
|
|
107
|
+
private getMetaDataReadErrorMsg;
|
|
100
108
|
/**
|
|
101
109
|
* Add local annotation details to api response.
|
|
102
110
|
*
|
|
@@ -250,11 +250,13 @@ class RoutesHandler {
|
|
|
250
250
|
};
|
|
251
251
|
for (const dataSourceId in dataSources) {
|
|
252
252
|
if (dataSources[dataSourceId].type === 'OData') {
|
|
253
|
+
const metadataReadErrorMsg = await this.getMetaDataReadErrorMsg(manifestService, dataSourceId);
|
|
253
254
|
apiResponse.annotationDataSourceMap[dataSourceId] = {
|
|
254
255
|
annotationDetails: {
|
|
255
256
|
annotationExistsInWS: false
|
|
256
257
|
},
|
|
257
|
-
serviceUrl: dataSources[dataSourceId].uri
|
|
258
|
+
serviceUrl: dataSources[dataSourceId].uri,
|
|
259
|
+
metadataReadErrorMsg
|
|
258
260
|
};
|
|
259
261
|
}
|
|
260
262
|
this.fillAnnotationDataSourceMap(dataSources, dataSourceId, apiResponse.annotationDataSourceMap);
|
|
@@ -265,6 +267,22 @@ class RoutesHandler {
|
|
|
265
267
|
this.handleErrorMessage(res, next, e);
|
|
266
268
|
}
|
|
267
269
|
};
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @param manifestService
|
|
273
|
+
* @param dataSrouceID
|
|
274
|
+
* @returns error message with reason
|
|
275
|
+
*/
|
|
276
|
+
async getMetaDataReadErrorMsg(manifestService, dataSrouceID) {
|
|
277
|
+
let errorMessage;
|
|
278
|
+
try {
|
|
279
|
+
await manifestService.getDataSourceMetadata(dataSrouceID);
|
|
280
|
+
}
|
|
281
|
+
catch (error) {
|
|
282
|
+
errorMessage = `Metadata: ${error.message}`;
|
|
283
|
+
}
|
|
284
|
+
return errorMessage;
|
|
285
|
+
}
|
|
268
286
|
/**
|
|
269
287
|
* Add local annotation details to api response.
|
|
270
288
|
*
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.13.
|
|
12
|
+
"version": "0.13.17",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"uuid": "10.0.0",
|
|
35
35
|
"@sap-ux/axios-extension": "1.19.1",
|
|
36
36
|
"@sap-ux/btp-utils": "1.0.2",
|
|
37
|
-
"@sap-ux/inquirer-common": "0.6.
|
|
37
|
+
"@sap-ux/inquirer-common": "0.6.31",
|
|
38
38
|
"@sap-ux/logger": "0.6.0",
|
|
39
|
-
"@sap-ux/project-access": "1.29.
|
|
39
|
+
"@sap-ux/project-access": "1.29.18",
|
|
40
40
|
"@sap-ux/project-input-validator": "0.3.4",
|
|
41
41
|
"@sap-ux/system-access": "0.5.33",
|
|
42
|
-
"@sap-ux/ui5-config": "0.26.
|
|
43
|
-
"@sap-ux/odata-service-writer": "0.26.
|
|
42
|
+
"@sap-ux/ui5-config": "0.26.5",
|
|
43
|
+
"@sap-ux/odata-service-writer": "0.26.13",
|
|
44
44
|
"@sap-ux/nodejs-utils": "0.1.8",
|
|
45
45
|
"@sap-ux/i18n": "0.2.3"
|
|
46
46
|
},
|