Skip to content

Fix webhook size too big #12749

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

Merged
merged 2 commits into from
Jun 20, 2025
Merged

Fix webhook size too big #12749

merged 2 commits into from
Jun 20, 2025

Conversation

charlesBochet
Copy link
Member

No description provided.

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

Optimized webhook payload size by reducing objectMetadata to essential fields, improving performance and reliability for webhook consumers.

  • Modified packages/twenty-server/src/modules/webhook/jobs/call-webhook-jobs.job.ts to only include 'id' and 'nameSingular' fields in webhook payloads instead of full objectMetadata
  • Change maintains backward compatibility with Zapier integration while significantly reducing payload size
  • Aligned with recommended practice of sending minimal event payloads in webhooks to prevent queue system issues

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

github-actions bot commented Jun 19, 2025

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:33820

This environment will automatically shut down when the PR is closed or after 5 hours.

Copy link
Member

@FelixMalfait FelixMalfait left a comment

Choose a reason for hiding this comment

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

Approved too quickly, looks like it was already the case!

@Weiko
Copy link
Member

Weiko commented Jun 20, 2025

Approved too quickly, looks like it was already the case!

Ah yes indeed, it's too late here. What we want is to update the payload inside CallWebhookJobsJob instead

@charlesBochet charlesBochet merged commit 24fa479 into main Jun 20, 2025
42 checks passed
@charlesBochet charlesBochet deleted the fix-webhook-size-too-big branch June 20, 2025 12:42
ijreilly pushed a commit that referenced this pull request Jun 20, 2025
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.

3 participants