-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ipfs dag stat
improvements
#3955
Comments
Ooooh, yeah. |
Would it be possible to also include what type the object is (hash/list/integer/string etc)? |
@mattseh hrm... you mean the cbor type? That might be possible, but it would be awkward to apply that to other 'dag' types |
I mean knowing the difference between these:
So list vs hash. I don't have a solid usecase for it, but it might be more elegant than having to pull the object then do |
@whyrusleeping this sounds like a fairly easy thing for me to do. Let me know how deep you want to go (for example should I implement @mattseh suggestion) . Should we also have a mode that prints as much as possible based on the multi-hash alone, so the node doesn't have to be downloaded the node. |
@whyrusleeping, so what exactly will be the difference between it sounds like the |
@kevina we don't want to add new functionality to the object subcommands. We are working on deprecating them in favor of the dag subcommands, the primary reason here is that making the object commands support all the dag stuff would require changing the apis. So for now, making |
@whyrusleeping by bad, I misinterpreted the description of the |
@kevina still interested in working on this one? |
@whyrusleeping Sure, do you want me to make it a priority? |
So the reason "object stat" is not returning anything meaningful for a "cbor" object is that it calls the type Node interface {
...
// TODO: not sure if stat deserves to stay
Stat() (*NodeStat, error)
...
} Do we want the new command Also (of possibly unrelated note) there is a new utility
|
Hrm... we're planning on removing the Also, on the cid-fmt tool, I wrote a similar thing a while back here: https://github.com/whyrusleeping/elcid |
Yet another case where I wrote a response and then closed the window... I agree with @whyrusleeping that we should remove Things we could consider including.
However, these are mostly gc/repo/pin related things, not properties of the node itself. |
@Stebalien most of that information is currently not stored anywhere so will need to be computed, which is currently a very expensive operation. It may be useful for a Also what is the different from (2) and (3) does by (3) do you mean the number of children we have currently on the node? |
I know, I'm just throwing out suggestions for information that might be useful (assuming we cached it somewhere).
Yes. Basically, I couldn't think of any direct IPLD specific stats that might be useful that aren't already supplied by Really, we could just make |
Note that Not closing this at the moment as many of the suggestions from #3955 (comment) are still valid. They could probably be split into a new issue and then this one closed. |
Version information:
go-ipfs version: 0.4.9-
Repo version: 5
System version: amd64/darwin
Golang version: go1.8.1
Type:
Enhancement
Severity:
Low
Description:
ipfs object stat
doesn't seem to work on dag objects:I was interested on getting the individual block size, and total dag size, is a
dag stat
command planned?Thanks :)
The text was updated successfully, but these errors were encountered: