docs(core): pull source URL comments still say /piece/{pieceCid}

Open Beginner friendly
#1,198 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
documentation

Research direction

Read packages/synapse-core/src/sp/pull-pieces.ts at the two cited comments and confirm the accepted source URL against Curio’s /pdp/piece/pull behavior or createPieceUrlPDP. Update both comments to describe the canonical URL. Done when both comments match the accepted route and no longer describe /piece/{pieceCid} as the pull source.

Written by the indexing model from the issue text.

Description

#1161 moved createPieceUrlPDP to Curio's canonical /public/{cid} route, and /piece/{cid} is now only a 301 redirect in Curio (retrieval.go). Two JSDoc comments on the pull source URL still say the old path:

Change both to /public/{pieceCid}, or point at createPieceUrlPDP, after confirming what Curio's /pdp/piece/pull accepts as a source URL. No code in this repository builds /piece/{cid} any more. The /piece wording in docs/src/content/docs/core-concepts/retrieval.mdx (lines 28 and 90) names FilBeam piece retrieval, not the Curio route, and can stay.


Generated by Claude Code

Dominant language
TypeScript
Stars
27
Forks
36
Avg merge
2d 4h
Merged PRs (30d)
65

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FilOzone/synapse-sdk

All issues in FilOzone/synapse-sdk

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.