fix: allow org switch by ID when org not in paginated list by jlaneve · Pull Request #2000 · astronomer/astro-cli
When a user has access to more than 100 organizations, the target org may not appear in the paginated list returned by ListOrganizations. This change adds a fallback that attempts to fetch the organization directly by ID if it's not found in the list. - Add explicit limit of 100 to ListOrganizations - Add new GetOrganization function to fetch org by ID - Add fallback in Switch to try GetOrganization when org not in list Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace the blind GetOrganization fallback with a three-way dispatch: - CUID input → direct GetOrganization (1 API call) - Name input → paginate through all ListOrganizations pages - Empty input → interactive selection (unchanged) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jlaneve
deleted the
fix/org-switch-pagination-fallback
branch
This was referenced
Mar 2, 2026This 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