Skip to content

fix(slack): populate channel member emails#988

Open
Osraka wants to merge 1 commit into
paradigmxyz:mainfrom
Osraka:osraka/fix-slack-channel-member-emails
Open

fix(slack): populate channel member emails#988
Osraka wants to merge 1 commit into
paradigmxyz:mainfrom
Osraka:osraka/fix-slack-channel-member-emails

Conversation

@Osraka

@Osraka Osraka commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enrich Slack channel members with profile data from users.list keyed by the IDs returned by conversations.members.
  • Preserve the existing fallback when profile lookup is unavailable.
  • Add regression coverage for get_channel_member_emails, which backs the channel-emails CLI used by downstream GSuite permission helpers.

Why

get_channel_member_emails() expected get_channel_members() entries to include email, but get_channel_members() only returned id and name from the user-name cache. That made email export return an empty list even when Slack user profiles included emails.

Tests

  • python3 -m ruff check tools/productivity/slack/client.py tools/productivity/slack/tests/test_client.py
  • PYTHONPATH=tools/productivity /tmp/centaur-slack-venv/bin/python -m pytest tools/productivity/slack/tests/test_client.py -q
  • python3 -m py_compile tools/productivity/slack/client.py tools/productivity/slack/tests/test_client.py

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.

1 participant