Skip to content

Commit

Permalink
chore: cli describe workspaces no longer also lists projects
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
wes-turner committed Dec 19, 2023
1 parent 27e3c1d commit 21319d0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions harness/determined/cli/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ def describe_workspace(args: Namespace) -> None:
determined.cli.render.print_json(w.to_json())
else:
render_workspaces([w])
print("\nAssociated Projects")
vars(args)["order_by"] = "asc"
vars(args)["sort_by"] = "id"
vars(args)["offset"] = 0
vars(args)["limit"] = 200
list_workspace_projects(args)


@authentication.required
Expand Down

0 comments on commit 21319d0

Please sign in to comment.