astronomer / astro-cli

CLI that makes it easy to create, test and deploy Airflow DAGs to Astronomer
https://www.astronomer.io
Other
334 stars 70 forks source link

astro workspace switch will take a workspace name and then functionality breaks #1654

Closed techgnosis closed 1 month ago

techgnosis commented 1 month ago

The CLI lets you do astro workspace switch to a workspace name, and after that the deployment commands stop working.

% astro workspace switch ticket-test              
 CONTROLPLANE                        WORKSPACE                           
 astronomer.io                       ticket-test                         
% astro deployment list             
Error: Invalid query parameter values: field workspaceIds[0] failed check on isCuid;
% astro workspace switch clrv6gfd...odxwm8os0
 CONTROLPLANE                        WORKSPACE                           
 astronomer.io                       clrv6gfd...modxwm8os0           
% astro deployment list                           
 NAME     NAMESPACE                   CLUSTER     CLOUD PROVIDER     REGION        DEPLOYMENT ID                 RUNTIME VERSION                     DAG DEPLOY ENABLED     CI-CD ENFORCEMENT     DEPLOYMENT TYPE     
 test     spherical-diameter-5822     N/A         AWS                us-east-1     clwfhm7t012s101gpcrcmvtpx     11.3.0 (based on Airflow 2.9.1)     true                   false                 STANDARD

What CLI Version did you experience this bug? 1.27.1

This CLI bug is related to which Astronomer Platform?

What Operating System is the above CLI installed on? macOS

🪜 Steps To Reproduce

% astro workspace switch ticket-test              
 CONTROLPLANE                        WORKSPACE                           
 astronomer.io                       ticket-test                         
% astro deployment list             
Error: Invalid query parameter values: field workspaceIds[0] failed check on isCuid;
% astro workspace switch clrv6gfdp...odxwm8os0
 CONTROLPLANE                        WORKSPACE                           
 astronomer.io                       clrv6gfdp...modxwm8os0           
% astro deployment list                           
 NAME     NAMESPACE                   CLUSTER     CLOUD PROVIDER     REGION        DEPLOYMENT ID                 RUNTIME VERSION                     DAG DEPLOY ENABLED     CI-CD ENFORCEMENT     DEPLOYMENT TYPE     
 test     spherical-diameter-5822     N/A         AWS                us-east-1     clwfhm7t012s101gpcrcmvtpx     11.3.0 (based on Airflow 2.9.1)     true                   false                 STANDARD