This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Pin LS: Direct pins should override indirect pins #2518
Labels
good first issue
Good issue for new contributors
kind/enhancement
A net-new feature or improvement to an existing feature
kind/resolved-in-helia
We have 3 pin types
recursive
,direct
,indirect
. In my eyes the type associated with a pin should follow the priority order recursive/direct then indirect since it seems reasonable that a user should be able to pass the results ofpin ls
filtered by the typesrecursive
anddirect
intopin rm
and clear their repo.Currently js-ipfs prioritizes
indirect > direct
andrecusive > indirect
js-ipfs/src/core/components/pin.js
Lines 226 to 227 in eefb10f
js-ipfs/src/core/components/pin/pin-manager.js
Line 95 in eefb10f
go-ipfs is currently a bit broken ipfs/kubo#6527, but used to follow (and in the CoreAPI does follow) the same pattern as js-ipfs. In addition to fixing #6527 we're considering moving to
recursive/direct > indirect
.Is there a reason why this decision was made, or any objections to having everyone move to
recursive/direct > indirect
?@Stebalien @daviddias @achingbrain
The text was updated successfully, but these errors were encountered: