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

Fix restApi should not use TS_VECTOR fields as mutation inputs #7484

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Oct 8, 2024

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 addresses an issue with the REST API handling of TS_VECTOR fields in mutation inputs.

  • Added a check for FieldMetadataType.TS_VECTOR in getSchemaComponentsProperties function in /packages/twenty-server/src/engine/core-modules/open-api/utils/components.utils.ts
  • Prevents TS_VECTOR fields from being included as mutation inputs in the REST API
  • Improves API functionality by avoiding potential errors when interacting with TS_VECTOR fields
  • Aligns the REST API behavior with the expected handling of search vector fields

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

@Weiko Weiko merged commit af4f3ce into main Oct 8, 2024
8 checks passed
@Weiko Weiko deleted the c--fix-rest-api-with-search-vector branch October 8, 2024 09:21
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.

2 participants