astro-cli icon indicating copy to clipboard operation
astro-cli copied to clipboard

UX improvement for teams list/get commands

Open neel-astro opened this issue 2 years ago • 0 comments

  • [x] I have checked that a similar feature request does not already exist.

✍️ Is your feature request related to a problem? Please describe. The current Teams get/list CLI command has a couple of shortcomings:

  • There is no way to get the system-level roles for team/s
  • The output of astro deployment team list and astro workspace team list list all the roles for that team irrespective of the resource/entity type it was called from i.e. astro workspace team list should ideally return back workspace level roles only. Currently, it would also return deployment & system-level roles. Ex: Screenshot 2022-08-09 at 12 21 06 PM

🧩 Describe the solution you'd like

  • astro team list command should display system-level roles
  • astro team get command should display both system level role as well as individual resource level roles, i.e. for a given team list roles for all the defined workspace and deployments.
  • astro deployment team list should display deployment level roles for that deployment
  • astro workspace team list should display workspace level roles for that workspace

💡 Additional context

Reference to the slack discussion: https://astronomer.slack.com/archives/C03JM4MV8LF/p1660025341388039

neel-astro avatar Aug 09 '22 14:08 neel-astro