Skip to content

Commit 66b6e4d

Browse files
committed
chore: begin work to workspace sharing
Pausing work based on some feedback
1 parent cb6b5e8 commit 66b6e4d

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE workspaces DROP COLUMN group_acl;
2+
ALTER TABLE workspaces DROP COLUMN user_acl;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Just like the templates table, this is just a jsonb column. It is unfortunate
2+
-- we cannot apply any types to the json schema :(
3+
ALTER TABLE workspaces ADD COLUMN user_acl jsonb NOT NULL default '{}';
4+
ALTER TABLE workspaces ADD COLUMN group_acl jsonb NOT NULL default '{}';

codersdk/deployment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,6 +2218,7 @@ const (
22182218
ExperimentExample Experiment = "example" // This isn't used for anything.
22192219
ExperimentAutoFillParameters Experiment = "auto-fill-parameters" // This should not be taken out of experiments until we have redesigned the feature.
22202220
ExperimentMultiOrganization Experiment = "multi-organization" // Requires organization context for interactions, default org is assumed.
2221+
ExperimentSharingWorkspaces Experiment = "sharing-workspaces" // Sharing workspaces via ACLs, similiar to template sharing.
22212222
)
22222223

22232224
// ExperimentsAll should include all experiments that are safe for

enterprise/coderd/workspaces.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package coderd

0 commit comments

Comments
 (0)