Feat: adds linking multiple folders #313
Conversation
danielboloc
left a comment
There was a problem hiding this comment.
Thanks @l-mansouri
I have used an agent to do a review, so I have added the most important comments from the review as suggested changes and added my own.
Co-authored-by: Daniel Boloc <danielboloc@users.noreply.github.com>
Co-authored-by: Daniel Boloc <danielboloc@users.noreply.github.com>
danielboloc
left a comment
There was a problem hiding this comment.
Thanks @l-mansouri
LGTM
|
@l-mansouri , already seen in the second AC from the PR description: |
|
@l-mansouri I've noticed three unexpected behaviours: First unexpectedWith the following command: Being these two folders existing folders, but empty:
It successfully creates the session, but both links are failed with the following (suggesting my project does not exist, but it does):
Second unexpectedWith the following command attempting to link two different job results folders: It does not complain, it let you create the session, but only one results folder is actually linked (even if it seems it linked both): Third unexpectedActually, the command does not check for the existence of your linked folders. It goes straight to the instance creation and then the user will find weird errors for the mounted folders. If the user did an unnoticed typo, it will lead to a ticket that we could avoid by checking. Is it possible to check for the existence of the folders, at least the File Explorer ones?
|
|
@dapineyro I have addressed all your comments For point 1, the issue is not that they were empty but that they were virtual folders that can't be linked
For point 2 and 3 there are a couple of issues stacked: multiple folders with the same name that can't be linked and the fact that the mounting only happen after the session is created so there are natively no checks on it up until the session is started. I have added a check of existence for file explorer paths and a duplicated name check
|









Overview
This PR implements the possibility to link multiple folders in one go to running interactive sessions. It works both with s3 paths and file explorer folders.
JIRA
https://lifebit.atlassian.net/browse/LP-107740
Changes
Acceptance Criteria
DEV
link multiple folders from file explorer
link multiple folders from file explorer when creating the interactive session
``` cloudos interactive-session create --name test_link --session-type vscode --link Data/results,Data/concat_output --profile internal-DEV ```link multiple s3 path
link multiple folders from s3 paths when creating the interactive session