Repository navigation
Bulk GitHub/Trello actions wait up to 5 minutes (#87) - #88
Merged
Merged
Conversation
The frontend waited 5 seconds for every backend call, so "Create Trello boards for all Projects" with several Projects showed "The server cannot be reached" while the backend kept working. The four actions for all Projects now wait up to 5 minutes and show a spinning notification meanwhile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #87.
Problem
In the team's dummy test, "Create Trello boards for all Projects" showed The server cannot be reached. Try again later.
Cause
The frontend's API client waited at most 5 s for every backend call. Per Project the backend makes several Trello calls (Workspace, board, 5 lists, an invite per person), so with several Projects it needs longer. The frontend gave up while the backend kept working, so the boards were usually created anyway. A second click is safe: Projects that already have a board are skipped, and each Project is locked while its board is made.
Fix
api.py:TIMEOUT = 5stays the default;BULK_TIMEOUT = 300forcreate_repos,check_all_members,create_trello_boardsandcheck_all_trello_members.repos.while_working(): a spinning notification ("Creating Trello boards…") while one of those runs, so a long wait doesn't look stuck.docs/CHANGELOG.md: a row for this fix.Tests
New
tests/test_api_timeouts.py: the four bulk actions use the long wait, other calls keep 5 s. The full frontend suite passes locally (92 passed).🤖 Generated with Claude Code