Skip to content

Get weights of direct & indirect delegations #252

@jinjagit

Description

@jinjagit

We wish to show a user (of Decidim, in #56) the user's voting weight, which may increase (from a base of 1) due to delegations 'received'.

We also wish to show the user how much of this voting weight is due to direct delegations (delegations where the user has been chosen as a delegate), and how much is due to indirect delegations (voting weight delegated to someone earlier in a delegation chains that have been passed on to the user though subsequent delegation(s)).

Thus, we need absinthe queries / a query that will return these values for a given user.

This will also involve developing separate core functions to perform the needed db queries & calculations. Note that currently, update_vote_weight(vote) in lib/liquid_voting/voting_weight.ex does not differentiate between direct and indirect delegations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions