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

FEATURE: Add a fallback to auto-assign #528

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Conversation

Flink
Copy link
Contributor

@Flink Flink commented Nov 15, 2023

Currently, when the auto-assign logic can’t find a user to assign, it will fail saying there was no one to assign. The current logic is this one:

  • Don’t pick anyone who’s been picked in the last 180 days
  • If no one has been found, then try the same thing but only for the last 14 days. While this is working relatively well for large enough groups, it doesn’t work at all with very small groups (like 2 people) and it creates unnecessary noise.

This patch addresses this issue by adding a fallback to the current logic. Now, if the two first rules fail, instead of saying that no one was assigned, we assign the least recently assigned person. This way, the logic will continue to work with large groups but will also work nicely with small groups.

@Flink Flink self-assigned this Nov 15, 2023
@Flink Flink force-pushed the loic-fix-random-assign branch 2 times, most recently from 70ff57b to 2e2d2d0 Compare November 20, 2023 16:14
Currently, when the auto-assign logic can’t find a user to assign, it
will fail saying there was no one to assign. The current logic is this
one:
- Don’t pick anyone who’s been picked in the last 180 days
- If no one has been found, then try the same thing but only for the
  last 14 days.
While this is working relatively well for large enough groups, it
doesn’t work at all with very small groups (like 2 people) and it
creates unnecessary noise.

This patch addresses this issue by adding a fallback to the current
logic. Now, if the two first rules fail, instead of saying that no one
was assigned, we assign the least recently assigned person. This way,
the logic will continue to work with large groups but will also work
nicely with small groups.
@Flink Flink marked this pull request as ready for review November 20, 2023 16:51
@Flink Flink merged commit fbd1fa3 into main Nov 22, 2023
5 checks passed
@Flink Flink deleted the loic-fix-random-assign branch November 22, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants