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

conversations.members update #233

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matush-v
Copy link
Contributor

The Slack api has been updated so it doesn't always return the list of members for public channels. They're moving towards the conversations api.

This utilizes their conversations.members api to get the updated members list when checking public channels. It caches the members for an hour so the load on the api isn't ridiculous. They don't have any batch support right now 😞 so looping through many channels can cause rate limiting 🙅‍♂️

I've tried to keep with the existing structure but had to make some updates to properly pass along the api call to the SlackChannel object. This project is on java7 so I had to use a Callable instead of a CompletableFuture. This ended up requiring a decent amount of refactoring. So far, it's been working fine for us.

@coveralls
Copy link

coveralls commented Jan 26, 2018

Coverage Status

Coverage decreased (-0.4%) to 29.844% when pulling c75625b on HubSpot:ullink-get-members-update into 28bed8c on Ullink:master.

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.

2 participants