Skip to content

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

Fix the project to really load the default dba project as the fixture

天舟2e995080e479
diff --git a/frontend/src/miragejs/factories/project.js b/frontend/src/miragejs/factories/project.js
index 7c55d52519..46b39ab87b 100644
--- a/frontend/src/miragejs/factories/project.js
+++ b/frontend/src/miragejs/factories/project.js
@@ -19,7 +19,7 @@ export default {
return Date.now() - i * 3600 * 1000;
},
name(i) {
- return "project " + (i + 1);
+ return "project " + (i + 3);
},
}),
};
diff --git a/frontend/src/miragejs/fixtures/index.js b/frontend/src/miragejs/fixtures/index.js
index 976639f3d8..e8ed8f7317 100644
--- a/frontend/src/miragejs/fixtures/index.js
+++ b/frontend/src/miragejs/fixtures/index.js
@@ -5,11 +5,11 @@
import workspaces from "./workspaceList.json";
import roleMappings from "./roleMappingList.json";
import users from "./userList.json";
-import projectList from "./projectList.json";
+import projects from "./projectList.json";
export default {
workspaces,
roleMappings,
users,
- projectList,
+ projects,
};
diff --git a/frontend/src/miragejs/fixtures/projectList.json b/frontend/src/miragejs/fixtures/projectList.json
index cc05449210..e45cfe9461 100644
--- a/frontend/src/miragejs/fixtures/projectList.json
+++ b/frontend/src/miragejs/fixtures/projectList.json
@@ -10,9 +10,9 @@
},
{
"id": "2",
- "workspaceId": "2",
- "creatorId": "1",
- "updaterId": "1",
+ "workspaceId": "101",
+ "creatorId": "4",
+ "updaterId": "4",
"createdTs": 1614528000000,
"lastUpdatedTs": 1614571200000,
"name": "DBA Project2"