Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

SharedDirectoryInfoResponse#996

Merged
ibeckermayer merged 47 commits intomasterfrom
isaiah/sd-info-response
Jul 27, 2022
Merged

SharedDirectoryInfoResponse#996
ibeckermayer merged 47 commits intomasterfrom
isaiah/sd-info-response

Conversation

@ibeckermayer
Copy link
Copy Markdown

Besides adding the plumbing for SharedDirectoryInfoResponse, this PR also creates a new class SharedDirectoryManager for managing access into the FileSystemDirectoryHandle that represents the directory being shared. It is written in such a way that it will be easy to extend to share multiple directories at once.

Unfortunately I wasn't able to test it with Jest, see the Slack thread here for details. I did however manually hardcode various paths to confirm that SharedDirectoryManager.walkPath is working as expected.

Requires backport to v9/v10

How to test manually

webapps

  1. Change the value below to true
    enableDirectorySharing: false, // note to reviewers: should be false in any PRs.
  2. run the development server like yarn start-teleport --target=https://ec2-35-171-27-185.compute-1.amazonaws.com/
  3. See https://gravitational.slack.com/archives/C02DQ1C2BMW/p1657807702085829 for a username/password combo

What to expect

Go to the top right ... menu and click Share Directory

image

(X-out of the "uncaught exception" screen if you get it). The directory you select should show up in the File Explorer as a shared drive

Screen Shot 2022-07-19 at 14 13 45

Navigating to the shared drive should give you

image

Isaiah Becker-Mayer added 30 commits July 6, 2022 15:53
Comment thread packages/teleport/package.json Outdated
Comment thread packages/teleport/src/lib/tdp/sharedDirectoryManager.ts
Comment thread packages/teleport/src/lib/tdp/sharedDirectoryManager.ts Outdated
Isaiah Becker-Mayer and others added 2 commits July 27, 2022 18:06
@ibeckermayer ibeckermayer enabled auto-merge (squash) July 27, 2022 22:09
@ibeckermayer ibeckermayer merged commit 96d9578 into master Jul 27, 2022
ibeckermayer pushed a commit that referenced this pull request Aug 23, 2022
ibeckermayer pushed a commit that referenced this pull request Aug 24, 2022
* `SharedDirectoryInfoResponse` (#996)

* `SharedDirectoryListRequest` (#999)

* `SharedDirectoryListResponse` (#1000)

* `SharedDirectoryReadRequest` (#1003)

* `SharedDirectoryReadResponse` (#1005)

* `SharedDirectoryWriteRequest` (#1007)

* `SharedDirectoryWriteResponse` (#1008)

* Tidy up `sharedDirectoryManager` (#1010)

* `SharedDirectoryMoveRequest` (#1045)

* `SharedDirectoryMoveResponse` (#1074)

* `SharedDirectoryCreateRequest` and `SharedDirectoryCreateResponse` (#1090)

* SharedDirectoryDeleteRequest and SharedDirectoryDeleteResponse (#1096)

* Add warning dialog for unsupported browsers for directory sharing (#1110)

* updates yarn.lock
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants