Add createdBy column in deployments table (#51)

* Add and use createdBy field in deployment entity

* Use updated get deployments client method in UI

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
2024-02-01 11:37:57 +05:30
committed by Ashwin Phatak
co-authored by neeraj
parent d97794f1bf
commit 8bbe2583cb
10 changed files with 50 additions and 18 deletions
+10
View File
@@ -2,6 +2,7 @@
{
"projectIndex": 0,
"domainIndex":0,
"createdByIndex": 0,
"title": "nextjs-boilerplate-1",
"status": "Building",
"environment": "Production",
@@ -12,6 +13,7 @@
{
"projectIndex": 0,
"domainIndex":1,
"createdByIndex": 0,
"title": "nextjs-boilerplate-2",
"status": "Ready",
"environment": "Preview",
@@ -22,6 +24,7 @@
{
"projectIndex": 0,
"domainIndex":2,
"createdByIndex": 0,
"title": "nextjs-boilerplate-3",
"status": "Error",
"environment": "Development",
@@ -32,6 +35,7 @@
{
"projectIndex": 0,
"domainIndex": null,
"createdByIndex": 0,
"title": "nextjs-boilerplate-4",
"status": "Ready",
"environment": "Production",
@@ -42,6 +46,7 @@
{
"projectIndex": 1,
"domainIndex":3,
"createdByIndex": 1,
"title": "nextjs-boilerplate-1",
"status": "Building",
"environment": "Production",
@@ -52,6 +57,7 @@
{
"projectIndex": 1,
"domainIndex":4,
"createdByIndex": 1,
"title": "nextjs-boilerplate-2",
"status": "Ready",
"environment": "Preview",
@@ -62,6 +68,7 @@
{
"projectIndex": 1,
"domainIndex":5,
"createdByIndex": 1,
"title": "nextjs-boilerplate-3",
"status": "Error",
"environment": "Development",
@@ -72,6 +79,7 @@
{
"projectIndex": 2,
"domainIndex":6,
"createdByIndex": 2,
"title": "nextjs-boilerplate-1",
"status": "Building",
"environment": "Production",
@@ -82,6 +90,7 @@
{
"projectIndex": 2,
"domainIndex":7,
"createdByIndex": 2,
"title": "nextjs-boilerplate-2",
"status": "Ready",
"environment": "Preview",
@@ -92,6 +101,7 @@
{
"projectIndex": 2,
"domainIndex":8,
"createdByIndex": 2,
"title": "nextjs-boilerplate-3",
"status": "Error",
"environment": "Development",
+2 -1
View File
@@ -86,7 +86,8 @@ const generateTestData = async (dataSource: DataSource) => {
const deploymentRelations = {
project: savedProjects,
domain: savedDomains
domain: savedDomains,
createdBy: savedUsers
};
await loadAndSaveData(Deployment, dataSource, path.resolve(__dirname, DEPLOYMENT_DATA_PATH), deploymentRelations);