This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
fix: pin.ls ignored opts when hash was present #375
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This works against
|
@lidel can we get this fixed up please? 🙏 |
Adds tests to guard against issue described in ipfs-inactive/js-ipfs-http-client#875 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
lidel
added a commit
to lidel/js-ipfs
that referenced
this pull request
Jul 9, 2019
Old version returned indirect pin when `pin ls -t direct <path>` was executed. This fixes filtering and adds necessary tests. It also tweaks error handling to match behavior from go-ipfs/js-ipfs-http-client and pass interop tests from ipfs-inactive/interface-js-ipfs-core#375 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
@alanshaw aye! rebased & updated this PR. The latest js-ipfs-http-client with go-ipfs will pass it out of the box, js-ipfs will pass when fixes from ipfs/js-ipfs#2228 are merged ✨ |
alanshaw
approved these changes
Jul 16, 2019
alanshaw
pushed a commit
to ipfs/js-ipfs
that referenced
this pull request
Jul 17, 2019
### Summary This PR fixes filtering, improves interop with go-ipfs and adds missing tests for `pin ls` ### Details Old version returned indirect pin when `pin ls -t direct <path>` was executed. This PR also tweaks error handling to match behavior from go-ipfs/js-ipfs-http-client and pass improved interop tests added in ipfs-inactive/interface-js-ipfs-core#375 I've added some inline comments, hope it helps in review. ### Related - Improved `pin ls` interop tests: ipfs-inactive/interface-js-ipfs-core#375 (this PR is not blocked by interop tests, old ones were less strict) - We need this fix for embedded js-ipfs in Brave 🦁 ipfs/ipfs-companion#716 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds more detailed tests for
pin.ls
, including one that guards against issue described in ipfs-inactive/js-ipfs-http-client#875