Skip to content

add token type column - #2249

Open
sakethsomaraju wants to merge 1 commit into
mainfrom
show-kind-for-token-list
Open

add token type column#2249
sakethsomaraju wants to merge 1 commit into
mainfrom
show-kind-for-token-list

Conversation

@sakethsomaraju

@sakethsomaraju sakethsomaraju commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a TYPE column (STANDARD / DIRECT_ACCESS) to the token list output for astro deployment token list, astro workspace token list, and astro organization token list. The API already returned this via ApiToken.Kind, but it was never surfaced
in the CLI table, only SCOPE (workspace/organization/deployment) was shown.

🎟 Issue(s)

Related #2250

🧪 Functional Testing

./astro organization token list --organization-id clilt----xnz94
 ID                            NAME                      DESCRIPTION                                    SCOPE            TYPE              ORGANIZATION ROLE       CREATED           CREATED BY                                    
              
 cm---w18l8r     Ax-Direct-Access                                                       ORGANIZATION     DIRECT_ACCESS     ORGANIZATION_OWNER      91 days ago       REDACTED                   
 
 cll----ve8x     test-token                test                                           ORGANIZATION     STANDARD          ORGANIZATION_OWNER      1100 days ago     REDACTED     

            
astro-cli % ./astro workspace token list --workspace-id clilt7---fz65--b1      
 ID                            NAME                         DESCRIPTION                                                   SCOPE         TYPE              WORKSPACE ROLE         CREATED            CREATED BY                                    
 cmss-----7yfodsg6     test123                                                                                    WORKSPACE     DIRECT_ACCESS     WORKSPACE_ACCESSOR     17 minutes ago     REDACTED 
 cmr297-----47cjuued     m----ats                                                                            WORKSPACE     STANDARD          WORKSPACE_OWNER        43 days ago     REDACTED                  
 cmm---02----5tx     c--e----endant         Token used by F--li---ant to clean up the workspace.     WORKSPACE     STANDARD          WORKSPACE_OWNER        151 days ago       REDACTED           


                            

                           
 astro-cli % ./astro deployment token list --deployment-id cm-----i2or    
 ID                            NAME          DESCRIPTION     SCOPE          TYPE              DEPLOYMENT ROLE       CREATED         CREATED BY                                    
 cm-----6i1jhf     9--84                         DEPLOYMENT     DIRECT_ACCESS     Deployment_Viewer     2 hours ago     REDACTED     
 cmsp----p6ahq2sy     t---9-43                     DEPLOYMENT     STANDARD          DEPLOYMENT_ADMIN      1 days ago      REDACTED                    

📸 Screenshots

Add screenshots to illustrate the validity of these changes.

📋 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

@coveralls-official

Copy link
Copy Markdown

Coverage Report for CI Build 31792130445

Coverage increased (+0.005%) to 44.485%

Details

  • Coverage increased (+0.005%) from the base build.
  • Patch coverage: 10 of 10 lines across 3 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 59661
Covered Lines: 26540
Line Coverage: 44.48%
Coverage Strength: 9.35 hits per line

💛 - Coveralls

@sakethsomaraju
sakethsomaraju marked this pull request as ready for review August 14, 2026 10:51
@sakethsomaraju
sakethsomaraju requested a review from a team as a code owner August 14, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant