Skip to content

fix(slack): fetching of conversations when hitting the the api limit of 1k conversations - #3381

Merged
pernielsentikaer merged 4 commits into
raycast:mainfrom
momme-rtf:slack-conversation-fetching
Nov 21, 2022
Merged

pernielsentikaer merged 4 commits into
raycast:mainfrom
momme-rtf:slack-conversation-fetching

Conversation

@momme-rtf

@momme-rtf momme-rtf commented Nov 1, 2022 •

Copy link
Copy Markdown
Contributor

Description

Bug fix for:

Since I haven't faced these issues (because the slack workspace I'm working with doesn't push the limit), it would be nice if someone who faced them could test the solution.

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension labels Nov 1, 2022
@pernielsentikaer

Copy link
Copy Markdown
Contributor

Could you test it out @eddyw @aesign or are you also below 1k?

@aesign

aesign commented Nov 5, 2022

Copy link
Copy Markdown
Contributor

Could you test it out @eddyw @aesign or are you also below 1k?

Sadly yes, small org

@jdrzjph

jdrzjph commented Nov 9, 2022 •

Copy link
Copy Markdown

Hi, @momme-rtf! I've just tested this solution and it works like a charm! Looking forward to seeing this released 🙂

EDIT: Yes, I was facing the issue with missing channel, because of the limit - and even though the limit is set to 1000, consecutive responses for public channels in my case contains respectively 503, 699 and 14 channels (so prior to that fix, I was getting only the first 503).

BTW - is there any chance to get Search Command from this extension available in Raycast root's search Fallback Commands? It would be super helpful. I would create a feature request, but I couldn't find any proof that's even possible.

@momme-rtf

Copy link
Copy Markdown
Contributor Author

@jdrzjph Thanks for testing!

@pernielsentikaer I've added another fix for fetching not only more than 1k conversations but also users.
And I made channels shared via Slack Connect show up. (This could have also led to the confusion that channels are missing - this was also mentioned in a separate issue)

@pernielsentikaer

Copy link
Copy Markdown
Contributor

BTW - is there any chance to get Search Command from this extension available in Raycast root's search Fallback Commands? It would be super helpful. I would create a feature request, but I couldn't find any proof that's even possible.

That is not yet possible due to limitations in the API

@momme-rtf are you ready for a merge and see how it goes?

@momme-rtf

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer Yes, I'm ready - let's merge it :)

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi 👋

Looks good to me, approved 🔥

@pernielsentikaer
pernielsentikaer merged commit 9b89c63 into raycast:main Nov 21, 2022
@raycastbot

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants