Skip to content
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

Piece Doctor web UI: Add page to list payload cids in a piece #1717

Closed
dirkmc opened this issue Sep 26, 2023 · 0 comments · Fixed by #1722
Closed

Piece Doctor web UI: Add page to list payload cids in a piece #1717

dirkmc opened this issue Sep 26, 2023 · 0 comments · Fixed by #1722
Assignees

Comments

@dirkmc
Copy link
Contributor

dirkmc commented Sep 26, 2023

On the Piece Doctor page in the web UI, we should add a link called "Payload CIDs" next to the Piece CID that opens a page listing all payload CIDs in the piece. It should show a table with three columns:

  1. The payload cid as a string "bafy..."
  2. The corresponding multihash in hexadecimal format.
  3. A link to download the block (same as the "Download block" link on the main Piece Doctor page)

To make it easier to search for a particular cid, there should be no pagination: the whole table should display on one page.

The resolver can call PieceDirectory.GetIterableIndex() to get the list of multihashes, and convert each to a cid with

cid := cid.NewCidV1(cid.Raw, m)
Screenshot 2023-09-26 at 12 07 12 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants