Skip to content
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

feat: implement 'is_default' org field #12142

Merged
merged 6 commits into from
Feb 15, 2024
Merged

feat: implement 'is_default' org field #12142

merged 6 commits into from
Feb 15, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Feb 14, 2024

The first organization created is now marked as "default". This is
to allow "single org" behavior as we move to a multi org codebase.

It is intentional that the user cannot change the default org at this
stage. Only 1 default org can exist, and it is always the first org.

Closes: #11961

@Emyrk Emyrk marked this pull request as ready for review February 14, 2024 16:41
Copy link
Member Author

Emyrk commented Feb 14, 2024

coderd/database/queries/organizations.sql Outdated Show resolved Hide resolved
The first organization created is now marked as "default". This is
to allow "single org" behavior as we move to a multi org codebase.

It is intentional that the user cannot change the default org at this
stage. Only 1 default org can exist, and it is always the first org.
@Emyrk Emyrk merged commit 2bf2f88 into main Feb 15, 2024
30 checks passed
@Emyrk Emyrk deleted the stevenmasley/default_org branch February 15, 2024 17:01
@github-actions github-actions bot locked and limited conversation to collaborators Feb 15, 2024
@Emyrk Emyrk restored the stevenmasley/default_org branch February 15, 2024 17:06
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.

Make a "Default" organization for simple 1 org deployments
2 participants