Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Review pallet + UI #7

Open
siman opened this issue Apr 27, 2020 · 0 comments
Open

Create a Review pallet + UI #7

siman opened this issue Apr 27, 2020 · 0 comments
Labels
bounty-L enhancement New feature or request

Comments

@siman
Copy link
Member

siman commented Apr 27, 2020

Any account should be able to review any other space on Subsocial.
We can reuse Posts with a new extension: Review

Software Desing

pub struct AccountInSpace {
    account: AccountId,
    space: Option<SpaceId>
}

pub enum PostExtension {
    // ... all prev. variants here
    SpaceReview(/* Recipient */ AccountInSpace)
}

decl_storage! {
    pub ReviewIdsByReviewer: double_map (AccountId, Option<SpaceId>) => Vec<PostId>;
    pub ReviewIdsByAccountRecipient: map AccountId => Vec<PostId>;
    pub ReviewIdsBySpaceRecipient: map SpaceId => Vec<PostId>;
}

Prehistory:

Jack Platts (W3F):

image
image
image

@siman siman added the enhancement New feature or request label Apr 27, 2020
@siman siman changed the title Review module: Substrate + UI Create a Review pallet + UI May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty-L enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants