Skip to content

Document behavior for indirect pins #29

Closed
@lidel

Description

@lidel

Context: Ability to tell CID is pinned indirectly is somnething that we need for Pinning Service integration within IPFS Desktop and WebUI (ipfs/ipfs-gui#91).

It is possible to check pin status of a specific CID:

GET /pins?cid=Qmfoo

Returned PinStatus object includes pin object for recursive pin and a status:

Status:
description: status a pin object can have at a pinning service
type: string
enum:
- pinning # pinning in progress, optional details can be returned in meta[pinning_status]
- pinned # pinned successfully
- failed # pining service was unable to finish pinning operation, optional details can be found in meta[fail_reason]
- unpinned # data is no longer pinned

Document behavior for indirect pins

Current spec does not specify what should be the response for a CID that is indirectly pinned (not pinned itself, but a member of a DAG that is recursively pinned).

Proposal

  • I don't think we should add indirect status.
  • Instead, asking for indirectly pinned CID should return Pin object that is responsible for keeping it around

Thoughts, concerns?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowdif/expertExtensive knowledge (implications, ramifications) requiredneed/community-inputNeeds input from the wider communitytopic/pin/status-checkIssues related to checking pin status

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions