Joystream / Joystream/substrate-versioned-store-module

Make vector properties updatable as vectors

Open
#13 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.