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

Implement random assignment #47

Open
FedoseevAlex opened this issue Oct 22, 2020 · 0 comments
Open

Implement random assignment #47

FedoseevAlex opened this issue Oct 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@FedoseevAlex
Copy link
Owner

Sometimes people can't decide a date for duty. Or they don't really care.
For this kind of users random assignment should be implemented.
Command form proposed as: /assign random or any prefix of the word random. (so /assign r should work too).
This "randomness" should be limited for two weeks ahead from command execution moment.
Let's consider next example:
Today is Tuesday and user0 want to assign random
Schedule:

week weekday user
1 Mon user1
1 Tue user2
1 Wed free
1 Thu free
1 Fri user3
2 Mon user4
2 Tue free
2 Wed user1
2 Thu user2
2 Fri user0

Free days on first week should be used first. After that free days on next week should be used.

@FedoseevAlex FedoseevAlex added the enhancement New feature or request label Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant