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 order of participants in the statistics page #608

Merged
merged 4 commits into from May 4, 2020

Conversation

zorun
Copy link
Collaborator

@zorun zorun commented May 4, 2020

This fixes #607 and add a test case for this bug.

It also renames participants in test cases to avoid alphabetical ordering.

Inserting participants in alphabetical order is a special case, because ordering by ID will be the same as ordering by name. This is a bad idea in test cases, as #607 has shown.

Baptiste Jonglez added 4 commits May 4, 2020 18:27
Inserting participants in their alphabetical is a special case (ordering
by ID will be the same as ordering by name).  This is a bad idea for a
test because it can miss some bugs.
@Glandos Glandos merged commit 795efd6 into spiral-project:master May 4, 2020
@Glandos
Copy link
Member

Glandos commented May 4, 2020

Thanks for that work. The fix was easy, tests were awfully hard. I hope we'll have time to work on #501 some day…

TomRoussel pushed a commit to TomRoussel/ihatemoney that referenced this pull request Mar 2, 2024
This fixes spiral-project#607 and add a test case for this bug.

It also renames participants in test cases to avoid alphabetical ordering.

Inserting participants in alphabetical order is a special case, because ordering by ID will be the same as ordering by name. This is a bad idea in test cases, as spiral-project#607 has shown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Statistics are mixed up between participants
2 participants