-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support optional labels for local pins #4586
Comments
We should just use mfs (modify MFS to do everything we need out of pins and then make the pin API use it). |
Hrm... ipfs-desktop could just start doing this now. cc @hacdias |
Hello! Like store a file on MFS with the references? 😄 That's a great idea! |
Specifically, add the files to MFS, not just create a file listing the CIDs (note, you'll still need to force IPFS to actually download the file as MFS won't do that). E.g., a directory |
Thanks for the points @Stebalien! It will be useful! |
@Stebalien I've got a question in the meanwhile: what's the advantage to save the files on MFS if we pin them through P.S.: Desktop isn't showing previous pins you've made, but it should though. |
It gives the file a name. I'd add them to MFS instead of pinning because MFS will give the file a name. Unfortunately, while MFS will prevent downloaded blocks from being garbage collected, it won't trigger a proactive fetch. You'll have to do that by, e.g., calling I'd eventually like to deprecate the pin interface and only use MFS (or, more likely, reimplement the pin interface to use MFS under the covers) because it can be used in a multi-application setting. |
I understand your points, but that way, users would start complaining that pins they made through the command line or any other way that uses the pinning service, wouldn't show up in Desktop unless I checked the pins and moved them to MFS. What I suggest, for now, is to pin them and save the correspondent tags to MFS. And when the pin interface gets deprecated (or changed to use MFS), I'd change it on Desktop. |
I'm self-assigning myself as I would like to eventually see this happen. It'll depend on bandwidth though. Additionally, |
When adding a pin, we should be able to add a label to it.
ipfs-desktop already does this, but stores the metadata itself. One approach would be to simply store a string tag in the pinset. Another slightly more interesting approach would be to move all pinning to be simply references within mfs, or alternatively mirror all labeled pins in mfs.
The text was updated successfully, but these errors were encountered: