Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix reputation count on profile page #1606

Merged
merged 4 commits into from
Dec 14, 2023
Merged

Conversation

clangenb
Copy link
Member

@clangenb clangenb commented Dec 14, 2023

There was an error in how we computed the total reputation of an account, we included all kinds of reputation, which means that we accidentally included UnverifiedReputable, which is wrong. We also know now that #1605 is not due to some lingering reputation, but simply wrong counting. Closes #1605. Tested locally that it works as intended.

We should introduce check the actual reputation count in our integration tests as already described in #1599.

Comment on lines -166 to -168
trailing: store.encointer.account?.reputations != null
? Text(store.encointer.account?.reputations.length.toString() ?? 0.toString())
: Text(l10n.fetchingReputations)),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fetching reputation could never be reached anyhow, so I removed it.

@clangenb clangenb added A1-bugfix PR fixes a bug B1-medium Elevates a release containing this PR to "medium priority" C0-breaksnothing PR does not introduce any breaking changes labels Dec 14, 2023
@clangenb clangenb merged commit d1e37ec into master Dec 14, 2023
14 of 17 checks passed
@clangenb clangenb deleted the cl/fix-reputation-count branch December 14, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A1-bugfix PR fixes a bug B1-medium Elevates a release containing this PR to "medium priority" C0-breaksnothing PR does not introduce any breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong reputation in profile view
1 participant