twenty/server
Ruslan fd9467c54d
feat: Add seed people and companies data for demo environment (#2207) (#2307)
* feat: seed companies and people data

* init DataSeedDemoWorkspaceCommand to handle:
- seedCoreSchema()
- seedMetadataSchema()

* feature: Seed workspace with demo data

- delete workspace
- initDemo() with prefillWorkspaceWithDemoObjects()

* added companies-demo.ts with data
* added people-demo.ts with data

* added workspaceId to seedFeatureFlags()

* delete previous CoreSchema before seedCoreSchema

* added workspaceMemberPrefillData

* getDemoWorkspaces() to get DEMO_WORKSPACES from config

* defined DemoSeedUserIds

- created core/demo/ to keep modified seedCoreSchema() there
- DemoSeedUserIds with new set of users and Ids

* generateOpportunities() to seed demo opportunities (limit = 50)

* Code review and fixes

* Fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-02 18:37:45 +01:00
..
.vscode Migrate standard objects (#2439) 2023-11-13 16:08:27 +01:00
@types feat: implement user impersonation feature (#976) 2023-07-31 15:47:29 -07:00
patches Add metadata query resolvers (#1929) 2023-10-09 22:54:14 +02:00
scripts Removing Prisma and Grapql-nestjs-prisma resolvers (#2574) 2023-11-19 18:25:47 +01:00
src feat: Add seed people and companies data for demo environment (#2207) (#2307) 2023-12-02 18:37:45 +01:00
test Seed workspace member in workspace schema (#2504) 2023-11-14 15:48:03 +01:00
.env.example feat: Add seed people and companies data for demo environment (#2207) (#2307) 2023-12-02 18:37:45 +01:00
.env.test Remove three old env variables (#2297) 2023-10-31 13:15:24 +01:00
.eslintrc.js Eslint prevent duplicate import (#2516) 2023-11-16 12:26:43 +01:00
.gitignore refactor:Style "loading more" rows on tables (Issue #2498) (#2717) 2023-11-27 11:12:59 +01:00
.nvmrc feat: create ViewField model (#961) 2023-07-27 09:12:26 -07:00
.prettierignore Simplify local dev (#137) 2023-05-25 15:56:28 +02:00
.prettierrc Setup Nest and React projects 2022-12-01 15:58:08 +01:00
jest.config.ts Removing Prisma and Grapql-nestjs-prisma resolvers (#2574) 2023-11-19 18:25:47 +01:00
nest-cli.json Setup Nest and React projects 2022-12-01 15:58:08 +01:00
package.json feat: Add seed people and companies data for demo environment (#2207) (#2307) 2023-12-02 18:37:45 +01:00
tsconfig.build.json Setup Nest and React projects 2022-12-01 15:58:08 +01:00
tsconfig.json feat: implement user impersonation feature (#976) 2023-07-31 15:47:29 -07:00
yarn.lock add message queue integration (#2491) 2023-12-01 16:09:04 +01:00