mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-12 08:02:44 +00:00
docs: say the form adds the c_ prefix unless an admin turns it off
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8680ea1413
commit
ffe2af2aac
@@ -8150,8 +8150,8 @@ describe('global prompt identity', () => {
|
||||
})
|
||||
|
||||
describe('create_resource_type', () => {
|
||||
// The Add resource type form prefixes custom types with c_ for everyone but admins, so a hub
|
||||
// type synced later under the same name cannot clash with one the chat created.
|
||||
// The Add resource type form prefixes custom types with c_ unless an admin turns it off, so a
|
||||
// hub type synced later under the same name cannot clash with one the chat created.
|
||||
it.each([
|
||||
['acme_billing', 'c_acme_billing'],
|
||||
['c_acme_billing', 'c_acme_billing']
|
||||
|
||||
@@ -4367,8 +4367,8 @@ export const globalTools: SessionTool<{}>[] = [
|
||||
confirmationMessage: 'Create resource type',
|
||||
fn: async ({ args, workspace, toolId, toolCallbacks }) => {
|
||||
const parsed = createResourceTypeSchema.parse(args)
|
||||
// The prefix the Add resource type form adds for everyone but admins: a hub type of
|
||||
// the same name, synced later, would otherwise clash with this one.
|
||||
// The prefix the Add resource type form adds unless an admin turns it off: a hub type
|
||||
// of the same name, synced later, would otherwise clash with this one.
|
||||
const name = parsed.name.startsWith('c_') ? parsed.name : `c_${parsed.name}`
|
||||
await ResourceService.createResourceType({
|
||||
workspace,
|
||||
|
||||
Reference in New Issue
Block a user