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

Include hidden users in stats #1950

Merged
merged 2 commits into from
Apr 10, 2019
Merged

Include hidden users in stats #1950

merged 2 commits into from
Apr 10, 2019

Conversation

javierm
Copy link

@javierm javierm commented Apr 4, 2019

References

Objectives

Include hidden users in stats. Sometimes users participate in a process and a while after that they are hidden. We were modifying the stats when that happened, not counting the users who were hidden anymore.

Does this PR need a Backport to CONSUL?

Yes, backport when we backport everything related to stats.

This way we can share the `participants` method between budget and poll
stats.
If users participated and were hidden after participating, we should
still count them in the participants stats.

In the tests, we set users' `hidden_at` attribute before they vote.
Although in real life they would vote first and then they would be
hidden, I've written the tests like this for the sake of simplicity.
@javierm javierm force-pushed the include_hidden_users_in_stats branch from fe4bd86 to c3e9b27 Compare April 5, 2019 16:53
@javierm javierm changed the base branch from stats_by_phase to stats April 5, 2019 16:53
@javierm javierm merged commit 974eef1 into stats Apr 10, 2019
@javierm javierm deleted the include_hidden_users_in_stats branch April 10, 2019 16:39
@javierm
Copy link
Author

javierm commented Apr 10, 2019

Travis failure was related to issue consul#3325 and not to this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants