Stéphan Taljaard
05/27/2021, 1:46 PMprefect backend server
2. prefect server start
If I don't want "default" displayed on the UI (i.e. I just need one tenant, but don't want it named "default"), I need to add a new tenant. This is done through
3. prefect server create-tenant --name "Some Other Name"
This now creates a new, additional, tenant. I only need one...
Ideally, the steps would be, from above, 1 then 3 then 2. However, that order doesn't work because the server (database) has to be up for cmd 3 to work.
Would it be useful to have the default tenant name as optional argument to prefect server start
?
Or am I missing something w.r.t. the creation of my tenant?Zanie
--skip-create-tenant
flag to prefect server start
allowing you to create your own tenant after words.Stéphan Taljaard
05/27/2021, 2:51 PM--skip-create-tenant
change to the repo.nicholas
mutation UpdateTenant($name: String!, $slug: String!) {
update_tenant_name(input: { name: $name }) {
id
}
update_tenant_slug(input: { slug: $slug }) {
id
}
}
or by going to the "Account" page under the Team menu and setting those from the Profile tileStéphan Taljaard
05/28/2021, 7:49 AMmutation UpdateTenant($tenant_id: String!, $name: String!, $slug: String!) {
update_tenant_name(input: { tenant_id: $tenant_id, name: $name }) {
id
}
update_tenant_slug(input: { tenant_id: $tenant_id, slug: $slug }) {
id
}
}
I'm just struggling now to pass the id in variable as type UUID.
Can you point me in the right direction on how to cast as uuid?
"Variable \"$tenant_id\" of type \"String!\" used in position expecting type \"UUID!\".",
nicholas
mutation UpdateTenant($tenant_id: UUID!, $name: String!, $slug: String!) {
update_tenant_name(input: { tenant_id: $tenant_id, name: $name }) {
id
}
update_tenant_slug(input: { tenant_id: $tenant_id, slug: $slug }) {
id
}
}