twenty/packages/twenty-server
Weiko 28815f54fe
Refactor object metadata service (#8123)
## Context
ObjectMetadataService became quite large and handles too many
responsibilities. I'm trying to refactor a bit this part in preparation
of a larger work that will combine object-metadata services and
sync-metadata logic

- Created a STANDARD_OBJECT_ICONS that can be reused in relation
creation to refer to a standard object icon.
- Created a STANDARD_OBJECT_FIELD_IDS that can be used with an object
name to get its standard field ids.
- Moved migration, record and relation creations to dedicated services,
refactored to improve performances and readability
- Refactored some validation logic

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-28 14:13:15 +01:00
..
@types feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
patches Improve demo seed (#7125) 2024-09-18 17:35:08 +02:00
scripts [Server Integration tests] Enrich integration GraphQL API tests (#7699) 2024-10-17 19:16:19 +02:00
src Refactor object metadata service (#8123) 2024-10-28 14:13:15 +01:00
test/integration [Server Integration tests] Enrich integration GraphQL API tests #2 (#7978) 2024-10-24 13:25:21 +02:00
.env.example feat(sso): allow to use OIDC and SAML (#7246) 2024-10-21 20:07:08 +02:00
.env.test [Server Integration tests] Enrich integration GraphQL API tests (#7699) 2024-10-17 19:16:19 +02:00
.eslintrc.cjs feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
.gitignore feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
.prettierignore Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.prettierrc Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.swcrc feat: twenty orm for standard and custom objects (#6178) 2024-07-19 18:23:52 +02:00
jest-integration.config.ts [Server Integration tests] Enrich integration GraphQL API tests (#7699) 2024-10-17 19:16:19 +02:00
jest.config.ts Fix all broken CIs (#7439) 2024-10-05 00:23:23 +02:00
nest-cli.json 6653 serverless functions store and use environment variables in serverless function scripts (#7390) 2024-10-03 13:56:17 +02:00
package.json feat(sso): allow to use OIDC and SAML (#7246) 2024-10-21 20:07:08 +02:00
project.json [Server Integration tests] Enrich integration GraphQL API tests (#7699) 2024-10-17 19:16:19 +02:00
tsconfig.build.json chore: set up twenty-emails config so build isn't needed in development (#3619) 2024-01-29 06:17:12 -03:00
tsconfig.json feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
tsconfig.scripts.json feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00