Contributor not showing up in toplist #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently I am not showing up in the contributor list though I have 7500 kredits earned (and a 298 kredits balance).
I currently do not have any unconfirmed contributions.
This line makes me wonder if contributors without unconfirmed contributions get lost: https://github.com/67P/kredits-web/blob/master/app/services/kredits.js#L49
Ah yes, that's a logical bug for sure!
I am wondering how will we do that when the pagination kicks in...
Load more pages if all contributions on page 1 are unconfirmed.
as far as I can read the code we calculate the balance from the contributions here? if we paginate the contributions we no longer have all the contributions to calculate the balance.
No, the balance is from your
totalKreditsEarnedplus the sum of kredits from unconfirmed contributions. See kredits service for the details.Edit: this line specifically: https://github.com/67P/kredits-web/blob/master/app/services/kredits.js#L58
ah, ok. 👍
so we should actually take all contributors from the service and group/count the unconfirmed contributions for those.
and always load all unconfirmed contributions?
We can just load more pages initially, in case
kredits.contributionsConfirmedis 0 after loading the first page. In any case, it's a luxury problem to have, because that would be a lot of contributions in the last 7 days (currently more than 200).The fix here could be adding the diff between contributors in the current output and all contributors to that array, and set the unconfirmed balances to 0 for those.