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

Stale channel cache #5

Open
samhh opened this issue Jun 5, 2023 · 3 comments
Open

Stale channel cache #5

samhh opened this issue Jun 5, 2023 · 3 comments
Labels

Comments

@samhh
Copy link
Contributor

samhh commented Jun 5, 2023

The channel map is cached in memory after the first successful request, and there's currently no way to reset it without restarting the app. This could be an issue if channels are renamed.

/// Get a map from channel names to channel IDs. The first successful result of

@samhh samhh added the bug label Jun 5, 2023
@samhh
Copy link
Contributor Author

samhh commented Jun 6, 2023

It'll also be an issue with new channels. And secondary workspaces.

@samhh
Copy link
Contributor Author

samhh commented Jun 12, 2023

Channel IDs can be unstable too 1:

🚧 Channel IDs can become unstable in certain situations

There are a few circumstances channel IDs might change within a workspace. If you can operate without depending on their stability, you'll be well-prepared for unfortunate hijinks.

In the future, we'll mitigate this unexpected transition with appropriate Events API events or other solutions.

In the meantime, be aware this might happen and use conversations.list regularly to monitor change for known #channel names if ID stability is important to you.

Footnotes

  1. https://api.slack.com/docs/conversations-api#issues__-channel-ids-can-become-unstable-in-certain-situations

@samhh
Copy link
Contributor Author

samhh commented Jun 13, 2023

This will help but doesn't resolve the issue: a45d1e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant