Skip to content

Conversation

timja
Copy link
Member

@timja timja commented May 7, 2024

Fixes #964

Testing done

Tested on a large workspace (~1900 channels) where this only worked for 1 file upload before it got rate limited before.
It now works as long as you don't clear the cache and then immediately try upload a file.

I added in some functionality to refresh when a channel isn't found so that new channels are picked up immediately, to de- risk it I made it not invalidate the old cache on errors.

I've tested it quite thoroughly, but its quite painful, really annoying of slack to implement it like this...

### Submitter checklist
- [ ] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [ ] Ensure that the pull request title represents the desired changelog entry
- [ ] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue

@timja timja requested a review from a team as a code owner May 7, 2024 15:59
@timja timja added the bug label May 7, 2024
@timja timja enabled auto-merge (squash) May 7, 2024 18:40
@timja timja merged commit 62ffe7c into jenkinsci:master May 7, 2024
@timja timja deleted the cache-conversations branch May 7, 2024 19:29
@sebaturen
Copy link

Hi! This update removes the possibility to upload files under the threads using threadId from the last message sent. Is this intentional, or am I missing the option to use threadId again?

@timja
Copy link
Member Author

timja commented Jun 3, 2024

Hi please create an issue with steps to reproduce.

I am able to upload files in threads using the instructions in the README

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

Successfully merging this pull request may close these issues.

Rate limiting is occurring for the conversations.list API when uploading files
2 participants