Skip to content

feat: newly created teams are public by default#10961

Merged
nickoferrall merged 24 commits intomasterfrom
feat/10924/public-by-default
Mar 18, 2025
Merged

feat: newly created teams are public by default#10961
nickoferrall merged 24 commits intomasterfrom
feat/10924/public-by-default

Conversation

@nickoferrall
Copy link
Contributor

@nickoferrall nickoferrall commented Mar 6, 2025

Fix #10924

  • Newly created teams have isPublic set to true
  • Teams that currently exist and belong to an org with the publicTeams feature flag have isPublic set to true, otherwise it's false

@nickoferrall nickoferrall changed the title feat: public by default feat: newly created teams are public by default Mar 6, 2025
@github-actions github-actions bot added the size/s label Mar 6, 2025
@nickoferrall nickoferrall requested a review from Dschoordsch March 6, 2025 17:05
@nickoferrall nickoferrall linked an issue Mar 10, 2025 that may be closed by this pull request
2 tasks
Copy link
Contributor

@Dschoordsch Dschoordsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not test.

team {
id
name
isPaid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't include isPaid here, when we join a public team, the emoji suggests it's unpaid until we refresh the page:
Screenshot 2025-03-10 at 16 49 17

createdBy: userId,
tier,
trialStartDate,
isPublic: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 This is called in bootstrapNewUser, do we want all onboarding teams to be public?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, all newly created teams should be public by default

Copy link
Contributor

@Dschoordsch Dschoordsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration needs to be renamed

@nickoferrall
Copy link
Contributor Author

Migration name updated. All of these Public Teams PRs have now been approved, so I'll merge them to master. Thanks for the reviews

Base automatically changed from feat/10923/join-without-invite to master March 18, 2025 12:26
@github-actions github-actions bot added size/m and removed size/s labels Mar 18, 2025
@nickoferrall nickoferrall merged commit d41ed25 into master Mar 18, 2025
7 checks passed
@nickoferrall nickoferrall deleted the feat/10924/public-by-default branch March 18, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Public teams: grandfather in existing teams

2 participants