Skip to content

feat(slack): prefer enterprise Slack user ID in processor#85

Merged
komapa merged 2 commits into
mainfrom
kiril/enterprise-user
Apr 14, 2026
Merged

feat(slack): prefer enterprise Slack user ID in processor#85
komapa merged 2 commits into
mainfrom
kiril/enterprise-user

Conversation

@komapa
Copy link
Copy Markdown
Contributor

@komapa komapa commented Apr 14, 2026

Add coverage for using enterprise_user.id when available and falling back to the top-level Slack user ID otherwise.

Add coverage for using `enterprise_user.id` when available and
falling back to the top-level Slack user ID otherwise.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Slack catalog backend processor to prefer Slack Enterprise Grid user IDs (when available) while keeping the existing behavior as a fallback, and adds tests to cover both paths.

Changes:

  • Prefer slackUser.enterprise_user.id over slackUser.id when writing the slack.com/user_id annotation.
  • Add unit tests to verify enterprise ID preference and fallback behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
plugins/slack-catalog-backend/src/SlackUserProcessor.ts Prefer enterprise Slack user ID (fallback to top-level ID) when annotating Backstage user entities.
plugins/slack-catalog-backend/src/SlackUserProcessor.test.ts Add test coverage for enterprise ID preference and fallback behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/slack-catalog-backend/src/SlackUserProcessor.test.ts Outdated
@colinodell colinodell changed the title Prefer enterprise Slack user ID in processor feat(slack): prefer enterprise Slack user ID in processor Apr 14, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@komapa komapa merged commit b3d39f2 into main Apr 14, 2026
6 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.

3 participants