Conversation
|
I take it this now returns the pins as separate objects instead of as One solution is to add a Thoughts @diasdavid? This change will affect JS as well. |
|
I like this proposal. Before merging, can we test it with js-ipfs-api and make sure that the X-Stream/X-Chunked headers are being well set and that we do get a proper ndjson stream? |
|
@diasdavid for sure. Before making this change we should also get buyin from all users of this api. which is a pretty strong task. It may also be worth identifying other places where a similar change could make sense to do, and maybe do them all at once |
Yes I would something similar. I have done similar things with other commands I believe. |
|
@diasdavid is there a js-ipfs-api test for this that we can easily run? |
|
@whyrusleeping running js-ipfs-api tests will run you through these -- https://github.com/ipfs/interface-ipfs-core/blob/master/js/src/pin.js -- which has a test for pin ls with recursive type. |
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
|
So I've tried to move this, but I'm not that familiar with cmds lib:
|
Add a --stream flag to stream the results instead of accumulating the final result in memory. This is a rework of ipfs#5005
|
New version in #6493. |
Add a --stream flag to stream the results instead of accumulating the final result in memory. This is a rework of #5005
This is api breaking change.
When doing
pin lson large repos nothing will happen until all pins have been gathered, with this we stream them as we traverse the recursive pin children