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

[Feature Request] Setup organization heirarchy #794

Closed
golanglemonade opened this issue Apr 16, 2024 · 1 comment
Closed

[Feature Request] Setup organization heirarchy #794

golanglemonade opened this issue Apr 16, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@golanglemonade
Copy link
Contributor

Example structure:

├── datum_controlled_top_level <-- this would be an org we could configure with things like our posthog infos
│   └── rootorg <--- top level customer org
│       ├── production <-- top level environment per customer org
│       │   ├── assets
│       │   ├── customers
│       │   ├── orders
│       │   ├── relationships
│       │   │   ├── internal_users
│       │   │   ├── marketing_subscribers
│       │   │   ├── marketplaces
│       │   │   ├── partners
│       │   │   └── vendors
│       │   └── sales
│       └── test <-- org identical to production just named differently to give customer 2 sandboxes to configure
└── systemorg <-- database seeded org to avoid circular deps / inception bullshit

All the child organizations will either be created via a hook, or possibly a single graph mutation such as:

{
  "input": {
    "name": "meow",
    "createChildOrganizations": [
      {
        "name": "production",
        "createChildOrganizations" : [
          {"name": "assests"},
          {"name": "customers"},
          {"name": "orders"},
          {"name": "sales"},
          {"name": "relationships",
          "createChildOrganizations": [
            {"name": "internal_users"},
            {"name": "marketing_subscribers"},
            {"name": "marketplaces"},
            {"partners": "vendors"},
          ]
          },
          
        ],
      },
    ],
  },
}
@golanglemonade
Copy link
Contributor Author

Resolved with this PR in datum-cloud: https://github.com/datumforge/datum-cloud/pull/12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants