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

Snow 1814745 fix aborting requests in http client #967

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-fpawlowski
Copy link
Contributor

Description

Please explain the changes you made here.

Checklist

  • Format code according to the existing code style (run npm run lint:check -- CHANGED_FILES and fix problems in changed code)
  • Create tests which fail without the change (if possible)
  • Make all tests (unit and integration) pass (npm run test:unit and npm run test:integration)
  • Extend the README / documentation and ensure is properly displayed (if necessary)
  • Provide JIRA issue id (if possible) or GitHub issue id in commit message

@sfc-gh-fpawlowski sfc-gh-fpawlowski changed the base branch from master to SNOW-1631790-Transport-Layer November 19, 2024 14:17
@sfc-gh-fpawlowski sfc-gh-fpawlowski self-assigned this Nov 20, 2024
lib/http/base.js Outdated
let sendRequest = async function sendRequest() {
Logger.getInstance().trace('Request%s - sending.', requestUtil.describeRequestFromOptions(requestOptions));
const timer = new ExecutionTimer().start();
requestPromise = axios.request(requestOptions).then(response => {
requestPromise = axios.request(requestOptions, { signal: requestController }).then(response => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's move this to a separate object - e.g. requestHandlers

@sfc-gh-pmotacki sfc-gh-pmotacki force-pushed the SNOW-1631790-Transport-Layer branch from adb13c4 to 6c27246 Compare December 5, 2024 10:20
Base automatically changed from SNOW-1631790-Transport-Layer to master December 5, 2024 11:45
@sfc-gh-fpawlowski sfc-gh-fpawlowski marked this pull request as ready for review December 16, 2024 23:37
@sfc-gh-fpawlowski sfc-gh-fpawlowski requested a review from a team as a code owner December 16, 2024 23:37
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.07%. Comparing base (0aaa740) to head (7a594c5).

Files with missing lines Patch % Lines
lib/services/sf.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #967      +/-   ##
==========================================
+ Coverage   88.92%   89.07%   +0.15%     
==========================================
  Files          72       72              
  Lines        6950     6955       +5     
==========================================
+ Hits         6180     6195      +15     
+ Misses        770      760      -10     

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

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.

1 participant