You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dy...@apache.org on 2022/09/08 10:06:39 UTC
[incubator-datalab] branch DATALAB-2995 updated: fix
This is an automated email from the ASF dual-hosted git repository.
dyankiv pushed a commit to branch DATALAB-2995
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2995 by this push:
new c974e2219 fix
c974e2219 is described below
commit c974e22197c040e67d1ca28344d875f2e5d34688
Author: Denys Yankiv <de...@gmail.com>
AuthorDate: Thu Sep 8 13:06:16 2022 +0300
fix
---
.../main/java/com/epam/datalab/dto/SharedWith.java | 19 +++++++++++++++++++
.../service/impl/ImageExploratoryServiceImpl.java | 1 -
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/services/datalab-model/src/main/java/com/epam/datalab/dto/SharedWith.java b/services/datalab-model/src/main/java/com/epam/datalab/dto/SharedWith.java
index c9d4da861..21daa22e1 100644
--- a/services/datalab-model/src/main/java/com/epam/datalab/dto/SharedWith.java
+++ b/services/datalab-model/src/main/java/com/epam/datalab/dto/SharedWith.java
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
package com.epam.datalab.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
diff --git a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java
index 33cd704b4..9c8466a01 100644
--- a/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java
+++ b/services/self-service/src/main/java/com/epam/datalab/backendapi/service/impl/ImageExploratoryServiceImpl.java
@@ -278,7 +278,6 @@ public class ImageExploratoryServiceImpl implements ImageExploratoryService {
@Override
public void shareImage(UserInfo user, String imageName, String projectName, String endpoint, Set<SharedWithDTO> sharedWithDTOS) {
- Set<String> projectGroups = projectService.get(projectName).getGroups();
Optional<ImageInfoRecord> image = imageExploratoryDao.getImage(user.getName(),imageName,projectName,endpoint);
image.ifPresent(img -> {
log.info("image {}", img);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org