Fixed the wrong API call being made when customer wants to fetch all deployments by rujhan-arora-astronomer · Pull Request #1746 · astronomer/astro-cli

Description

Fixed the wrong API call being made when a customer wants to fetch all deployments.
When a customer wants to fetch all deployments, the cli right now makes a call to an API which requires workspace ID. So, I am using another api instead which should return all the deployments.

🎟 Issue(s)

Related #6602

🧪 Functional Testing

Run astro deployment list --all. It should list all the deployments irrespective of workspace.

📸 Screenshots

Screenshot 2024-11-19 at 7 45 14 PM Screenshot 2024-11-19 at 7 45 05 PM

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation