twenty/packages/twenty-server/src/engine/api/graphql/graphql-query-runner
Weiko 2f223f3294
Fix 'name' column wrongly added in standard objects (#7428)
## Context
Name shouldn't be added to all tables, especially standard objects
because they already have their own labelIdentifierFieldMetadata
specified in the workspace-entity schema. This PR removes this column
from the "base" list of columns to add when creating a new object/table
and moves it to the object-metadata service that is, as of today, only
used for custom objects. Also had to modify the migration-runner to
handle column creation in a table creation migration (this was available
in the migration definition already but was not doing anything)

This also fixes an issue in standard objects that already have a "name"
field defined with a different field type, this is even more important
when the said field is a composite field. For example people already has
a FULL_NAME name field which clashes with the default TEXT name field
meaning it was only creating 1 field metadata for 'name' but 3 columns
were created: `name, nameFirstName, nameLastName`. This inconsistency
with metadata (which is our source of truth everywhere) brought some
issues (lately, converting back typeorm response to gql (including
composition) was broken).
2024-10-04 18:31:19 +02:00
..
constants [POC] add graphql query runner (#6747) 2024-08-27 17:06:39 +02:00
errors Refactor metadata caching (#7011) 2024-09-12 16:06:19 +02:00
factories Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00
graphql-query-parsers Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00
helpers Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00
interfaces Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00
resolvers Fix 'name' column wrongly added in standard objects (#7428) 2024-10-04 18:31:19 +02:00
services Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00
utils Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00
graphql-query-runner.module.ts Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00
graphql-query-runner.service.ts Refactor graphql query runner and add mutation resolvers (#7418) 2024-10-04 11:58:33 +02:00