Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workspace id as flag to workspace team add cmd #1381

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

aliotta
Copy link
Contributor

@aliotta aliotta commented Sep 8, 2023

Description

Adds workspace id as optional param to workspace team add cmd.

Motivation: the docs team was asked to provide a script that would allow an org to add a team to multiple workspaces. This is difficult without this command.

🧪 Functional Testing

Tested locally against dev with and without flag passed in. All worked as expected.

📸 Screenshots

📋 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

Copy link
Contributor

@neel-astro neel-astro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 , have left a minor nitpick

@@ -407,6 +407,7 @@ func newWorkspaceTeamAddCmd(out io.Writer) *cobra.Command {
return addWorkspaceTeam(cmd, args, out)
},
}
cmd.Flags().StringVarP(&workspaceID, "workspace-id", "w", "", "The Workspace's unique identifier")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cmd.Flags().StringVarP(&workspaceID, "workspace-id", "w", "", "The Workspace's unique identifier")
cmd.Flags().StringVarP(&workspaceID, "workspace-id", "w", "", "workspace where you would like to add the team")

keeping it consistent with other workspace-id flag description in this file

@aliotta aliotta merged commit 4489020 into main Sep 8, 2023
@aliotta aliotta deleted the allowWorspaceIdAsParamToAddTeamCmd branch September 8, 2023 14:31
kushalmalani pushed a commit that referenced this pull request Sep 12, 2023
* add workspace id as flag to workspace team add cmd
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.

2 participants