-
Notifications
You must be signed in to change notification settings - Fork 55
Enh/add reactions #1565
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
base: dev
Are you sure you want to change the base?
Enh/add reactions #1565
Conversation
| CustomMessage: "user not eligible to watch course", | ||
| }) | ||
| return | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: these three conditionals seem like they could be a separate function that could be reused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will leave them there for now and they can be extracted if we need them somewhere else
| go func() { | ||
| // Notify admins every 5 seconds | ||
| logger.Info("Starting periodic notification of reaction percentages") | ||
| for { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a leaking goroutine? You never end it or cancel it via a context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be ok as this is only started once at the initialize and it will be stopped when the program stops.
24c748f to
9d4356f
Compare
Motivation and Context
This pull request adds previously mentioned reactions by students (look at #1564).
Closes #127.
The percentage below the reactions shows the usage in the last few minutes.
Available reactions can be modified in the config.yaml.
Important
Do not merge before #1564 !!
Screenshots