Jérémy M
dd125ddfcc
feat: add memory cache to boost performance ( #2620 )
...
* feat: add memory cache to boost performance
* fix: tests
* fix: logging
* fix: missing commented stuff
2023-11-21 18:29:31 +01:00
Charles Bochet
f5e1d7825a
Removing Prisma and Grapql-nestjs-prisma resolvers ( #2574 )
...
* Some cleaning
* Fix seeds
* Fix all sign in, sign up flow and apiKey optimistic rendering
* Fix
2023-11-19 18:25:47 +01:00
Jérémy M
b86ada6d2b
feat: rename tenant into workspace ( #2553 )
...
* feat: rename tenant into workspace
* fix: missing some files and reset not working
* fix: wrong import
* Use link in company seeds
* Use link in company seeds
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-17 11:26:33 +01:00
Weiko
04c618284f
Convert metadata tables to camel_case ( #2420 )
...
* Convert metadata tables to camelcase
* refactor folder structure
* rename datasourcemetadata
* regenerate metadata schema
* rename dataSourceMetadata to dataSource
2023-11-10 15:33:25 +01:00
Charles Bochet
7b9175a4a4
Revert "Convert metadata tables to camelCase" ( #2419 )
...
Revert "Convert metadata tables to camelCase (#2400 )"
This reverts commit 1cf08c797f
.
2023-11-10 11:48:44 +01:00
Weiko
1cf08c797f
Convert metadata tables to camelCase ( #2400 )
...
* Convert metadata tables to camelCase
* datasourcemetadataid to datasourceid
* refactor metadata folders
* fix command
* move commands out of metadata
* fix seed
* rename objectId and fieldId in objectMetadataId and fieldMetadataId in FE
* fix field-metadata
* Fix
* Fix
* remove logs
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-09 20:06:10 +01:00
martmull
462c7ebdc1
0.2.0 cleaning script ( #2379 )
...
* Move question to questions folder
* Aggregate update result functions
* Use lodash to compare list of objects
* Remove favorites from tables
* Add a workspace parameter
* Move question after result log
* Improve logging
* Code review returns
* Add only lodash.isequal
2023-11-07 11:10:14 +01:00
Jérémy M
1ed4965a95
feat: refactor schema builder and resolver builder ( #2215 )
...
* feat: wip refactor schema builder
* feat: wip store types and first queries generation
* feat: refactor schema-builder and resolver-builder
* fix: clean & small type fix
* fix: avoid breaking change
* fix: remove util from pg-graphql classes
* fix: required default fields
* Refactor frontend accordingly
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-03 17:16:37 +01:00
Weiko
b56f6f3947
Fix seeds for local workspace and newly created workspaces ( #2333 )
...
* Update metadata/data seeds
* fix
* fix
* move seeding into a transaction
* add no-non-null-assertion
---------
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-11-03 14:33:45 +01:00
bosiraphael
dda911fea7
Remove three old env variables ( #2297 )
...
* remove three old env variables IS_DATA_MODEL_SETTINGS_ENABLED IS_DEVELOPERS_SETTINGS_ENABLED FLEXIBLE_BACKEND_ENABLED
* Fix database:reset script
* Removing unused variable
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-31 13:15:24 +01:00
Charles Bochet
b591023eb3
Fix/metadata object and settings post merge ( #2269 )
...
* WIP
* WIP2
* Seed views standard objects
* Migrate views to the new data model
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-28 12:25:43 +02:00
Weiko
acbcd2f162
Standard migration command ( #2236 )
...
* Add Standard Object migration commands
* rebase
* add sync-tenant-metadata command
* fix naming
* renaming command class names
* remove field deletion and use object cascade instead
---------
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-10-27 18:08:59 +02:00
Lucas Bordeau
14ae8da424
Fix database experience ( #2263 )
2023-10-27 17:48:06 +02:00
Ruslan
b6e8fabbb1
chore: added .dockerignore and fixed start:prod ( #2099 ) ( #2211 )
...
added .env to .dockerignore and fixed start:prod
2023-10-24 14:41:52 +02:00
Charles Bochet
d0df7e4d3b
Update version to 0.1.5 ( #2123 )
...
* Update version to 0.1.5
* Temporariliy lower code coverage
2023-10-19 16:21:09 +02:00
Aasim Attia
88438e8094
apply database:init ( #2079 )
2023-10-17 16:39:48 +02:00
Jérémy M
4a96ae225e
feat: easier makefile commands ( #2077 )
...
* feat: easier makefile commands
* fix: cleaner command
2023-10-17 10:38:10 +02:00
Charles Bochet
77729e4d4b
Update installation doc ( #2019 )
...
* Update installation doc
* Update install scripts
* Update install scripts
2023-10-14 13:43:45 +02:00
Ruslan
77c88bda6e
Fix bug where "metadata" scheme was not created automatically ( #1971 ) and ( #1831 ) ( #2018 )
...
* 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
2023-10-14 11:48:55 +02:00
Jérémy M
4e993316a6
feat: conditional schema based on column map instead of column field ( #1978 )
...
* feat: wip conditional schema based on column map instead of column field
* feat: conditionalSchema columnMap and singular plural
* fix: remove uuid fix
* feat: add name and label (singular/plural) drop old tableColumnName
2023-10-12 18:28:27 +02:00
Weiko
ca492808cf
Add metadata query resolvers ( #1929 )
...
* Add metadata queries resolvers
* remove hello field
* fix linter
2023-10-09 22:54:14 +02:00
Jérémy M
7e8e3ac1de
fix: typeorm migration datasource directory change ( #1848 )
2023-10-03 17:44:58 +02:00
Jérémy M
629bdbbf50
feat: dynamic graphQL schema generation based on user workspace ( #1725 )
...
* wip: refacto and start creating custom resolver
* feat: findMany & findUnique of a custom entity
* feat: wip pagination
* feat: initial metadata migration
* feat: universal findAll with pagination
* fix: clean small stuff in pagination
* fix: test
* fix: miss file
* feat: rename custom into universal
* feat: create metadata schema in default database
* Multi-tenant db schemas POC
fix tests and use query builders
remove synchronize
restore updatedAt
remove unnecessary import
use queryRunner
fix camelcase
add migrations for standard objects
Multi-tenant db schemas POC
fix tests and use query builders
remove synchronize
restore updatedAt
remove unnecessary import
use queryRunner
fix camelcase
add migrations for standard objects
poc: conditional schema at runtime
wip: try to create resolver in Nest.JS context
fix
* feat: wip add pg_graphql
* feat: setup pg_graphql during database init
* wip: dynamic resolver
* poc: dynamic resolver and query using pg_graphql
* feat: pg_graphql use ARG in Dockerfile
* feat: clean findMany & findOne dynamic resolver
* feat: get correct schema based on access token
* fix: remove old file
* fix: tests
* fix: better comment
* fix: e2e test not working, error format change due to yoga
* remove typeorm entity generation + fix jwt + fix search_path + remove anon
* fix conflict
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
Co-authored-by: corentin <corentin@twenty.com>
2023-09-28 16:27:34 +02:00
Weiko
19365f6639
Add metadata migration setup ( #1674 )
...
* Add metadata migration setup
* add migration generator
* fix missing 'mocks'
---------
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-09-20 17:27:07 -07:00
Jérémy M
b1171e22a3
feat: add findAll and findUnique resolver for universal objects ( #1576 )
...
* wip: refacto and start creating custom resolver
* feat: findMany & findUnique of a custom entity
* feat: wip pagination
* feat: initial metadata migration
* feat: universal findAll with pagination
* fix: clean small stuff in pagination
* fix: test
* fix: miss file
* feat: rename custom into universal
* feat: create metadata schema in default database
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-09-20 17:24:13 -07:00
Aditya Pimpalkar
321488ad3c
feat: Column title menus ( #1616 )
...
* view field index to float
* gql codegen and package.json
* list implementation
* db call
* reposition logic
* lint fix
* edge case fix
* review changes
* handleColumnMove refactor
* dropdown recoil scope
* rename props
* Update server/src/database/migrations/20230727124244_add_view_fields_table/migration.sql
---------
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-09-19 15:27:02 -07:00
Weiko
ec90c77ec1
Refactor tenant ORM integration ( #1650 )
...
* Refactor tenant ORM integration
* fix tests
2023-09-19 17:58:28 +02:00
Charles Bochet
dba6f93826
Fix tests server
2023-09-17 08:41:46 -07:00
Anik Dhabal Babu
84eaa45027
fix: Migrate all rules from eslint-plugin-twenty to eslint-plugin-twenty-ts ( #1618 )
...
* migrate rules
* fix
* final
* final
2023-09-17 08:13:05 -07:00
Weiko
d98ddc3dbe
multi tenant schemas poc ( #1569 )
...
* Multi-tenant db schemas POC
* fix tests and use query builders
* remove synchronize
* restore updatedAt
* remove unnecessary import
* use queryRunner
* fix camelcase
* add migrations for standard objects
* Multi-tenant db schemas POC
* fix tests and use query builders
* remove synchronize
* restore updatedAt
* remove unnecessary import
* use queryRunner
* fix camelcase
* add migrations for standard objects
* add metadata
* add comments
* remove migrations for now
* do not allow connection to public schema for non-remote workspace connection
* rename getLastDataSourceMetadataFromWorkspaceIdOrFail
* remove schema creation
* remove module import
2023-09-14 14:39:37 +02:00
brendanlaschke
35bcef5090
Add Sentry for Backend ( #1403 )
...
* - added sentry
* - renamed env var
* - logger driver
* - add breadcrumb and category
* - fix driver
2023-09-11 12:22:30 -07:00
dependabot[bot]
77d356f78a
Bump file-type from 13.0.0 to 16.5.4 in /server ( #1105 )
...
Bumps [file-type](https://github.com/sindresorhus/file-type ) from 13.0.0 to 16.5.4.
- [Release notes](https://github.com/sindresorhus/file-type/releases )
- [Commits](https://github.com/sindresorhus/file-type/compare/v13.0.0...v16.5.4 )
---
updated-dependencies:
- dependency-name: file-type
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-07 14:15:07 -07:00
Jérémy M
f111440e00
feat: implement user impersonation feature ( #976 )
...
* feat: wip impersonate user
* feat: add ability to impersonate an user
* fix: remove console.log
* fix: unused import
2023-07-31 15:47:29 -07:00
Charles Bochet
e7eecd5b54
Fix server e2e tests on CI #4
2023-07-27 15:22:10 -07:00
Charles Bochet
61205c2cb0
Fix server e2e tests on CI #1
2023-07-27 11:53:00 -07:00
Jérémy M
157e5b9a2e
feat: implement e2e test for CompanyResolver ( #944 )
...
* feat: wip e2e server test
* feat: use github action postgres & use infra for local
* feat: company e2e test
* feat: add company e2e test for permissions
* Simplify server e2e test run
* Fix lint
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-07-27 09:48:40 -07:00
Jérémy M
e90f44bbfb
feat: increase upload size limit ( #962 )
2023-07-27 09:07:38 -07:00
Jérémy M
58530be78b
feat: upload profile picture from google ( #964 )
...
* feat: upload profile picture from google
* fix: only add profile picture if user don't have any
2023-07-27 09:06:50 -07:00
Jérémy M
51cfc0d82c
feat: refactoring casl permission checks for recursive nested operations ( #778 )
...
* feat: nested casl abilities
* fix: remove unused packages
* Fixes
* Fix createMany broken
* Fix lint
* Fix lint
* Fix lint
* Fix lint
* Fixes
* Fix CommentThread
* Fix bugs
* Fix lint
* Fix bugs
* Fixed auto routing
* Fixed app path
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-07-25 16:37:22 -07:00
Jérémy M
ce3e023a00
feat: server lint import & order ( #750 )
2023-07-19 14:01:32 +02:00
Jérémy M
1144bd13ed
feat: onboarding & profile edition ( #507 )
...
* feat: wip onboarding
* fix: generate graphql front
* wip: onboarding
* feat: login/register and edit profile
* fix: unused import
* fix: test
* Use DEBUG_MODE instead of STAGE and mute typescript depth exceed errors
* Fix seeds
* Fix onboarding when coming from google
* Fix
* Fix lint
* Fix ci
* Fix tests
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-07-06 17:05:15 -07:00
Deepak Singh
9c09da18db
fix: Create a client config function that is retrieved when app is loading ( #496 )
...
* fix: Create a client config function that is retrieved when app is loaded
* update index.tsx
* fixed linter issues
2023-07-05 00:28:59 +02:00
Jérémy M
6fc416da76
fix: displayName return undefined and drop displayName from user table ( #505 )
2023-07-04 20:08:15 +02:00
Jérémy M
5e1fc1ad11
feat: upload module ( #486 )
...
* feat: wip upload module
* feat: local storage and serve local images
* feat: protect against injections
* feat: server local and s3 files
* fix: use storage location when serving local files
* feat: cross field env validation
2023-07-04 14:02:44 +00:00
Jérémy M
cca36cf50f
fix: rename event module into analytics and clean ( #482 )
2023-06-30 09:24:05 +00:00
Jérémy M
433962321a
feat: onboarding ui flow ( #464 )
...
* feat: onboarding ui flow
* fix: route naming and auth
* fix: clean unused imports
* fix: remove react.fc
* fix: infra dev remove package.json
* fix: remove usefull memoization
* fix: button stories
* fix: use type instead of interface
* fix: remove debug
2023-06-30 06:26:06 +00:00
Félix Malfait
eb7fb2ba8e
Add Telemetry ( #466 )
...
* Telemetry v1
* Add package-lock.json to gitignore
2023-06-29 17:36:48 -07:00
Félix Malfait
1c7980b270
Disable linter on generated code ( #363 )
2023-06-23 08:43:41 -07:00
Charles Bochet
ba1dd07e53
Fix mock mode transition to regular mode on login ( #361 )
2023-06-22 14:09:51 -07:00
Jérémy M
ca283a2196
feat: prisma typed select ( #347 )
...
* feat: wip prisma gql select
* feat: stronger api using decorator
* feat: add PrismaSelect everywhere
* fix: remove unused
* fix: remove seed debug
2023-06-22 11:17:31 +02:00