-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally exclude archived files from GUI S3 storage listing (#3076)
* Issue #3029: Optionally exclude archived files from GUI S3 storage listing * Issue #3029: Optionally exclude archived files from GUI S3 storage listing - role model * Issue #3029: Optionally exclude archived files from GUI S3 storage listing - fix for deleted versions and paging * Issue #3029: Optionally exclude archived files from GUI S3 storage listing - fix for default roles test * Issue #3029: Optionally exclude archived files from GUI S3 storage listing - cleanups * Issue #3029: Optionally exclude archived files from GUI S3 storage listing - cleanups * Issue #3029: Optionally exclude archived files from GUI S3 storage listing - add owner to permissions * Issue #3029 move sql migration to current date --------- Co-authored-by: mzueva <mariia_zueva@epam.com>
- Loading branch information
1 parent
580f96f
commit 9655025
Showing
22 changed files
with
265 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../pipeline/manager/datastorage/lifecycle/DataStorageLifecycleRestoredListingContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2023 EPAM Systems, Inc. (https://www.epam.com/) | ||
* | ||
* Licensed 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.pipeline.manager.datastorage.lifecycle; | ||
|
||
import com.epam.pipeline.manager.datastorage.providers.ProviderUtils; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@Builder | ||
public class DataStorageLifecycleRestoredListingContainer { | ||
|
||
private List<String> restoredFiles; | ||
private boolean folderRestored; | ||
|
||
public boolean containsPath(final String path) { | ||
return folderRestored || restoredFiles.contains(ProviderUtils.withLeadingDelimiter(path)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.