Skip to content

chore: remove unused workspace_owner_count field #5958

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

Merged
merged 3 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix references to workspace_owner_count
  • Loading branch information
kylecarbs committed Feb 2, 2023
commit 290fe647ec1903d4ad0f6963d7b990652117a679
6 changes: 0 additions & 6 deletions coderd/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,6 @@ func (api *API) templatesByOrganization(rw http.ResponseWriter, r *http.Request)
return
}

templateIDs := make([]uuid.UUID, 0, len(templates))

for _, template := range templates {
templateIDs = append(templateIDs, template.ID)
}

createdByNameMap, err := getCreatedByNamesByTemplateIDs(ctx, api.Database, templates)
if err != nil {
httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{
Expand Down
1 change: 0 additions & 1 deletion site/src/testHelpers/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ export const MockTemplate: TypesGen.Template = {
display_name: "Test Template",
provisioner: MockProvisioner.provisioners[0],
active_version_id: MockTemplateVersion.id,
workspace_owner_count: 2,
active_user_count: 1,
build_time_stats: {
start: {
Expand Down