Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Grant some seed data source to the dev demo user

天舟fb2f9f6fa8dc
diff --git a/frontend/src/miragejs/factories/dataSource.js b/frontend/src/miragejs/factories/dataSource.js
index 685aecf198..eff9f4c551 100644
--- a/frontend/src/miragejs/factories/dataSource.js
+++ b/frontend/src/miragejs/factories/dataSource.js
@@ -33,12 +33,22 @@ export default {
taskId: "2",
});
- server.create("dataSourceMember", {
- workspaceId: dataSource.workspaceId,
- dataSource,
- principalId: "2",
- taskId: "3",
- });
+ if (dataSource.id % 2 == 0) {
+ server.create("dataSourceMember", {
+ workspaceId: dataSource.workspaceId,
+ dataSource,
+ principalId: "2",
+ taskId: "3",
+ });
+ }
+
+ if (dataSource.id % 4 == 0) {
+ server.create("dataSourceMember", {
+ workspaceId: dataSource.workspaceId,
+ dataSource,
+ principalId: "3",
+ });
+ }
},
}),
};