Skip to content

Add organization ownership transfer#4431

Open
OneStoryRoad wants to merge 1 commit into
Dokploy:canaryfrom
OneStoryRoad:codex/transfer-organization-ownership
Open

Add organization ownership transfer#4431
OneStoryRoad wants to merge 1 commit into
Dokploy:canaryfrom
OneStoryRoad:codex/transfer-organization-ownership

Conversation

@OneStoryRoad
Copy link
Copy Markdown

Summary

  • Add a protected organization.transferOwnership mutation for current organization owners.
  • Atomically update organization.ownerId, promote the target member to owner, and demote the previous owner to admin.
  • Add a Users settings action with a confirmation dialog for transferring ownership.

Related bounty

/claim #1413

Checks

  • pnpm exec biome check apps/dokploy/server/api/routers/organization.ts apps/dokploy/components/dashboard/settings/users/show-users.tsx
  • pnpm --filter=dokploy run typecheck
  • pnpm --filter=dokploy exec vitest run --config __test__/vitest.config.ts __test__/permissions/check-permission.test.ts __test__/permissions/resolve-permissions.test.ts __test__/permissions/service-access.test.ts __test__/permissions/enterprise-only-resources.test.ts

Notes

A broader pnpm --filter=dokploy run test -- __test__/permissions invocation unexpectedly ran the full test suite. The permission suites passed, but existing real deployment tests failed because local build tooling/runtime dependencies were unavailable in this environment.

@OneStoryRoad OneStoryRoad requested a review from Siumauricio as a code owner May 20, 2026 00:21
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🙋 Bounty claim size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant