feat: allow `files rm --force`
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react
- 領域
- frontend
調査の方向性
UnixFS コンテンツの検証箇所として issue が特定している src/files/modals/add-by-path-modal/AddByPathModal.js の 25~31 行付近から始めます。このモーダルを通じてファイルが追加またはインポートされる流れを追跡し、非 UnixFS コンテンツが MFS に入る前に拒否されればタスク完了と確認します。より広範な強制削除の挙動は、ここでは別途スコープに含めません。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
It's possible for users to get into a state where they have non-unixfs files in MFS, which will result in errors like Error: unrecognized node type in cache node.
When non-unixfs files are in MFS, removal of those files will fail in webui without error.
They also fail to be removed in the command line unless rm --force is used.
Describe the solution you'd like
When a user attempts to remove a file, we should provide an option to "force" remove the file.
Describe alternatives you've considered
We may also want to enable a fallback prompt to "force" remove files when a user attempts to remove a file and it fails.
Additional context
We should also prevent users from adding/importing non-unixfs files via the webui (I believe I added the files that got me into this state via the webui)
Code that needs updated
Related issues
- https://github.com/ipfs/ipfs-webui/issues/2158#issuecomment-1714359513
- https://ipshipyard.slack.com/archives/C04M8232QRW/p1706905541073949
- https://github.com/ipfs/kubo/issues/8144
- https://github.com/ipfs/kubo/issues/7999
- https://github.com/ipfs/kubo/issues/10331
### Tasks
- [ ] validate unixfs content at /src/files/modals/add-by-path-modal/AddByPathModal.js#L25-L31
- 主要言語
- JavaScript
- スター
- 1.6k
- フォーク
- 539
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ipfs/ipfs-webui のほかの issue
-
need/triage
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ipfs/ipfs-webui#2454 ·
-
need/triage
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
ipfs/ipfs-webui#2391 · コメント 3 件 ·
-
effort/days exp/intermediate help wanted P2 status/blocked
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ipfs/ipfs-webui#2380 · コメント 6 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
ipfs/ipfs-webui#2359 · コメント 3 件 · リアクション 1 件 ·
-
feat: create shortcut component that can be used on any page対応中かも @george-hub331 が 588 日前に担当しました。 オープンP3
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ipfs/ipfs-webui#2350 · コメント 2 件 ·
ipfs/ipfs-webui の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
freshframework/fresh#3920 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
enhancement follow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
chore cloudflare-workers consistency d1 difficulty: easy documentation dx enhancement good first issue help wanted hygiene javascript maintenance priority: P3 seo
難易度 1/5 1時間未満 初心者へのやさしさ 75/100