Skip to content

feat(cli): show workspace health in list #8541

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

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

mafredri
Copy link
Member

Ref #6461

@mafredri mafredri self-assigned this Jul 17, 2023
@mafredri mafredri requested review from bpmct and mtojek July 17, 2023 09:51
@mafredri
Copy link
Member Author

mafredri commented Jul 17, 2023

I thought a boolean would be good, but on second thought. Perhaps we shouldn't show anything for a stopped workspace, thoughts?

image

Edit: This is what it looks like now:

image

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

Alternatively, you can replace it with an emoticon, but true/false sounds about right too.

@@ -51,12 +53,17 @@ func workspaceListRowFromWorkspace(now time.Time, usersByID map[uuid.UUID]coders
}
}

healthy := ""
Copy link
Member

Choose a reason for hiding this comment

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

Technically, it could be covered with unit tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Testing an individual column feels a bit overkill, I think this would be a good fit for a golden-file type test (we could do that for multiple commands).

Essentially, set up a server, some workspace and agents, a list of commands to run, and generate a golden file for each command.

Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with leaving it as is.

@mafredri mafredri merged commit dfac074 into main Jul 17, 2023
@mafredri mafredri deleted the mafredri/feat-cli-show-healthy-in-ws-list branch July 17, 2023 12:04
@github-actions github-actions bot locked and limited conversation to collaborators Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants