-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
84 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ data: | |
print('seed started...') | ||
// seed ids | ||
const workspaceId = UUID() | ||
const userId = UUID() | ||
const organizationId = UUID() | ||
|
@@ -31,22 +30,6 @@ data: | |
return UUID().toString().split('"')[1]; | ||
} | ||
// seed workspace | ||
print('clean and seed collection: Workspaces') | ||
db.Workspaces.deleteMany({}) | ||
db.Workspaces.insertOne( | ||
{ | ||
_id: workspaceId, | ||
name: "Default Workspace", | ||
key: "default-workspace", | ||
sso: null, | ||
license: null, | ||
createdAt: new Date(), | ||
updatedAt: new Date() | ||
} | ||
) | ||
print('collection seeded: Workspaces') | ||
// seed user | ||
print('clean and seed collection: Users') | ||
db.Users.deleteMany({}) | ||
|
@@ -56,8 +39,6 @@ data: | |
email: "[email protected]", | ||
password: "AQAAAAEAACcQAAAAELDHEjCrDQrmnAXU5C//mOLvUBJ7lnVFEMMFxNMDIIrF7xK8JDQKUifU3HH4gexNAQ==", | ||
name: "tester", | ||
origin: "Local", | ||
workspaceId: workspaceId, | ||
createAt: new Date(), | ||
updatedAt: new Date() | ||
} | ||
|
@@ -70,7 +51,6 @@ data: | |
db.Organizations.insertOne( | ||
{ | ||
_id: organizationId, | ||
workspaceId: workspaceId, | ||
name: "playground", | ||
initialized: false, | ||
createdAt: new Date(), | ||
|
@@ -128,10 +108,10 @@ data: | |
statements: [ | ||
{ | ||
_id: getUUIDString(), | ||
resourceType: "organization", | ||
resourceType: "account", | ||
effect: "allow", | ||
actions: ["UpdateOrgName"], | ||
resources: ["organization/*"] | ||
resources: ["account/*"] | ||
}, | ||
{ | ||
_id: getUUIDString(), | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters