Skip to content

Commit 5c977c6

Browse files
authored
chore: rename 'first-organization' to 'coder' (coder#14808)
Rename the first-organization original name. Users can change from the original name.
1 parent b23e6a0 commit 5c977c6

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

cli/testdata/coder_list_--output_json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"owner_name": "testuser",
88
"owner_avatar_url": "",
99
"organization_id": "[first org ID]",
10-
"organization_name": "first-organization",
10+
"organization_name": "coder",
1111
"template_id": "[template ID]",
1212
"template_name": "test-template",
1313
"template_display_name": "",

coderd/database/dbmem/dbmem.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func New() database.Store {
9292
// Always start with a default org. Matching migration 198.
9393
defaultOrg, err := q.InsertOrganization(context.Background(), database.InsertOrganizationParams{
9494
ID: uuid.New(),
95-
Name: "first-organization",
96-
DisplayName: "first-organization",
95+
Name: "coder",
96+
DisplayName: "Coder",
9797
Description: "Builtin default organization.",
9898
Icon: "",
9999
CreatedAt: dbtime.Now(),
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Leave the name as 'coder', there is no downside.
2+
-- The old name 'first-organization' is not used anywhere, just the
3+
-- is_default property.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
UPDATE
2+
organizations
3+
SET
4+
name = 'coder',
5+
display_name = 'Coder'
6+
WHERE
7+
-- The old name was too long.
8+
name = 'first-organization'
9+
AND is_default = true
10+
;

enterprise/cli/create_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,6 @@ func TestEnterpriseCreate(t *testing.T) {
202202
err := inv.Run()
203203
require.Error(t, err)
204204
// The error message should indicate the flag to fix the issue.
205-
require.ErrorContains(t, err, fmt.Sprintf("--org=%q", "first-organization"))
205+
require.ErrorContains(t, err, fmt.Sprintf("--org=%q", "coder"))
206206
})
207207
}

0 commit comments

Comments
 (0)