Commit Graph

19 Commits

Author SHA1 Message Date
474db1e142 fix: nested relations not working and relations not prefixed (#2782)
* fix: nested relations n+n

* fix: prefix custom relations

* fix: only apply targetColumnMap when it's a custom object

* fix: force workspaceId to be provided

* fix: toIsCustom -> isToCustom

* fix: remove console.log
2023-12-01 15:26:48 +01:00
323c69948c Fix check identical nameSingular/namePlural (#2689) 2023-11-24 11:30:22 +01:00
cc526517b3 Add viewField creation to fieldMetadata creation service (#2685)
* Add viewField creation to fieldMetadata creation service

* fix reduce with no initial value
2023-11-24 10:02:37 +01:00
c795db33b2 Add activityTarget relation after custom object creation (#2670)
* Add activityTarget relation after custom object creation

* add isCustom check for relations
2023-11-23 16:26:33 +01:00
8454dfc345 First generated viewField is now name (#2671)
fix-first-generated-viewField
2023-11-23 14:50:56 +01:00
c74bde28b8 Add identifier fields to ObjectMetadata (#2616)
* Add indentifier fields to ObjectMetadata

* Add indentifier fields to ObjectMetadata

* Add indentifier fields to ObjectMetadata

* temporarily block name/label edition
2023-11-21 18:41:48 +01:00
a33d4c8b8d Rename DATE to DATETIME (#2576)
* Rename DATE to DATETIME

* rename DATE to DATE_TIME

* fix server tests

* rename date to datetime

* rename date to datetime
2023-11-21 00:16:42 +01:00
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
ed71ef67af Add Name defaultColumn for custom objects (#2568) 2023-11-17 19:13:07 +01:00
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
bc579d64a6 Rename Money/Url to Currency/Link and remove snake_case from composite fields (#2536)
* Rename Money/Url to Currency/Link

* regenerate front types

* renaming money/url field types

* fix double text

* fix tests

* fix server tests

* fix generate-target-column-map

* fix currency convert

* fix: tests

---------

Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com>
2023-11-17 10:31:17 +01:00
ebd1ef5223 Add basic fields metadata (#2523)
* Add basic fields metadata

* add fieldmetadata dependency

* re-arrange modules

* fix

* fix seed

* set default fields nullable

* set default fields nullable

* fix tenantMigration order

* fix tenantMigration order
2023-11-15 19:21:51 +01:00
f8a887e33e Add is system flag to object metadata (#2481)
* Add isSystem flag to objectMetadata

* squash migrations and add dataSource->objects FK

* fix missing datasource enum type
2023-11-13 17:09:26 +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
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
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
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
1e91c985df Add a dedicated GQL server for metadata available on /meta (#1820) 2023-10-03 10:17:13 +02:00