paritytech / paritytech/browse

Un-recommend stalls on products with large attestation history

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3
Forks
3
Avg merge
11h 15m
Merged PRs (30d)
8

Description

Problem

In the live browse.dot app, un-recommending a frequently recommended product can remain busy indefinitely. Epoca source-bound packaged-app validation reproduced this after a successful recommendation: run 30854620557 timed out after 900 seconds while the product performed recipient-scoped light-client reads.

revokeLabel enumerates the recipient’s recommendations and launches one getAttestationById contract query per record concurrently. The reproduced target currently has 15 matching records while the current product account has one. A direct chain measurement confirms the attester-scoped lookup finds the live record (id=151, schema=5) through one batched record query in about 2.2 seconds over RPC. The recipient-first fan-out overwhelms the in-app light client even at this modest global count.

Expected

Revocation should look up the current product account’s live attestation with bounded, batched reads and complete under the existing end-to-end timeout.

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 at revokeLabel and inspect how it enumerates recommendations and launches getAttestationById queries. Reproduce the large-attestation case with the mentioned packaged-app validation or RPC measurement, then verify that revocation uses bounded, batched reads for the current product account and completes within the existing end-to-end timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.