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

[CORL-2944]: truncate comment body sent to slack to stay under char limits #4392

Merged

Conversation

kabeaty
Copy link
Contributor

@kabeaty kabeaty commented Nov 10, 2023

What does this PR do?

These changes truncate the comment body that is sent through to Slack via the webhook integration. This ensures that it stays under Slack character limits and doesn't error out.

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

What changes to the GraphQL/Database Schema does this PR introduce?

none

Does this PR introduce any new environment variables or feature flags?

no

If any indexes were added, were they added to INDEXES.md?

n/a

How do I test this PR?

You can test this PR by setting up a Slack integration and sending comments to it. Reach out to me and I can share a webhook that I set up that you can use to test as well.

Where any tests migrated to React Testing Library?

How do we deploy this PR?

Copy link

netlify bot commented Nov 10, 2023

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
🔨 Latest commit cdb1824
🔍 Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/654e58838dc3cc0008c1416e

Copy link
Contributor

@nick-funk nick-funk left a comment

Choose a reason for hiding this comment

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

Never thought we'd hit their text limit, but I guess we did it. Approved! ✅

@kabeaty kabeaty added this pull request to the merge queue Dec 6, 2023
Merged via the queue into develop with commit 1ef41da Dec 6, 2023
@kabeaty kabeaty deleted the fix/CORL-2944-truncate-long-comments-slack-integration branch December 6, 2023 18:48
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