Joystream / Joystream/joystream

CLI - missing functionality (olympia)

Open
#2,254 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Olympia-related

Functionality available in Olympia runtime but not part of Pioneer 2 wireframes (for now I'm excluding content directory due to pending Sumer rework)

Forum working group:

  • Creating categories/subcategories by lead (create_cateogry)
  • Assiging moderators to categories by lead (update_category_membership_of_moderator)
  • Updating category archival status by lead / moderator (update_category_archival_status)
  • Updating thread archival status by lead / moderator (update_thread_archival_status)
  • Deleting categories by lead / moderator (delete_category)
  • Deleting threads by lead / moderator (delete_thread)
  • Moving threads to different category by lead / moderator (move_thread_to_category)
  • Moderating (slashing) threads by lead / moderator (moderate_thread)
  • Moderating (removing) posts by lead / moderator (moderate_post)
  • Setting sticked threads by lead / moderator (set_stickied_threads)

Members/accounts:

  • Update member root / role account (update_accounts)
  • Setup staking accounts (add_staking_account_candidate, confirm_staking_account) This is already partially implemented in CLI for the purpose of working-groups:apply. I couldn't find related wireframes, but it would also be required ie. when creating a new proposal (which is part of Pioneer 2)
  • Buying membership (this is part of Pioneer, but would be very useful to have it in CLI too)
  • Setting account memo

Validation/nomination
It's possible to this via https://polkadot.js.org/apps by injecting Joystream json types and connecting to a Joystream node, but it can be also included as part of the CLI:

  • Setting up a validator
  • Setting up a nominator
  • Exploring active validators / nominators
  • Claiming rewards

Membership working group:

  • Updating verification status of members by workers (update_profile_verification)

Working groups (general):

  • Setting group status text (set_status_text)

Blogs

I didn't find those in wireframes, but I'm not sure if this should be part of the CLI

Query node integration

Query node integration would be required in order to, for example, display member handles, opening/application metadata etc.

  • setting query node endpoint and initializing Apollo client
  • querying and displaying membership handles
Other CLI nice-to-haves
  • automated testing
  • improving scriptability
  • perhaps some baisc interface for executing sudo actions (can be just something like api:tx with --sudo flag)

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

Narrow the list to one unchecked CLI capability, then inspect the existing CLI commands and the corresponding Olympia runtime operation or Pioneer 2 wireframe. Confirm the selected operation is available through the CLI, including any stated query node integration or automated testing needs, and mark only that item complete when it works.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.