From d91d2596aa6e91e1547edca876b304af22930c9d Mon Sep 17 00:00:00 2001 From: Cao Vien Lam Date: Fri, 16 Feb 2024 09:20:22 +0100 Subject: [PATCH] ADD Support for Minutes Semantic Period --- sap-alm-dp-api-datasource/src/DataSource.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sap-alm-dp-api-datasource/src/DataSource.ts b/sap-alm-dp-api-datasource/src/DataSource.ts index 07fc484..37f8a0a 100644 --- a/sap-alm-dp-api-datasource/src/DataSource.ts +++ b/sap-alm-dp-api-datasource/src/DataSource.ts @@ -271,6 +271,8 @@ export class DataSource extends DataSourceApi { translateToPeriodUnit(unit: string): string { if (unit) { switch (unit) { + case 'h': + return 'H'; case 'd': return 'D'; case 'w': @@ -280,7 +282,7 @@ export class DataSource extends DataSourceApi { case 'y': return 'Y'; default: - return 'H'; + return 'Mi'; } } return '';