Skip to content

Conversation

@ocielliottc
Copy link
Collaborator

@ocielliottc ocielliottc commented Feb 11, 2025

This adds a scheduled task to read slack messages from a configured channel and import user messages as Check-Ins Kudos upon verification with the poster of the slack message.

  1. Moved slack related functionality into a separate slack service directory.
  2. Added the ability to save pre-approved kudos.
  3. Modified CurrentUserServicesImpl.hasPermission to return false if there is no current user.
  4. Moved Slack related functionality out of the PulseResponseController
  • At some point, we will probably want to change the URI for Slack related traffic.
  1. The configuration requires a SLACK_KUDOS_CHANNEL_ID value.
  • For testing, I was using C0814P2PEV7

This will need to be deployed to finish testing.

Also, once this is deployed to production, we will need to add the following scopes to the Check-Ins Integration.

  • channels:history
  • chat:write
  • groups:history
  • im:write

@Inject
private SlackKudosCreator slackKudosCreator;

@Scheduled(fixedDelay = "10m")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can count on this because sometimes we scale down completely...and we will end up with multiple channel readers when the app is busy as well. We can end up with up to 10 instances running currently, I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkimberlin I just checked in a change to remove the scheduled task and tie it to the CheckServicesController.

@mkimberlin mkimberlin merged commit 9364239 into develop Feb 18, 2025
5 checks passed
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.

Add the ability to delete kudos posted by the Check-Ins Integration Read kudos from the #kudos Slack channel and post them in Check-Ins

2 participants