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

Chore/object meta data image #7616

Closed

Conversation

Aditya-PS-05
Copy link

closes #3710

Copy link

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against 13486b3

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

This pull request adds an 'imageIdentifier' property to the ObjectMetadata decorator, enhancing the metadata structure for object records across the Twenty application.

  • Added 'imageIdentifier' field to GraphQL mutations and queries in /packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts and /packages/twenty-front/src/modules/object-metadata/graphql/queries.ts
  • Updated ObjectMetadataEntity in /packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts to include the new 'imageIdentifier' column
  • Modified CreateObjectInput and UpdateObjectPayload in /packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/create-object.input.ts and /packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/update-object.input.ts to support the new property
  • Updated integration tests in /packages/twenty-server/test/objects.integration-spec.ts to validate the new 'imageIdentifier' field

24 file(s) reviewed, 5 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +334 to +336
imageIdentifier: {
type: 'string',
},
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider adding a description for the 'imageIdentifier' property

Comment on lines +78 to +79
@Field({ nullable: true })
imageIdentifier: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider making imageIdentifier optional to match labelIdentifierFieldMetadataId and imageIdentifierFieldMetadataId

@IsString()
@IsOptional()
@Field({ nullable: true })
imageIdentifier?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Add a comment explaining the purpose and usage of imageIdentifier

Comment on lines +75 to +76
@Column({ nullable: true })
imageIdentifier?: string | null;
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider adding a comment explaining the purpose and usage of imageIdentifier

@charlesBochet
Copy link
Member

@Aditya-PS-05 thank you! You seem to have conflicts, could you fix them before we review?

@Aditya-PS-05
Copy link
Author

Ok, I am trying to fix this as soon as possible.

@charlesBochet
Copy link
Member

@Aditya-PS-05 any update on this one? :)

@FelixMalfait
Copy link
Member

Sorry I'll close this as it's been open for some time.
The issue was mis-categorized as "good first issue", the first part you did is correct (and deserve to be merged if there wasn't conflict), but the hard bart is about actually implementing the imageIdentifier in the frontend, for example the imageIdentifier of a company is the domain name so there need to be a special implementation for Links fields, etc. Quite a big task!!!

Please feel free to re-open with the first part.

Thank you!!

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.

ObjectMetadata decorator have an imageIdentifier properties
4 participants