Skip to content

Commit 97ef8e9

Browse files
committed
chore: reintroduce migration
1 parent 9aa9172 commit 97ef8e9

File tree

4 files changed

+33
-12
lines changed

4 files changed

+33
-12
lines changed

controlplane/migrations/meta/0129_snapshot.json renamed to controlplane/migrations/meta/0131_snapshot.json

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"id": "1bb12880-ed57-4cad-b9aa-dcd0a3d08f67",
3-
"prevId": "e8d72d6a-3744-48e9-88a2-d8617e9a867c",
2+
"id": "aa949867-16a4-42b3-abac-089abf6a6e4d",
3+
"prevId": "d090b695-c13a-4b3d-ad8f-0516d5689336",
44
"version": "7",
55
"dialect": "postgresql",
66
"tables": {
@@ -2798,6 +2798,27 @@
27982798
}
27992799
},
28002800
"indexes": {
2801+
"lsc_schema_check_id_linked_schema_check_id_unique": {
2802+
"name": "lsc_schema_check_id_linked_schema_check_id_unique",
2803+
"columns": [
2804+
{
2805+
"expression": "schema_check_id",
2806+
"isExpression": false,
2807+
"asc": true,
2808+
"nulls": "last"
2809+
},
2810+
{
2811+
"expression": "linked_schema_check_id",
2812+
"isExpression": false,
2813+
"asc": true,
2814+
"nulls": "last"
2815+
}
2816+
],
2817+
"isUnique": true,
2818+
"concurrently": false,
2819+
"method": "btree",
2820+
"with": {}
2821+
},
28012822
"lsc_schema_check_id_idx": {
28022823
"name": "lsc_schema_check_id_idx",
28032824
"columns": [
@@ -2858,15 +2879,7 @@
28582879
}
28592880
},
28602881
"compositePrimaryKeys": {},
2861-
"uniqueConstraints": {
2862-
"linked_schema_checks_schema_check_id_unique": {
2863-
"name": "linked_schema_checks_schema_check_id_unique",
2864-
"nullsNotDistinct": false,
2865-
"columns": [
2866-
"schema_check_id"
2867-
]
2868-
}
2869-
},
2882+
"uniqueConstraints": {},
28702883
"checkConstraints": {}
28712884
},
28722885
"public.linked_subgraphs": {
@@ -8425,6 +8438,7 @@
84258438
"graph-viewer",
84268439
"subgraph-admin",
84278440
"subgraph-publisher",
8441+
"subgraph-checker",
84288442
"subgraph-viewer"
84298443
]
84308444
},

controlplane/migrations/meta/_journal.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,13 @@
918918
"when": 1756988174576,
919919
"tag": "0130_skinny_solo",
920920
"breakpoints": true
921+
},
922+
{
923+
"idx": 131,
924+
"version": "7",
925+
"when": 1757542818295,
926+
"tag": "0131_known_stepford_cuckoos",
927+
"breakpoints": true
921928
}
922929
]
923930
}

controlplane/src/core/bufservices/subgraph/checkSubgraphSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function checkSubgraphSchema(
129129
}
130130
}
131131

132-
if (subgraph && !authContext.rbac.hasSubGraphWriteAccess(subgraph)) {
132+
if (subgraph && !authContext.rbac.hasSubGraphCheckAccess(subgraph)) {
133133
throw new UnauthorizedError();
134134
} else if (!subgraph) {
135135
if (!authContext.rbac.canCreateSubGraph(namespace)) {

0 commit comments

Comments
 (0)