Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Get weights of direct & indirect delegations

オープン
#252 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
elixir, graphql

調査の方向性

lib/liquid_voting/voting_weight.ex から始めて update_vote_weight(vote) を更新し、次に委任データと Absinthe クエリのエントリポイントを確認します。直接委任の重みと間接委任の重みを分離する、データベースのコアクエリと計算を定義し、ユーザーについて合計、直接、間接の値を公開します。#56 で説明されているユーザー向けの要件を値が満たせば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Elixir
スター
17
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

liquidvotingio/api のほかの issue

liquidvotingio/api の issue をすべて見る

似ている issue

Elixir の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。