mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(config): transact per-group configuration
Whole-table writes and cached snapshots can overwrite other groups or resurrect removed configuration. Use per-group guarded writes, one-time identity migration and explicit unreadable-row failures.
This commit is contained in:
1 parent
ceb906d479
commit
c853f2910f
7 files changed
+1764
-587
No files matched your search
@@ -61,6 +61,7 @@ export const routeSchema = v.object({
|
||||
export const groupMemberSchema = v.object({
|
||||
login: v.string(),
|
||||
role: v.picklist(["owner", "admin", "viewer"]),
|
||||
userId: v.optional(v.string()),
|
||||
});
|
||||
|
||||
export const forgeSourceSchema = v.object({
|
||||
@@ -77,6 +78,11 @@ export const groupSchema = v.object({
|
||||
owners: v.optional(v.array(v.string())),
|
||||
providers: v.optional(v.array(v.picklist(["github", "gitea", "gitlab", "custom"]))),
|
||||
installationId: v.optional(v.number()),
|
||||
isolated: v.optional(v.boolean()),
|
||||
instance: v.optional(v.string()),
|
||||
instanceBackfilled: v.optional(v.boolean()),
|
||||
legacyId: v.optional(v.string()),
|
||||
webhookSecret: v.optional(v.nullable(v.string())),
|
||||
emoji: v.optional(v.boolean()),
|
||||
forgeSources: v.optional(v.array(forgeSourceSchema)),
|
||||
lang: v.optional(v.string()),
|
||||
|
||||
Reference in new issue
Block a user