-
Notifications
You must be signed in to change notification settings - Fork 59
disallow votes on issues created after the current pay period #682
Comments
I had the same conflict sometime ago. It would be good if it is verified so that in future times, issues created for a particular month only get reward for that month. |
An idea from a brainstorming session today with @barneycinnamon , @ICA3DaR5 , @allancto was to use trust metric weight to decide which votes to postpone for review. So for each of the 10 issues in question, the weight of the reward voters along with the currently scheduled reward follows. In a separate comment, I'll make a suggestion based on these data:
Queryselect iv.pay_period
, concat('#', iv.issue_num) issue_num
, coalesce(rtot.reward_usd, 0) reward_usd
, tv.voters, tv.weight
from (
select distinct pay_period, issue_num from (
select pay_period, issue_num from budget_vote
where issue_num >= 644 and pay_period < '2018-05-01'
union
select pay_period, issue_num from reward_vote
where issue_num >= 644 and pay_period < '2018-05-01'
) av
) iv
left join (
select pay_period, issue_num, sum(reward_usd) reward_usd
from reward
group by pay_period, issue_num
) rtot on rtot.pay_period = iv.pay_period and rtot.issue_num = iv.issue_num
left join (
select pay_period, issue_num
, group_concat(sig separator ', ') voters
, coalesce(sum(weight), 0) weight
from (
select distinct pay_period, issue_num, sig, weight
from reward_vote rv
left join user_flair uf on uf.login = rv.voter
) rvwt
group by pay_period, issue_num
) tv on tv.pay_period = iv.pay_period and tv.issue_num = iv.issue_num
order by issue_num
; |
I moved all but #648 and #657, which had >10 weight each.
Then I turned those two triggers back on (see https://github.com/dckc/rchain-dbr/blob/master/dbr_triggers.sql ). |
@lapin7 When reviewing invoices, you can check to confirm that the people listed below didn't accidentally include in their April invoice rewards associated with the issues beside their usernames in the table here. I believe the query that generated these was based on issue votes, so it is possible some of these people voted on rewards for associated issues but didn't receive rewards themselves (no problem) and possible that some people received rewards for these affected issues but did not vote on them (problem).
|
No, it just means votes for #649 belong in the May pay period, not April. |
Tsk Dan all good!
|
@Valentine-Mario |
Database triggers enforce this constraint now. fixed in dckc/rchain-dbr@cac6173 |
@lapin7 @jimscarver @TrenchFloat One vote shy for budget and one vote shy for rewards. If any of the guides want to jump in and nudge it over, that would be nice. |
@barneycinnamon Done, this issue is now 'provisioned'. That's a term the Marketing guides use, meaning the budget and rewards are not provisional anymore. So @lapin7 @jimscarver @TrenchFloat don't need to take action. |
#653 was created May 2, but some budget and rewards are scheduled to apply in the April pay period, since votes thru May 8 apply to the April pay period. I suspect it was a mistake. In any case, it's causing problems for the participants to work out the budget and rewards together.
Let's tweak the app to prevent this unfortunate case from happening again.
I'm inclined to apply this retroactively, but reviewing the affected issues shows some where the work was clearly done in April...
Benefit to RChain Membership:
Clarify budget and reward negotiations and make sure there is plenty of time.
suggested budget: $300 (including coordinating with those affected)
cc @kitblake @lapin7
The text was updated successfully, but these errors were encountered: