Skip to content

Expose pending piece state in PDP API #808

@SgtPooki

Description

@SgtPooki

Checklist

  • This is not a question or a support request. If you have any Curio related questions, please ask in the discussion forum.
  • This is not a new feature request. If it is, please file a feature request instead.
  • I have searched on the issue tracker and the discussion forum, and there is no existing related issue or discussion.
  • I am running the Latest release, or the most recent RC(release candidate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.

Curio component

  • PoRep Pipeline
  • Snap Deals
  • Market
  • IPNI provider
  • Curio UI
  • Other

Improvement Suggestion

Curio Component: PDP / piece API / pdp_dataset_piece DB

Right now Curio doesn’t expose that a piece has been “scheduled for removal” after we remove it. The piece still looks active until provider/chain state converges. That means filecoin-pin and synapse-sdk can’t reliably show the operation as in-progress unless Curio exposes a simple indicator (e.g. pending_removal/pending_addition or a removal_job_id and table with that info). A small schema change on pdp_dataset_piece should be enough.

this showed up as a UX problem in filecoin-pin when implementing the rm --piece <pieceCid> --data-set <id> CLI command

maybe related #746

related filecoin-project/filecoin-pin#253

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions