Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove identifierFieldMetadataId from createObjectInput #9450

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

ijreilly
Copy link
Collaborator

@ijreilly ijreilly commented Jan 8, 2025

Removing labelIdentifierFieldMetadataId and imageIdentifierFieldMetadataId that should not be part of createObjectInput as they don't make sense for an object yet to create and will break

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Removes labelIdentifierFieldMetadataId and imageIdentifierFieldMetadataId fields from CreateObjectInput to prevent invalid references during object creation, as these fields only make sense after the object exists.

  • Removed labelIdentifierFieldMetadataId and imageIdentifierFieldMetadataId from packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/create-object.input.ts
  • Removed unused IsUUID import from class-validator
  • Fields remain available in UpdateObjectInput where they are logically needed

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ijreilly should we run graphql code-gen for gql files for the FE?

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ijreilly ijreilly merged commit a1664fb into main Jan 8, 2025
23 checks passed
@ijreilly ijreilly deleted the remove-labal-identifier-id branch January 8, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants