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

dyankiv pushed a commit to branch DATALAB-2785
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 36be6ec7059d020f299dbd7042903fba802f10a3
Author: Denys Yankiv <[email protected]>
AuthorDate: Wed May 18 13:34:30 2022 +0300

    small fix
---
 .../resources/dto/ExploratoryImageCreateFormAdminDTO.java           | 3 ++-
 .../datalab/backendapi/service/impl/EnvironmentServiceImpl.java     | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/dto/ExploratoryImageCreateFormAdminDTO.java
 
b/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/dto/ExploratoryImageCreateFormAdminDTO.java
index 69498d362..9c8b545b7 100644
--- 
a/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/dto/ExploratoryImageCreateFormAdminDTO.java
+++ 
b/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/dto/ExploratoryImageCreateFormAdminDTO.java
@@ -11,7 +11,8 @@ public class ExploratoryImageCreateFormAdminDTO {
     @NotBlank
     private String user;
     @NotBlank
-    private final String name;
+    @JsonProperty("imageName")
+    private String name;
     @NotBlank
     @JsonProperty("exploratory_name")
     private String notebookName;
diff --git 
a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/EnvironmentServiceImpl.java
 
b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/EnvironmentServiceImpl.java
index 7c9ebfc29..99aa23bac 100644
--- 
a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/EnvironmentServiceImpl.java
+++ 
b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/EnvironmentServiceImpl.java
@@ -111,14 +111,14 @@ public class EnvironmentServiceImpl implements 
EnvironmentService {
 
     @ProjectAdmin
     @Override
-    public void createImage(@User UserInfo userInfo, String user, String 
project, String exploratoryName, String imageName, String description) {
-        
imageExploratoryService.createImage(securityService.getUserInfoOffline(user), 
project,exploratoryName, imageName, description, null);
+    public void createImage(@User UserInfo userInfo, String user, @Project 
String project, String exploratoryName, String imageName, String description) {
+        
imageExploratoryService.createImage(securityService.getUserInfoOffline(user), 
project, exploratoryName, imageName, description, null);
     }
 
     @ProjectAdmin
     @Override
     public void startExploratory(@User UserInfo userInfo, String user, 
@Project String project, String exploratoryName) {
-        
exploratoryService.start(securityService.getServiceAccountInfo(user),exploratoryName,project,null);
+        exploratoryService.start(securityService.getServiceAccountInfo(user), 
exploratoryName, project, null);
     }
 
     @Override


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to