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

Openwhisk proxy #147

Merged
merged 10 commits into from
Feb 22, 2019
Merged

Openwhisk proxy #147

merged 10 commits into from
Feb 22, 2019

Conversation

karanrk
Copy link
Contributor

@karanrk karanrk commented Feb 20, 2019

This Pull Request solves the problem of openwhisk client not able to make server requests if client is behind firewall. The client uses needle to package the parameters and options to make a HTTP request to the server, this PR uses a proxy-agent to pass through the firewall and connect to openwhisk sdk.
Files Edited : client.js and package.json

@codecov-io
Copy link

codecov-io commented Feb 20, 2019

Codecov Report

Merging #147 into master will decrease coverage by 0.24%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #147      +/-   ##
==========================================
- Coverage   99.23%   98.99%   -0.25%     
==========================================
  Files          14       14              
  Lines         393      397       +4     
==========================================
+ Hits          390      393       +3     
- Misses          3        4       +1
Impacted Files Coverage Δ
lib/client.js 97.61% <75%> (-1.14%) ⬇️

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 313fcec...04b1111. Read the comment docs.

Copy link
Member

@jthomas jthomas left a comment

Choose a reason for hiding this comment

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

This looks excellent @karanrk - thanks for doing this! This will be a great addition to the SDK.

Two small things so we can merge....

  • Add a unit test to the client module file to verify the new options.
  • Add documentation to the README after user-agent section to describe new feature.

@karanrk
Copy link
Contributor Author

karanrk commented Feb 22, 2019

@jthomas Let me know if any more changes are required from my side.

@jthomas jthomas merged commit c2de73b into apache:master Feb 22, 2019
@jthomas
Copy link
Member

jthomas commented Feb 22, 2019

Awesome work @karanrk - Thanks for doing this!

We'll need to publish a new version of the SDK now. I'll open an issue to do that.

@rabbah
Copy link
Member

rabbah commented Feb 22, 2019

Let’s make sure we do a proper Apache release 🙏🏼

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.

4 participants