kubo/core/coreiface
Marcin Rataj d37b92bfcd
fix: ipfs pin ls <cid> --names (#10970)
* fix: use CheckIfPinnedWithType for pin ls with names

updates to use CheckIfPinnedWithType method from https://github.com/ipfs/boxo/pull/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

* test: add CLI tests for pin ls with names

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)

* docs: add pin name improvements to v0.38 changelog

covers fix for ipfs pin ls --names with specific CIDs
and RPC pin name leak fix

* fix(rpc): support pin names in Add()

passes the Name field from PinAddSettings to the API request

adds test to verify pin names work via RPC

* test: add coverage for pin names functionality

- test special characters, unicode, long names
- test concurrent operations
- test persistence across daemon restarts
- test garbage collection preservation
- fix indirect pin test logic

* chore: boxo@main with boxo#1039

* fix(pin): improve pin ls robustness and validation

- 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
2025-09-19 03:17:45 +02:00
..
options feat(config): AutoConf with "auto" placeholders (#10883) 2025-08-20 05:59:11 +02:00
tests fix: ipfs pin ls <cid> --names (#10970) 2025-09-19 03:17:45 +02:00
block.go chore: clean migration 2023-11-29 12:29:59 +01:00
coreapi.go client/rpc!: remove deprecated DHT commands 2024-03-05 09:01:00 +01:00
dag.go gx-go uw 2019-02-09 01:23:13 +01:00
errors.go errors: introduce a 'not supported' error 2019-02-19 02:44:36 -08:00
idfmt.go chore: update go-libp2p to v0.23.4 2022-12-09 13:46:13 +01:00
key.go feat: ipfs key sign|verify (#10235) 2023-12-04 09:51:26 +01:00
name.go chore: clean migration 2023-11-29 12:29:59 +01:00
object.go core/commands!: remove deprecated object APIs (#10375) 2024-03-22 09:32:30 +01:00
pin.go refactor(cmds): do not return errors embedded in result type (#10527) 2024-12-03 20:15:33 +01:00
pubsub.go chore: clean migration 2023-11-29 12:29:59 +01:00
routing.go core: deprecate CoreAPI.Dht, introduce CoreAPI.Routing 2024-02-07 10:47:30 +01:00
swarm.go chore: update go-libp2p to v0.23.4 2022-12-09 13:46:13 +01:00
unixfs.go collection of typo fixes (#10647) 2024-12-29 21:27:41 -08:00
util.go Cleanup instances of manual resolver construction 2018-10-02 18:35:14 +02:00