Skip to content

Comments

fix: ipfs pin ls <cid> --names#10970

Merged
lidel merged 8 commits intomasterfrom
feat/pin-names-with-boxo
Sep 19, 2025
Merged

fix: ipfs pin ls <cid> --names#10970
lidel merged 8 commits intomasterfrom
feat/pin-names-with-boxo

Conversation

@lidel
Copy link
Member

@lidel lidel commented Sep 18, 2025

Updates to use CheckIfPinnedWithType method from ipfs/boxo#1035, enabling efficient pin name retrieval for specific CID(s) via ipfs pin ls <cid> --names (rather having to list all and then filtering in post)

TODO

updates to use CheckIfPinnedWithType method from ipfs/boxo#1035,
enabling efficient pin name retrieval for 'ipfs pin ls <cid> --names'

- uses new CheckIfPinnedWithType from boxo for type-specific pin checks
- pin names are now returned when listing specific CIDs with --names flag
@lidel lidel changed the title fix: use CheckIfPinnedWithType for pin ls with names fix: ipfs pin ls <cid> --names Sep 18, 2025
tests cover:
- pin ls with specific CIDs returning names
- pin ls without CID listing all pins with names
- pin ls with --type and --names combinations
- JSON output with and without names
- pin update preserving names
- error cases (invalid CID, unpinned CID)
covers fix for ipfs pin ls --names with specific CIDs
and RPC pin name leak fix
passes the Name field from PinAddSettings to the API request

adds test to verify pin names work via RPC
…062dad3e

resolved conflicts in go.mod files to preserve the specific boxo version
from the feature branch while accepting other updates from master
- test special characters, unicode, long names
- test concurrent operations
- test persistence across daemon restarts
- test garbage collection preservation
- fix indirect pin test logic
@lidel lidel force-pushed the feat/pin-names-with-boxo branch from 99610ae to b207869 Compare September 18, 2025 23:04
- add nil check for n.Pinning with early fail-fast validation
- use pin.StringToMode() for consistent type validation
- add edge case tests for invalid types and unpinned CIDs
@lidel lidel marked this pull request as ready for review September 19, 2025 01:16
@lidel lidel requested a review from a team as a code owner September 19, 2025 01:16
@lidel
Copy link
Member Author

lidel commented Sep 19, 2025

All green, included boxo@main with ipfs/boxo#1039, merging to unblock ipfs/js-kubo-rpc-client#343

@lidel lidel merged commit d37b92b into master Sep 19, 2025
16 checks passed
@lidel lidel deleted the feat/pin-names-with-boxo branch September 19, 2025 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant