ipld-explorer-components icon indicating copy to clipboard operation
ipld-explorer-components copied to clipboard

Feature request: More information about the hash lookup

Open andrasfuchs opened this issue 6 years ago • 13 comments

If I enter an IPFS hash into the search field on the Explore page and click on the Explore button I got the result rather quickly if I'm lucky, but more often than not I need to sit there looking at the (nice looking) pumping-rotating three dots.

image

It would be nice to have continuous updates about the search itself to have a feel of progress. I'm not sure what is possible to show, perhaps the number of peers we asked the hash from, the number of positive or negative feedback we had from them, or the time left until potential timeout, but something meaningful would be nice.

andrasfuchs avatar Aug 07 '19 13:08 andrasfuchs

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

welcome[bot] avatar Dec 01 '23 19:12 welcome[bot]

Hey @andrasfuchs! Thanks for the feedback. This is definitely a tricky one because we also don't have any information about the progress (as far as I know, will check). We also need to improve the loading screens on files page because of the lack of feedback.

I will investigate to see if we can get more info.

hacdias avatar Aug 08 '19 12:08 hacdias

@hacdias Thank you! Let me know if I can be any help with that.

andrasfuchs avatar Aug 08 '19 22:08 andrasfuchs

Hey @hacdias, did you have a chance to check if more info is available during the hash search?

andrasfuchs avatar Aug 16 '19 07:08 andrasfuchs

I recently made some updates to ipld-explorer-components and I believe it is possible to get more information of the progress, but not the classic 0-100%.

@vmx, what do you think about this?

hacdias avatar Aug 19 '19 13:08 hacdias

@hacdias Do you know what it makes it so slow? I'd expect that the slow thing is finding the hash/peers. So the changes to IPLD (I guess that is what you are referring to) won't help.

vmx avatar Aug 19 '19 13:08 vmx

@vmx as you said, I believe it's finding the hash/peer what makes this slow. And as far as I know, there's no way to track the progress of that... Or there is?

hacdias avatar Aug 19 '19 13:08 hacdias

@hacdias I don't know :)

vmx avatar Aug 19 '19 13:08 vmx

Is there a way to ask the go-ipfs team about this?

Do I understand it right, that we would need a continuous update about the hash/peer search progress from the daemon, preferably through the API (and probably using some streaming technology like Websockets/Socket.io)?

andrasfuchs avatar Aug 21 '19 09:08 andrasfuchs

@andrasfuchs if that's a feature you'd like to have, you can open a new feature request.

hacdias avatar Aug 21 '19 20:08 hacdias

Related prior art: visualizing the DHT lookup http://research.protocol.ai.ipns.localhost:8080/blog/2021/a-visualization-tool-for-the-ipfs-dht/

lidel avatar Jan 10 '22 14:01 lidel

The above link is probably this: https://research.protocol.ai/blog/2021/a-visualization-tool-for-the-ipfs-dht/ ;)

andrasfuchs avatar Jan 10 '22 14:01 andrasfuchs

FYI that this may not be as vital now that queries return so quickly, but for queries that ultimately time out, we may want to have some interactive display like the one mentioned at https://ipfs.io/ipfs/QmPXSyHHWqjyhrQjynzQAk4k912thZPcdBGMhsnMybcBRu/blog/2021/a-visualization-tool-for-the-ipfs-dht/

SgtPooki avatar Dec 01 '23 19:12 SgtPooki