Skip to content

Top helpers based on message length #446

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

Merged
merged 1 commit into from
May 29, 2022

Conversation

Zabuzard
Copy link
Member

@Zabuzard Zabuzard commented May 27, 2022

Overview

Since determining top helpers on message count is indeed quite unfair to helpers who prefer to type out their messages instead of posting multiple mini messages, this changes the metric to measure and determine them based on the length of the messages.

Not perfect, but gets the job done and is fairer.

example

Existing data stays untouched. We could revert back at any time. Also, for previous months, the new code can still output the same results as before (by defaulting to message length 1 for migrated content).

When to release

Note that this should ideally be released near the end or start of a month, to not mess up the metric for that month. It should definitely not be released in the middle of a month. Alternatively, it can of course still be manually retrieved from the database with the old query.

@Zabuzard Zabuzard added enhance command Modify or improve an existing command or group of commands of the bot priority: normal labels May 27, 2022
@Zabuzard Zabuzard added this to the Improvement phase 1 milestone May 27, 2022
@Zabuzard Zabuzard requested a review from a team as a code owner May 27, 2022 17:52
@Zabuzard Zabuzard self-assigned this May 27, 2022
@Zabuzard Zabuzard requested a review from a team as a code owner May 27, 2022 17:52
migration script adding the new column (default 1), existing data is untouched

Default count to 1 for backwards support

using count 1 ensures that the new system naturally outputs the same as the old system for old months (since all messages then just count 1, as they did before)
@Zabuzard Zabuzard force-pushed the feature/message_length_based_top_helpers branch from 490202a to 9634484 Compare May 27, 2022 17:59
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Zabuzard Zabuzard merged commit 969849b into develop May 29, 2022
@Zabuzard Zabuzard deleted the feature/message_length_based_top_helpers branch May 29, 2022 13:24
@Zabuzard
Copy link
Member Author

Merging this early since its low risk and I want to have it deployed at 1st of June (see PR description).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance command Modify or improve an existing command or group of commands of the bot priority: normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant