* feat(workspace-resolver): prevent deletion of demo workspaces (#2207)
* ForbiddenException instead of Error
* Optimize user and workspace deletion checks and clarify exception messages (#2207)
- ForbiddenException messages for attempts to delete users and workspaces associated with demo accounts
* 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>
Deploy to Render updated (#2033):
* postgres as a pserv (private service) compiled with pg_graphql
* default credentials (todo to fix), but postgres in a private network
* added FRONT_BASE_URL to server env
* added Dockerfile for postgres in infra/prod/postgres
* for server added dockerCommand with yarn database:setup
* Fix bug where "metadata" scheme was not created automatically (#1971)
* logging on
* testing on render
* render upadte
* added setup-db.ts and updated package.json
* renamed volume name db_data to twenty_db_data
* named postgres container_name: twenty_postgres
make provision-postgres does:
* checking if docker is running
* stop the container postgres twenty_postgres
* prune the volume twenty_db_data
* rebuild the image every time, use --build