You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/11/14 13:24:13 UTC
[incubator-dlab] 01/02: [DLAB-1214]: added request parameters to
get project list per user
This is an automated email from the ASF dual-hosted git repository.
ankovalyshyn pushed a commit to branch DLAB-1214
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 9286ffdc05c291e7cb590da11f6bc9250c69571b
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Thu Nov 14 15:23:25 2019 +0200
[DLAB-1214]: added request parameters to get project list per user
---
.../src/app/core/services/applicationServiceFacade.service.ts | 6 +++---
.../main/resources/webapp/src/app/core/services/project.service.ts | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
index 67c7010..cffcf03 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
@@ -74,7 +74,7 @@ export class ApplicationServiceFacade {
private static readonly DOWNLOAD_REPORT = 'download_report';
private static readonly SETTINGS = 'settings';
private static readonly PROJECT = 'project';
- private static readonly USER_PROJECT = 'project/me';
+ private static readonly USER_PROJECT = 'user_project';
private static readonly ENDPOINT = 'endpoint';
private requestRegistry: Dictionary<string>;
@@ -545,9 +545,9 @@ export class ApplicationServiceFacade {
null);
}
- public buildGetUserProjectsList(): Observable<any> {
+ public buildGetUserProjectsList(params?): Observable<any> {
return this.buildRequest(HTTPMethod.GET,
- this.requestRegistry.Item(ApplicationServiceFacade.USER_PROJECT),
+ this.requestRegistry.Item(ApplicationServiceFacade.USER_PROJECT) + params,
null);
}
diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts
index d623f52..0d03ec3 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts
@@ -52,9 +52,10 @@ export class ProjectService {
catchError(ErrorUtils.handleServiceError));
}
- public getUserProjectsList(): Observable<{}> {
+ public getUserProjectsList(isActive?): Observable<{}> {
+ const params = isActive ? '?active=true' : '';
return this.applicationServiceFacade
- .buildGetUserProjectsList()
+ .buildGetUserProjectsList(params)
.pipe(
map(response => response),
catchError(ErrorUtils.handleServiceError));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org