ChainSafe / ChainSafe/ui-monorepo
Show reason while unable to unpin a CID
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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