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
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.
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 `totalKreditsEarned` plus 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?
ah, ok. :+1:
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.contributionsConfirmed is 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.
We can just load more pages initially, in case `kredits.contributionsConfirmed` is 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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.