ipfs / ipfs/ipfs-webui

Add UI to choose if import "from IPFS" should be lazy or full

Open
#1,825 1 comment 1 reaction 0 assignees View on GitHub
area/screen/files effort/days exp/intermediate kind/enhancement P3
Dominant language
JavaScript
Stars
1.6k
Forks
534
PR merge metrics
No merged PRs in 30d

Description

Right now MFS import "from IPFS" is done via `ipfs files cp` on CLI, `Import -> from IPFS` on Files screen in ipfs-webui, or by external tools like IPFS Companion.

In all cases, it is "lazy" so we don't fetch any new blocks. MFS protects blocks that are already in IPFS node cache, but to have full local copy one needs to add explicit local pin via "Set pinning" UI.

What we could improve here is to
- detect if imported path is fully available locally, and if not, give option to preload full copy (we could reuse "local pins" for facilitating this, or run `ipfs dag stat).
- I imagine this would happen in modal opened for `Import → From IPFS` – if some blocks are missing, we would show the total size, % and how much needs to be fetched to get full copy + a checkbox that would force preload
- add `#/import-content-path/ip[n|f]s/id/something` route that triggers `Import → From IPFS` UI on Files scrteen with pre-filled path
- this could then be integrated with IPFS Companion and other tools

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.