-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat: fast directory listings with DAG Size column #9481
Conversation
8b9ff9a
to
233ff43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c58e7b8
to
1a654df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
d280dc3
to
845ebef
Compare
ed39e37
to
f3f0ec7
Compare
We've just introduced JSON and CBOR support, and need additional work to figure put how to communicate these options in a way that leverages verifiable CAR over untrusted TARs. Removing them for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, merging for inclusion in Kubo 0.18.0-rc1 (so the sizes here match Tsize
from ?format=json
)
- Removed "Preview as" and "Download as" buttons as discussed today – we don't want to announce these features widely yet, probably need proper designer to prototype / refresh dir listing before we add them.
- Confirmed that the removed optional field does not crash clients that had it defined manually
- Switched to released dependency
- Added release notes
Closes #9058.
Checklist
Use.Dag.Get
instead of.Unixfs.Ls
to fetch the directories (take into consideration sharded)Unixfs.Ls
withUseCumulativeSize
to use the DAG Size, but skip remaining calculations. See comment.Gateway.FastDirIndexThreshold
option as it is no longer relevantAdd "Preview as" and "Download as" buttons to the listing header with multiple formats.descoped for nowLoads
bafybeiggvykl7skb2ndlmacg2k5modvudocffxjesexlod2pfvg5yhwrqm
(10k items) extremely fast, and with size!