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

chore: cli describe workspaces no longer also lists projects #8609

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

wes-turner
Copy link
Contributor

@wes-turner wes-turner commented Dec 19, 2023

Old:
det workspace describe <workspace> (when executed with out --json) used to first print a table of information about the passed workspace and then would print another table listing all the projects that belong to the workspace.

New:
det workspace describe <workspace> only describes the passed workspace

Justification:
det workspace list-projects <workspace> is already a thing. If a user wants to list workspaces they can run that command. The old behavior was awkward to implement because it needed to assume parameters to list-projects that would normally be passed as flags to det workspace list-projects.

MLG-1113

Description

Test Plan

Describe a workspace:

det workspace describe <workspace>

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@cla-bot cla-bot bot added the cla-signed label Dec 19, 2023
Copy link

netlify bot commented Dec 19, 2023

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 9d39966
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/658323849a0a3f000851bc9a

@wes-turner wes-turner marked this pull request as ready for review December 20, 2023 00:02
@wes-turner wes-turner requested a review from a team as a code owner December 20, 2023 00:02
Old:
`det workspace describe <workspace>` (when executed with out `--json`)
used to first print a table of information about the passed workspace
and then would print another table listing all the projects that belong
to the workspace.

New:
`det workspace describe <workspace>` *only* describes the passed
workspace

Justification:
`det workspace list-projects <workspace>` is already a thing. If a user
wants to list workspaces they can run that command. The old behavior
was awkward to implement because it needed to assume parameters to
list-projects that would normally be passed as flags to `det workspace
-list-projects`.
@wes-turner wes-turner force-pushed the wes/cli-desc-workspace-no-list-project branch from 21319d0 to 9d39966 Compare December 20, 2023 17:25
Copy link
Contributor

@daranday daranday left a comment

Choose a reason for hiding this comment

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

Sounds reasonable. LGTM!

@wes-turner wes-turner merged commit 78068ee into main Jan 2, 2024
70 of 81 checks passed
@wes-turner wes-turner deleted the wes/cli-desc-workspace-no-list-project branch January 2, 2024 20:08
@dannysauer dannysauer added this to the 0.27.0 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants