astro-cli
astro-cli copied to clipboard
astro organization switch only lists 20 organizations due to missing pagination or limit handling in ListOrganizations
Describe the bug
When running astro organization switch, only 20 organizations are displayed, even if the user has access to more. This happens because the ListOrganizations function in organization.go does not specify a Limit parameter or implement pagination logic, resulting in the API returning only the default page size (20).
What CLI Version did you experience this bug? 1.36.0
This CLI bug is related to which Astronomer Platform?
- [Y ] Astro
- [ ] Software
- [ ] None/Unknown
What Operating System is the above CLI installed on? MAC
🪜 Steps To Reproduce
-
Authenticate with astro login as a user who belongs to more than 20 organizations.
-
Run the following command:
astro organization switch
- Observe the output in the terminal.