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

Fixed relations #9227

Merged
merged 3 commits into from
Dec 24, 2024
Merged

Fixed relations #9227

merged 3 commits into from
Dec 24, 2024

Conversation

lucasbordeau
Copy link
Contributor

Follow-up : Fixed relations eager load on refactored hooks from PR #8695

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 PR adds eager loading of relations across field metadata validators and relation metadata hooks, ensuring consistent data loading patterns but potentially impacting performance.

  • Fixed typo in before-delete-one-relation.hook.ts where 'fromFieldMetafata' needs to be corrected to 'fromFieldMetadata'
  • Added eager loading of relations in is-field-metadata-options.validator.ts and is-field-metadata-default-value.validator.ts which may be unnecessary since only 'type' field is used
  • Added 'fromObjectMetadata' and 'toObjectMetadata' relations to eager loading in before-delete-one-relation.hook.ts

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

@Weiko Weiko merged commit cba38ab into main Dec 24, 2024
19 checks passed
@Weiko Weiko deleted the fix/relations-on-refactored-hooks branch December 24, 2024 14:59
samyakpiya pushed a commit to samyakpiya/twenty that referenced this pull request Dec 28, 2024
Follow-up : Fixed relations eager load on refactored hooks from PR
twentyhq#8695
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants