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

Improved message sending and draft create/update performance #470

Conversation

mrashed-dev
Copy link
Contributor

Description

This PR improves message send/draft create/update performance by always defaulting to application/json instead of multipart. Multipart will only be used for when a request contains a total attachments size of 3mb or higher.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.85%. Comparing base (fe73d9c) to head (9cbd7c3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #470   +/-   ##
=======================================
  Coverage   99.84%   99.85%           
=======================================
  Files          24       24           
  Lines         665      681   +16     
=======================================
+ Hits          664      680   +16     
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrashed-dev mrashed-dev merged commit 0639d65 into main Mar 5, 2024
7 checks passed
@mrashed-dev mrashed-dev deleted the TW-2710-ruby-implement-application-json-for-messages-drafts-api branch March 5, 2024 22:09
@mrashed-dev mrashed-dev mentioned this pull request Mar 5, 2024
mrashed-dev added a commit that referenced this pull request Mar 5, 2024
# Changelog
* Improved message sending and draft create/update performance (#470)
* Change default timeout to match API (90 seconds) (#471)
* Fixed error when invoking `Auth.detect_provider` (#469, #468)
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