Skip to content

Treat Organization Handles as their own type of handles - #6738

Open
brian-penguin wants to merge 2 commits into
masterfrom
reserve-organization-handles
Open

Treat Organization Handles as their own type of handles#6738
brian-penguin wants to merge 2 commits into
masterfrom
reserve-organization-handles

Conversation

@brian-penguin

@brian-penguin brian-penguin commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Why this change is being made:

  • As we work towards a public rollout we want to reduce the surface area for problems in the Organization handle namespaces.

What were the changes made to support this:

  • allow for a handle starting with a number (in this case 37signals)
  • dont allow for organization handles which are taken by User handles (I'm not 100% on this one as of currently since I know the use of service user accounts is something that happens)
  • Add a BUNCH of reserved words to the organization handle reserved list. This includes all our routes path segments, a bunch of words that look like they could belong to the app or rubygems namespaces, words that are tricky and annoying to sort out like "nil", and words that imply "trust" like "admin" or "safety"
  • Update the seeds to use gem-org as the local test org
  • Update the lib/patterns to include ORGANIZATION_HANDLE_PATTERN which is the same as the base handle pattern but allows for leading integers

@brian-penguin brian-penguin self-assigned this Aug 3, 2026
@brian-penguin
brian-penguin force-pushed the reserve-organization-handles branch from ddee6e2 to 7ff226d Compare August 3, 2026 21:45
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.81%. Comparing base (d809e9c) to head (d7ae499).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6738      +/-   ##
==========================================
+ Coverage   97.76%   97.81%   +0.04%     
==========================================
  Files         530      533       +3     
  Lines       11422    11770     +348     
==========================================
+ Hits        11167    11513     +346     
- Misses        255      257       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread app/models/organization/handle.rb Outdated
Why this change is being made:
- As we work towards a public rollout we want to reduce the surface
  area for problems in the Organization handle namespaces.

What were the changes made to support this:
- allow for a handle starting with a number (in this case 37signals)
- dont allow for organization handles which are taken by User handles
  (I'm not 100% on this one as of currently since I know the use of
  service user accounts is something that happens)
- Add a BUNCH of reserved words to the organization handle reserved
  list. This includes all our routes path segments, a list of prominent
  ruby/rails companies (minus the ones who have already added
  organizations), a bunch of words that look like they could belong to
  the app or rubygems namespaces, words that are tricky and annoying to
  sort out like "nil", and words that imply "trust" like "admin" or
  "safety"
- Update the seeds to use gem-org as the local test org
- Update the lib/patterns to include ORGANIZATION_HANDLE_PATTERN which
  is the same as the base handle pattern but allows for integers leading
Why this change is being made:
- I think this wants to exist in the database instead. Since there's
  still a feature toggle gate on this we have plenty of ability to
  change this before GA

What were the changes made to support this:
- remove the section
@brian-penguin
brian-penguin force-pushed the reserve-organization-handles branch from c7237ce to d7ae499 Compare August 12, 2026 14:11
@brian-penguin
brian-penguin marked this pull request as ready for review August 12, 2026 14:12
@brian-penguin
brian-penguin force-pushed the reserve-organization-handles branch from d07bfdf to d7ae499 Compare August 17, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants