fix(integrations): accept persisted IDs when updating (#6985)
This commit is contained in:
1 parent
e048ae9cd7
commit
121a50cb19
2 files changed
+5
-1
No files matched your search
@@ -52,6 +52,9 @@ used by widgets that open the service.
|
|||||||
Integrations can also be created while adding content to a board. Editing a connection from a widget updates that
|
Integrations can also be created while adding content to a board. Editing a connection from a widget updates that
|
||||||
integration everywhere it is used.
|
integration everywhere it is used.
|
||||||
|
|
||||||
|
Existing integration IDs are preserved when editing, including IDs containing hyphens from externally seeded data.
|
||||||
|
Changing settings requires full access to that integration; IDs do not grant access.
|
||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
|
|
||||||
| Level | Allows |
|
| Level | Allows |
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ export const integrationCreateSchema = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const integrationUpdateSchema = z.object({
|
export const integrationUpdateSchema = z.object({
|
||||||
id: z.string().cuid2(),
|
// Updates address an existing row, including externally seeded IDs.
|
||||||
|
id: z.string().nonempty(),
|
||||||
name: z.string().nonempty().max(127),
|
name: z.string().nonempty().max(127),
|
||||||
url: z.string().url(),
|
url: z.string().url(),
|
||||||
secrets: z.array(
|
secrets: z.array(
|
||||||
|
|||||||
Reference in new issue
Block a user