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

updated default axios options #979

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

stevengill
Copy link
Member

Summary

Our axios instance in bolt-js won't work with some endpoints and server setups. This pr fixes this weird edgecase. We already have this fix in our web-api package. https://github.com/slackapi/node-slack-sdk/blob/main/packages/web-api/src/WebClient.ts#L138

Requirements (place an x in each [ ])

@stevengill stevengill added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:patch labels Jun 30, 2021
@stevengill stevengill requested review from seratch and misscoded June 30, 2021 21:01
src/App.ts Outdated
@@ -494,14 +499,14 @@ export default class App {
): void;
public shortcut<
Shortcut extends SlackShortcut = SlackShortcut,
Constraints extends ShortcutConstraints<Shortcut> = ShortcutConstraints<Shortcut>,
Copy link
Member Author

Choose a reason for hiding this comment

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

these are prettier changes I believe

Copy link
Member

@seratch seratch Jun 30, 2021

Choose a reason for hiding this comment

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

perhaps, these are the changes by your editor (VS Code). You can manually run npx prettier -w src

Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

Nice comment explaining why we want it to be false by default!

Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

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

Once the CI builds pass, the change looks good to me

src/App.ts Outdated
@@ -494,14 +499,14 @@ export default class App {
): void;
public shortcut<
Shortcut extends SlackShortcut = SlackShortcut,
Constraints extends ShortcutConstraints<Shortcut> = ShortcutConstraints<Shortcut>,
Copy link
Member

@seratch seratch Jun 30, 2021

Choose a reason for hiding this comment

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

perhaps, these are the changes by your editor (VS Code). You can manually run npx prettier -w src

@seratch seratch added this to the 3.5.0 milestone Jun 30, 2021
@stevengill stevengill modified the milestones: 3.5.0, 3.4.1 Jun 30, 2021
@codecov
Copy link

codecov bot commented Jul 1, 2021

Codecov Report

Merging #979 (029ee5f) into main (6ce89ae) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #979   +/-   ##
=======================================
  Coverage   66.25%   66.25%           
=======================================
  Files          13       13           
  Lines        1212     1212           
  Branches      357      357           
=======================================
  Hits          803      803           
  Misses        339      339           
  Partials       70       70           
Impacted Files Coverage Δ
src/App.ts 82.91% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ce89ae...029ee5f. Read the comment docs.

@stevengill stevengill merged commit 63cf2ab into slackapi:main Jul 1, 2021
@stevengill stevengill deleted the axios-proxy-fix branch July 5, 2021 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants