X Tutup
Skip to content

chore: move Shared Workspaces from experiments to beta#22206

Merged
zenithwolf1000 merged 15 commits intomainfrom
sp/sw-beta
Feb 23, 2026
Merged

chore: move Shared Workspaces from experiments to beta#22206
zenithwolf1000 merged 15 commits intomainfrom
sp/sw-beta

Conversation

@zenithwolf1000
Copy link
Contributor

  • Removed the shared-workspaces experiment and cleaned up related middleware
  • Added beta tagging to the UI for shared workspaces

@zenithwolf1000 zenithwolf1000 changed the title Moving Shared Workspaces out of experiments -> beta chore: move Shared Workspaces out of experiments -> beta Feb 20, 2026
@zenithwolf1000 zenithwolf1000 changed the title chore: move Shared Workspaces out of experiments -> beta chore: move Shared Workspaces from experiments to beta Feb 20, 2026
@github-actions
Copy link

github-actions bot commented Feb 20, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@zenithwolf1000 zenithwolf1000 marked this pull request as ready for review February 20, 2026 18:30
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pardon the large number of comments, they're all just small things. seems good overall.

cli/list_test.go Outdated
@@ -108,7 +108,6 @@ func TestList(t *testing.T) {
var (
client, db = coderdtest.NewWithDatabase(t, &coderdtest.Options{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client, db = coderdtest.NewWithDatabase(t, nil)

this can be simplified a bit further. we don't need to pass an empty DeploymentValues, and without that we don't need to pass an empty Options either.

@@ -27,7 +27,6 @@ func TestSharingShare(t *testing.T) {
var (
client, db = coderdtest.NewWithDatabase(t, &coderdtest.Options{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -70,7 +69,6 @@ func TestSharingShare(t *testing.T) {
var (
client, db = coderdtest.NewWithDatabase(t, &coderdtest.Options{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -129,7 +127,6 @@ func TestSharingShare(t *testing.T) {
var (
client, db = coderdtest.NewWithDatabase(t, &coderdtest.Options{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -184,7 +181,6 @@ func TestSharingStatus(t *testing.T) {
var (
client, db = coderdtest.NewWithDatabase(t, &coderdtest.Options{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are a lot of these, you get the point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoot totally thought I cleaned these up, thanks! Will clean em.

@@ -86,7 +85,6 @@ func TestSharingShare(t *testing.T) {
client, db, orgOwner = coderdenttest.NewWithDatabase(t, &coderdenttest.Options{
Options: &coderdtest.Options{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -142,7 +140,6 @@ func TestSharingShare(t *testing.T) {
client, db, orgOwner = coderdenttest.NewWithDatabase(t, &coderdenttest.Options{
Options: &coderdtest.Options{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here and the next three similar things


dv := coderdtest.DeploymentValues(t)
dv.Experiments = []string{string(codersdk.ExperimentWorkspaceSharing)}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change


dv := coderdtest.DeploymentValues(t)
dv.Experiments = []string{string(codersdk.ExperimentWorkspaceSharing)}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment on lines +152 to +155
<span className="flex items-center gap-2">
Workspace Sharing
<FeatureStageBadge contentType="beta" size="sm" />
</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<span className="flex items-center gap-2">
Workspace Sharing
<FeatureStageBadge contentType="beta" size="sm" />
</span>
<div className="flex items-center gap-2">
Workspace Sharing
<FeatureStageBadge contentType="beta" size="sm" />
</div>

using span as a block is frowned upon

Remove empty DeploymentValues callbacks from workspace ACL tests in
coderd/workspaces_test.go. These were left over from the workspace-sharing
experiment removal and should be replaced with nil for cleaner test setup.

Changes:
- TestDeleteWorkspaceACL/WorkspaceOwnerCanDelete
- TestDeleteWorkspaceACL/SharedUsersCannot
- TestWorkspaceReadCanListACL
@coder-tasks
Copy link
Contributor

coder-tasks bot commented Feb 20, 2026

Documentation Check

Updates Needed

  • docs/manifest.json - The shared-workspaces.md entry has "state": ["early access"] but should be "state": ["beta"] to match the PR's intent of promoting this feature from experiment to beta
  • codersdk/deployment.go (source for auto-generated docs/reference/cli/server.md) - The --disable-workspace-sharing flag description still says "requires the 'workspace-sharing' experiment to be enabled" but that experiment no longer exists after this PR; the description should be updated to remove that parenthetical

Automated review via Coder Tasks

Per PR review feedback, remove empty DeploymentValues callbacks and the
Options structs that only contained them. When Options becomes empty,
pass nil instead for cleaner test setup.

Changes:
- cli/sharing_test.go: Simplified 6 test cases
- enterprise/cli/sharing_test.go: Removed empty Options from 6 test cases

This completes the cleanup from removing the workspace-sharing experiment
flag.
Remove outdated experiment messaging from the --disable-workspace-sharing
flag description. The workspace sharing feature is now in beta and no
longer requires an experiment flag to be enabled.

Changed:
- Removed "(requires the 'workspace-sharing' experiment to be enabled)"
  from the flag description
Address remaining review comments from PR #22206:

1. cli/list_test.go: Simplify empty Options to nil
   - Remove empty DeploymentValues callback wrapper

2. OrganizationSettingsPageView.tsx: Change span to div for title
   - Replace inline span with div for block-level flex container
   - Using span as a block element is frowned upon
@zenithwolf1000 zenithwolf1000 merged commit 37a8e61 into main Feb 23, 2026
52 of 54 checks passed
@zenithwolf1000 zenithwolf1000 deleted the sp/sw-beta branch February 23, 2026 16:30
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup