-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[code] workspace sharing support #4580
Conversation
05d2837
to
28de9a7
Compare
Codecov Report
@@ Coverage Diff @@
## main #4580 +/- ##
===========================================
- Coverage 45.48% 33.20% -12.28%
===========================================
Files 3 42 +39
Lines 332 9737 +9405
===========================================
+ Hits 151 3233 +3082
- Misses 163 6208 +6045
- Partials 18 296 +278
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/werft run 👍 started the job as gitpod-build-ak-code-share.2 |
/werft run 👍 started the job as gitpod-build-ak-code-share.3 |
/werft run 👍 started the job as gitpod-build-ak-code-share.4 |
/werft run with clean-slate-deployment 👍 started the job as gitpod-build-ak-code-share.6 |
/werft run with-clean-slate-deployment 👍 started the job as gitpod-build-ak-code-share.7 |
/werft run 👍 started the job as gitpod-build-ak-code-share.8 |
/werft run 👍 started the job as gitpod-build-ak-code-share.9 |
/werft run with-clean-slate-deployment 👍 started the job as gitpod-build-ak-code-share.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't work 😔
- The "Joined" indicator didn't appear
- In both workspaces, I could click on "Share" to unshare
- Unsharing had no effect on the current connection (new connections were disabled)
I tried with two different sharing users
PS: The preview envs are currently pretty broken. I suggest to always deploy |
@JanKoehnlein thanks for testing! The issue was that even for invited user I would use an owner user in the vscode extension. I changed now that a user is fetched from the browser session to detect whether current window own the workspace or not. I also limited commands which invited user can access. Please see test description above. |
76ea5a7
to
c41d849
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now.
I suppose "unsharing" a workspace doesn't terminate an existing connection, or should it?
It is a known bug for long time. We don't have any channel to communicate that a workspace is unshared. Although if you refresh the page then you won't be able to access anymore. |
This is exciting news! Could you add an item to the |
What it does
Change in Gitpod Code: gitpod-io/openvscode-server@11d7256
How to test
Share
status bar indicator, click on it to start sharing. You should also be able to access owner actions like stop workspace, extend timeout and so on from the command palette and menus.Shared by {owner}
, clicking on it should not do anything. You should not be able to access owner actions.Shared
now, clicking on it should stop sharing.Share
andStop Sharing
commands under the main menu and the remote menu (click on remote indicator in the status bar).