This is an automated email from the ASF dual-hosted git repository.
bhliva pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/develop by this push:
new a0e2b6b DLAB-974 fixed issue with billing report when there is a
project with status FAILED/CREATING
a0e2b6b is described below
commit a0e2b6b08847b6b0b2ef4f542fbef514cc558459
Author: bhliva <[email protected]>
AuthorDate: Tue Aug 6 12:40:13 2019 +0300
DLAB-974 fixed issue with billing report when there is a project with
status FAILED/CREATING
---
.../src/main/java/com/epam/dlab/backendapi/domain/ProjectDTO.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/ProjectDTO.java
b/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/ProjectDTO.java
index 08b02ac..07d018d 100644
---
a/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/ProjectDTO.java
+++
b/services/self-service/src/main/java/com/epam/dlab/backendapi/domain/ProjectDTO.java
@@ -51,6 +51,10 @@ public class ProjectDTO {
return NOT_ACTIVE;
} else if (userInstanceStatus ==
UserInstanceStatus.STARTING) {
return ACTIVATING;
+ } else if (userInstanceStatus ==
UserInstanceStatus.CREATING) {
+ return CREATING;
+ } else if (userInstanceStatus ==
UserInstanceStatus.FAILED) {
+ return FAILED;
}
return Status.valueOf(userInstanceStatus.name());
}
@@ -68,6 +72,10 @@ public class ProjectDTO {
return UserInstanceStatus.TERMINATING;
} else if (status == DELETED) {
return UserInstanceStatus.TERMINATED;
+ } else if (status == CREATING) {
+ return UserInstanceStatus.CREATING;
+ } else if (status == FAILED) {
+ return UserInstanceStatus.FAILED;
}
throw new IllegalArgumentException();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]