You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2020/06/09 09:43:37 UTC

[incubator-streampipes] branch dev updated: Remove som unused methods in the data lake api

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 36b3c62  Remove som unused methods in the data lake  api
     new fe5ec0f  Merge branch 'dev' of github.com:apache/incubator-streampipes into dev
36b3c62 is described below

commit 36b3c62e1bfc9969d06330296b5afe745e277b8c
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Tue Jun 9 11:42:51 2020 +0200

    Remove som unused methods in the data lake  api
---
 .../datalake/datalake-rest.service.ts              | 38 +---------------------
 1 file changed, 1 insertion(+), 37 deletions(-)

diff --git a/ui/src/app/core-services/datalake/datalake-rest.service.ts b/ui/src/app/core-services/datalake/datalake-rest.service.ts
index 77e19ea..57e6b98 100644
--- a/ui/src/app/core-services/datalake/datalake-rest.service.ts
+++ b/ui/src/app/core-services/datalake/datalake-rest.service.ts
@@ -40,7 +40,6 @@ export class DatalakeRestService {
         return this.baseUrl + '/api/v3/users/' + this.authStatusService.email + '/datalake';
     }
 
-
     getAllInfos() {
         return this.http.get<DataLakeMeasure[]>(this.dataLakeUrlV3 + '/info');
     }
@@ -53,14 +52,6 @@ export class DatalakeRestService {
         return this.http.get<PageResult>(this.dataLakeUrlV3 + '/data/' + index + '/paging?itemsPerPage=' + itemsPerPage);
     }
 
-    getLastData(index, timeunit, value, aggregationTimeUnit, aggregationValue) {
-        return this.http.get<DataResult>(this.dataLakeUrlV3 + '/data/' + index + '/last/' + value + '/' + timeunit + '?aggregationUnit=' + aggregationTimeUnit + '&aggregationValue=' + aggregationValue);
-    }
-
-    getLastDataAutoAggregation(index, timeunit, value) {
-        return this.http.get<DataResult>(this.dataLakeUrlV3 + '/data/' + index + '/last/' + value + '/' + timeunit);
-    }
-
     getData(index, startDate, endDate, aggregationTimeUnit, aggregationValue): Observable<DataResult> {
         return this.http.get<DataResult>(this.dataLakeUrlV3 + '/data/' + index + '/' + startDate + '/' + endDate + '?aggregationUnit=' + aggregationTimeUnit + '&aggregationValue=' + aggregationValue);
     }
@@ -74,19 +65,7 @@ export class DatalakeRestService {
     }
 
     getGroupedDataAutoAggergation(index, startDate, endDate, groupingTag) {
-            return this.http.get<GroupedDataResult>(this.dataLakeUrlV3 + '/data/' + index + '/' + startDate + '/' + endDate + '/grouping/' + groupingTag);
-    }
-
-
-    /*
-        @deprecate
-     */
-    getFile(index, format) {
-        const request = new HttpRequest('GET', this.dataLakeUrlV3 + '/data/' + index + '?format=' + format,  {
-            reportProgress: true,
-            responseType: 'text'
-        });
-        return this.http.request(request);
+      return this.http.get<GroupedDataResult>(this.dataLakeUrlV3 + '/data/' + index + '/' + startDate + '/' + endDate + '/grouping/' + groupingTag);
     }
 
     downloadRowData(index, format) {
@@ -106,21 +85,6 @@ export class DatalakeRestService {
         return this.http.request(request);
     }
 
-    getImageSrcs() {
-        return [
-          'https://cdn.pixabay.com/photo/2017/10/29/21/05/bridge-2900839_1280.jpg',
-          'https://cdn.pixabay.com/photo/2014/04/02/19/32/dead-end-308178_1280.jpg',
-          'https://cdn.pixabay.com/photo/2015/05/01/14/46/new-york-748595_1280.jpg',
-          'https://cdn.pixabay.com/photo/2015/02/13/10/18/stop-634941_1280.jpg',
-          'https://cdn.pixabay.com/photo/2017/10/29/21/05/bridge-2900839_1280.jpg',
-          'https://cdn.pixabay.com/photo/2017/04/23/08/43/new-york-2253292_1280.jpg',
-          'https://cdn.pixabay.com/photo/2015/05/01/14/46/new-york-748595_1280.jpg',
-          'https://cdn.pixabay.com/photo/2017/10/29/21/05/bridge-2900839_1280.jpg',
-          'https://cdn.pixabay.com/photo/2015/02/13/10/18/stop-634941_1280.jpg',
-          'https://cdn.pixabay.com/photo/2017/10/29/21/05/bridge-2900839_1280.jpg',
-        ];
-    }
-
     getLabels() {
         return {
           'sign': ['trafficsign'],