Add organizations.handle URL handle column#696
Open
RhysSullivan wants to merge 1 commit intomainfrom
Open
Conversation
Mirrors the WorkOS-id-keyed organizations row with a URL-addressable handle, slugified from name with collision suffixes. Backfills existing rows in a single CTE migration, then enforces NOT NULL + UNIQUE. slugifyHandle/withHandleSuffix live in services/ids.ts and are reused by the test seed worker; pickFreeOrgHandle picks the first unused suffix from the existing row set; getOrganizationByHandle is the URL-handle reverse lookup the protected middleware will call.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | 0a99d17 | Commit Preview URL Branch Preview URL |
May 07 2026, 05:16 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | 0a99d17 | May 07 2026, 05:17 AM |
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/storage-core
@executor-js/codemode-core
@executor-js/runtime-quickjs
@executor-js/plugin-file-secrets
@executor-js/plugin-google-discovery
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
executor
commit: |
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors the WorkOS-id-keyed
organizationsrow with a URL-addressable handle, slugified from the org name with collision suffixes. Backfills existing rows in a single CTE migration, then enforcesNOT NULL UNIQUE.slugifyHandle/withHandleSuffixlive inapps/cloud/src/services/ids.tsand are reused by the test seed worker.pickFreeOrgHandlepicks the first unused suffix from the existing row set; relies on the unique constraint to catch concurrent collisions.getOrganizationByHandleis the URL-handle reverse lookup the protected middleware will call once the URL becomes the source of truth for active org.Prereq for the
/:orgweb/API routing change in the follow-up PR.Test plan
bun run format:checkbun run lintbun run typecheckacme,acme-2)