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

ipfs get and ipfs cat progress information #6083

Open
remmerw opened this issue Mar 15, 2019 · 2 comments
Open

ipfs get and ipfs cat progress information #6083

remmerw opened this issue Mar 15, 2019 · 2 comments
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature P3 Low: Not priority right now

Comments

@remmerw
Copy link

remmerw commented Mar 15, 2019

Version information:

All versions

Type:

  • "feature": Json output of progress information for the commands ipfs get / ipfs cat

Description:

Would be nice when progress information which are reported by the commands ipfs get and ipfs cat are also be encoded in json (like other commands ipfs pubsub sub "--enc:json".
Background: Then it is easier to parse the progress. Now it is almost impossible.

@Stebalien Stebalien added kind/enhancement A net-new feature or improvement to an existing feature help wanted Seeking public contribution on this issue exp/expert Having worked on the specific codebase is important P3 Low: Not priority right now labels Mar 15, 2019
@Stebalien
Copy link
Member

The go-ipfs daemon doesn't actually return this information. However, we could fabricate it in the PostRun function when asked to encode to JSON.

@momack2 momack2 added this to Inbox in ipfs/go-ipfs May 9, 2019
@andrasfuchs
Copy link

Additionally to the original request, it would be great to have continuous feedback during the search phase of the get / cat commands. This information then could be shown in IPFS Desktop as suggested here: https://github.com/ipfs-shipyard/ipfs-webui/issues/1088

If I try to get a random hash (like ipfs get QmWXShtJXt6Mw3FH7hVCQvR56xPcaEtSj4YFSGjp2QxA4o) , ipfs seemingly hangs for minutes. It would be nice to have some details displayed about the search progress.

I don't know the inner processes of get/cat, but I guess the daemon asks other nodes to look for the hash and they report it back if they found something. Could we display the amount of nodes working on the search at any given moment and their reported success or failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature P3 Low: Not priority right now
Projects
No open projects
Development

No branches or pull requests

3 participants