ChainSafe / ChainSafe/ui-monorepo

Show reason while unable to unpin a CID

Open
#2,260 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug 🐛
Dominant language
TypeScript
Stars
50
Forks
17
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
There is a certain scenario where user cannot unpin a cid even if the status is `pinned`.
From the `api` the error message is being returned is `this cid is being pinned to another ipfs node, cannot update until the operation is finished` with HTTP status code as `Forbidden`.
So, from the UI when user click on unpin, nothing happen until you open the inspection on browser.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to the [storage](https://app.storage.chainsafe.io/)
2. Pin a CID
3. Wait until the status is pinned.
4. Open the inspect element and try to unpin the cide

**Expected behavior**
A proper message should be shown on the UI that is being returned from the API

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the storage UI unpin flow described in the reproduction steps and reproduce the failed unpin while watching the API response. Trace where the Forbidden response is handled; done means the UI displays the returned reason instead of appearing to do nothing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.