Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

feat: return protocol from getEndpointConfig #935

Merged
merged 3 commits into from
Jan 28, 2019

Conversation

olizilla
Copy link
Contributor

The protocol is used to construct the request, and it's useful to be able to check it has been set correctly. This PR adds it to the util.getEndpointConfig() return value.

License: MIT
Signed-off-by: Oli Evans oli@tableflip.io

The protocol is used to construct the request, and it's useful to
be able to check it has been set correctly, so we add it here to
he the util.getEndpointConfig() return value.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@ghost ghost assigned olizilla Jan 25, 2019
@ghost ghost added the in progress label Jan 25, 2019
olizilla added a commit to ipfs-inactive/ipfs-redux-bundle that referenced this pull request Jan 25, 2019
Depends on
- multiformats/js-uri-to-multiaddr#3
- ipfs-inactive/js-ipfs-http-client#935

Fixes ipfs/ipfs-webui#925

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
olizilla added a commit that referenced this pull request Jan 28, 2019
- ensure explicitly passed parameters are used; dont pass in the
default values and assume the are being set correctly

TODO: needs #935
to expose the protocol and api-path properties

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@olizilla
Copy link
Contributor Author

I have added api-path to the getEnpointConfig() return value as we can make use of it in the test/constructor.spec to check that the various parameter passing styles are all handled correctly.

See: #934 (comment)

@ghost ghost assigned alanshaw Jan 28, 2019
@alanshaw
Copy link
Contributor

LGTM - macos failures seem unrelated

@alanshaw alanshaw merged commit 12ddaa3 into master Jan 28, 2019
@alanshaw alanshaw deleted the add-protocol-to-endpoint-config branch January 28, 2019 14:09
@ghost ghost removed the in progress label Jan 28, 2019
olizilla added a commit to ipfs-inactive/ipfs-redux-bundle that referenced this pull request Feb 18, 2019
You have to explicitly pass the protocol to the ipfs-http-client constructor

Depends on
- multiformats/js-uri-to-multiaddr#3
- ipfs-inactive/js-ipfs-http-client#935

Fixes ipfs/ipfs-webui#925


License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants