Opening a big HAMT-directory takes forever

未关闭
#1,997 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript, react
领域
frontend

调研方向

从 issue 中描述的 Files 屏幕行为开始,并查看链接的 Kubo issue 8455(关于流式传输和分页)。调查如何识别 HAMT 分片目录,以及当前如何加载目录项。完成的要求是针对大型目录达成一致的 UX 和实现范围,因为该 issue 目前提出的是替代方案,而不是已经确定的变更。

由索引模型根据 Issue 内容生成。

描述

area/screen/files effort/days exp/intermediate help wanted kind/bug P1 starmaps

/ipns/en.wikipedia-on-ipfs.org/wiki/ is an UnixFS HAMT-sharded directory with 20M of files.

Currently, ipfs-webui tries to open it as it would any other directory, and it ends up with spinner/loader animation looped forever:

2022-08-01_22-07

How to solve this? Need more analysis and UX design.

  • Files screen could have special handling for HAMT-directories
    • Minimal fix is to refuse to open HAMT-sharded dirs, informing user the directory is too big to be rendered, and suggest using CLI.
    • Proper fix, add better API to Kubo, allowing for streaming dir items with some sort of pagination (https://github.com/ipfs/kubo/issues/8455)
主要语言
JavaScript
星标
1.6k
派生
539
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ipfs/ipfs-webui 的其他 Issue

查看 ipfs/ipfs-webui 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。