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

Improve QueryFailedError message in sync-metadata #6591

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Aug 9, 2024

Adding more logs with Typeorm QueryFailedError in sync-metadata command

Example with a unicity constraint violation, to identify which column is affected
Screenshot 2024-08-09 at 14 56 05

In this case, this should help self-hosting users to know which key is a duplicate during syncs after a version upgrade for example

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

Enhanced error logging for QueryFailedError in WorkspaceSyncMetadataService to improve debugging capabilities.

  • Modified packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/workspace-sync-metadata.service.ts to log detailed error messages.
  • Added logging for error details to identify issues like constraint violations.
  • Ensured that the additional logging does not expose sensitive information in production logs.

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

@Weiko Weiko merged commit bdac4c8 into main Aug 9, 2024
6 checks passed
@Weiko Weiko deleted the c--improve-query-failed-error-message-in-sync-metadata branch August 9, 2024 14:23
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.

1 participant