Joystream / Joystream/substrate-versioned-store-module
Make vector properties updatable as vectors
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Currently, the only way to update values is to write a full new value through update_entity_properties, this undercuts the point of having native vectors, as one could easily just encode them if on-chain awareness was not important. So let's introduce property value level operations like clear, insert_at, remove_at for all vectors.
Notice that this requires the introduction of a nonce, or a similar mechanism, per property value to avoid race update conditions.
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 reading the update_entity_properties path and the existing vector property representation. Define the scope of clear, insert_at, and remove_at for all vectors, then determine how a per-property nonce or similar mechanism prevents race updates; done means these operations work consistently without requiring a full replacement value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100