mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: join owner, template, and org in new workspace view (#15116)
Joins in fields like `username`, `avatar_url`, `organization_name`, `template_name` to `workspaces` via a **view**. The view must be maintained moving forward, but this prevents needing to add RBAC permissions to fetch related workspace fields.
This commit is contained in:
@ -1936,7 +1936,7 @@ func TestUserAutofillParameters(t *testing.T) {
|
||||
},
|
||||
).Do()
|
||||
|
||||
dbfake.WorkspaceBuild(t, db, database.Workspace{
|
||||
dbfake.WorkspaceBuild(t, db, database.WorkspaceTable{
|
||||
OwnerID: u2.ID,
|
||||
TemplateID: version.Template.ID,
|
||||
OrganizationID: u1.OrganizationID,
|
||||
@ -1969,7 +1969,7 @@ func TestUserAutofillParameters(t *testing.T) {
|
||||
require.Equal(t, "foo", params[0].Value)
|
||||
|
||||
// Verify that latest parameter value is returned.
|
||||
dbfake.WorkspaceBuild(t, db, database.Workspace{
|
||||
dbfake.WorkspaceBuild(t, db, database.WorkspaceTable{
|
||||
OrganizationID: u1.OrganizationID,
|
||||
OwnerID: u2.ID,
|
||||
TemplateID: version.Template.ID,
|
||||
|
Reference in New Issue
Block a user