Joystream / Joystream/joystream
[Query Node] Add bag size info in the `StorageBag` entity
Nobody has claimed this yet.
- 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
- 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 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