Joystream / Joystream/joystream

[Query Node] Add bag size info in the `StorageBag` entity

Open
#4,817 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

query-node
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Currently, QN does not have any field for querying the size of StorageBag, so getting this information requires querying the RPC endpoint directly.

Indexing the size information in the QN is specifically useful for Storage Lead, e.g. for filtering bags and moving them based on the disk availability among different nodes.

Contributor guide

No contributing guide indexed for this repository

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 by locating the Query Node StorageBag entity and the RPC endpoint that exposes bag size. Trace how StorageBag fields are indexed and determine the representation needed for size; done means the size is queryable through QN and the relevant behavior is covered by the project's existing tests.

Written by the indexing model from the issue text.

Assessment

Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.