c02717c1e3
fix: schema builder use same type definitions storage across tenant ( #2525 )
2023-11-15 17:23:30 +01:00
6129444c5c
[WIP] Whole FE migrated ( #2517 )
...
* Wip
* WIP
* Removed concole log
* Add relations to workspace init (#2511 )
* Add relations to workspace init
* remove logs
* update prefill
* add missing isSystem
* comment relation fields
* Migrate v2 core models to graphql schema (#2509 )
* migrate v2 core models to graphql schema
* Migrate to new workspace member schema
* Continue work
* migrated-main
* Finished accountOwner nested field integration on companies
* Introduce bug
* Fix
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
Co-authored-by: Weiko <corentin@twenty.com >
2023-11-15 15:46:06 +01:00
65af954671
fix: relations issues ( #2497 )
...
* fix: relations issues
one-to-one relation not working
alias should not be used on the foreignKey side
* fix: naming
2023-11-14 12:07:17 +01:00
05dbde79cf
Add standard company table migrations ( #2484 )
2023-11-13 17:18:37 +01:00
9a109758c8
Migrate standard objects ( #2439 )
...
* Migrate standard objects
* Add migrations
* fix relation
* fix: register RelationMetadataType enum
* fix: correctly fix null relation
---------
Co-authored-by: corentin <corentin@twenty.com >
Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com >
2023-11-13 16:08:27 +01:00
130a68dd26
Add relation metadata seed ( #2431 )
...
* Add relation metadata seed
* Fix
* Add filtering by relation id on server
* Fix
2023-11-10 23:53:07 +01:00
032e516a46
fix one to many relation dynamic query ( #2430 )
2023-11-10 18:20:36 +01:00
54d7acd518
Split components into object-metadata and object-record ( #2425 )
...
* Split components into object-metadata and object-record
* Fix seed
2023-11-10 15:54:32 +01:00
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
6a700ad1a5
feat: schema-builder and resolver-builder can handle relations ( #2398 )
...
* feat: wip add relation
* feat: add relation for custom and standards objects
* fix: use enum instead of magic string
* fix: remove dead code & fix tests
* fix: typo
* fix: BooleanFilter is missing
* fix: Malformed result error
2023-11-10 12:32:02 +01:00
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
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
0d4949484c
feat: add Money field type in settings ( #2405 )
...
Closes #2346
2023-11-09 17:13:34 +01:00
3432615a17
fix: small tenant refactor fixes ( #2375 )
2023-11-06 15:49:06 +01:00
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
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
cf8840dfec
Fix assert not null lint warning ( #2324 )
2023-11-03 11:08:14 +01:00
80a6223d7d
feat: custom objects delete one ( #2278 )
...
* feat: custom objects delete one
* fix: delete one issue
2023-10-30 12:05:03 +01:00
3e83cb6846
feat: conditional filtering & aggregation support & data ordering support ( #2107 )
...
* feat: wip
* feat: add filter on findOne
* fix: tests & small bug
* feat: add test and support aggregation
* feat: add order by support
* fix: fix comments
* fix: tests
2023-10-19 15:24:36 +02:00
c4fa36402b
feat: add default filter types ( #2087 )
...
* feat: add default filter types
* fix: fields doesn't need to be a function
2023-10-17 17:57:02 +02:00
1344e78acb
Remove singular/plural from field-metadata ( #2085 )
...
* Remove singular/plural from field-metadata
* revert removing id from create input
* remove console log
* remove console log
* codegen
* missing files
* fix tests
2023-10-17 15:21:58 +02:00
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
f97228bfac
feat: add object/field create/update resolvers ( #1963 )
...
* feat: add object/field create/update resolvers
* fix tests
2023-10-11 12:03:13 +02:00
017a0b1563
feat: refactor custom object ( #1887 )
...
* chore: drop old universal entity
* feat: wip refactor graphql generation custom object
* feat: refactor custom object resolvers
fix: tests
fix: import
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-10-10 10:50:54 +02:00
ca492808cf
Add metadata query resolvers ( #1929 )
...
* Add metadata queries resolvers
* remove hello field
* fix linter
2023-10-09 22:54:14 +02:00
2ff35083fb
chore: drop findMany and findUnique resolvers for custom objects ( #1897 )
...
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
2023-10-06 10:49:54 +02:00
047bb8014b
feat: add custom object create and update ( #1869 )
2023-10-05 14:33:13 +02:00
42e8869e0e
Add targetColumnMap to FieldMetadata ( #1863 )
...
* Add targetColumnMap to FieldMetadata
* fix
* remove console.log
* fix test
2023-10-04 15:17:53 +02:00
1e91c985df
Add a dedicated GQL server for metadata available on /meta ( #1820 )
2023-10-03 10:17:13 +02:00
d3b39cad97
feat: add env security in dynamic resolvers ( #1812 )
...
* feat: add env security in dynamic resolvers
* fix: tests
2023-10-02 17:17:42 +02:00
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
189bf4a627
Feature: add createCustomField resolver ( #1698 )
...
* Feature: add createCustomField resolver
* update mocks
* fix import
* invalidate workspace datasource cache after migration
* fix typo
2023-09-21 12:59:11 -07:00
2d758c990b
Fix merge issue flexible backend ( #1685 )
...
* Fix merge issue flexible backend
* Fix tests
* Try fix tests
* Try fix tests
2023-09-20 19:11:21 -07:00
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
fc820f47b2
Feat/disable flexible backend ( #1673 )
...
* 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: enable/disable flexible backend from env
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com >
2023-09-20 17:25:45 -07:00
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
ec90c77ec1
Refactor tenant ORM integration ( #1650 )
...
* Refactor tenant ORM integration
* fix tests
2023-09-19 17:58:28 +02:00