Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

ipfs dag stat support #3283

Closed
AuHau opened this issue Sep 14, 2020 · 6 comments
Closed

ipfs dag stat support #3283

AuHau opened this issue Sep 14, 2020 · 6 comments

Comments

@AuHau
Copy link
Member

AuHau commented Sep 14, 2020

We will need support for the upcoming ipfs dag stat command that is coming to go-ipfs in 0.7.0.

Since we use only the client library, it would be sufficient to have it only part of the client library but I assume you require to have it implemented in the full implementation as well?

I might be able to put PR for this.

@AuHau AuHau added the need/triage Needs initial labeling and prioritization label Sep 14, 2020
@achingbrain achingbrain added kind/feature status/ready Ready to be worked and removed need/triage Needs initial labeling and prioritization labels Sep 14, 2020
@achingbrain
Copy link
Member

Yes please, a PR implementing this would be very helpful.

@AuHau
Copy link
Member Author

AuHau commented Sep 14, 2020

Ok, a question on how to approach this.

Upon initial investigation, there is nothing like traverse in js-ipld right? I guess this will have to be solved first basically with together with this issue: ipld/js-ipld#198

Then we can use the same approach as in the go-ipfs traversing the DAG and for each node count the size...

@obo20
Copy link
Contributor

obo20 commented Sep 29, 2020

Would it be possible to support the go-ipfs command even if js-ipfs hasn't implemented the command yet? We plan on utilizing this command for upcoming filecoin support so at least having support for the go-ipfs command while the js-ipfs side of things gets implemented would be super helpful.

@Faolain
Copy link

Faolain commented May 26, 2022

Hey @AuHau did you ever get a chance to work on this? Infura has now deprecated object.stat and indicates to instead use dag stat however it appears that this command does not exist within the javascript ipfs client (and our app relies on this functionality)

@AuHau
Copy link
Member Author

AuHau commented May 26, 2022

Nope 😞 We have just "polyfilled" it ourselves with directly calling the http api

@whizzzkid
Copy link

js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide.

Please feel to reopen with any comments before 2023-06-05. We will do a final pass on reopened issues afterward (see #4336).

This might already be resolved in Helia, if not please feel free to create an issue there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants