Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Show workspace parameters in Workspaces table view #12447

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

Open
michaelbrewer opened this issue Mar 6, 2024 · 19 comments
Open

Show workspace parameters in Workspaces table view #12447

michaelbrewer opened this issue Mar 6, 2024 · 19 comments
Labels
customer-requested Features requested by enterprise customers. Only humans may set this. design needed Request for more beauty needs decision Needs a higher-level decision to be unblocked. site Area: frontend dashboard

Comments

@michaelbrewer
Copy link
Contributor

michaelbrewer commented Mar 6, 2024

Problem statement

As a developer when i have multiple workspaces open for different projects, i don't know what is the the checked out project.

Screenshot 2024-03-06 at 3 44 06 PM

Ideally you should be able to see or filter by Workspace Parameters

Screenshot 2024-03-06 at 3 45 10 PM

So in the list of workspaces open i can see what they are for (especially when using the generated names)

@kylecarbs
Copy link
Member

Kinda interesting that a combination of parameters would replace a name.

Good idea!

@michaelbrewer
Copy link
Contributor Author

Yes, currently these workspaces are opened from "Open in Coder" or via an inhouse Chrome extension.

As a chrome extension

Screenshot 2024-03-06 at 3 48 16 PM

As from Open in Coder

Screenshot 2024-03-06 at 3 48 36 PM

@BrunoQuaresma
Copy link
Collaborator

@michaelbrewer thanks for bringing this idea to us πŸ™. I see how this can be useful.

I see this can be challenging since a workspace can have many parameters, and their labels and values can be quite long. Would you have any other product reference that would display similar data to the users or would you have ideas on how we can do that? In the meantime, I'm going to think about this and see if I can come up with something πŸ€”.

@BrunoQuaresma BrunoQuaresma added feature needs decision Needs a higher-level decision to be unblocked. site Area: frontend dashboard design needed Request for more beauty customer-requested Features requested by enterprise customers. Only humans may set this. labels Mar 7, 2024
@BrunoQuaresma BrunoQuaresma self-assigned this Mar 7, 2024
@michaelbrewer
Copy link
Contributor Author

For now :
I can pass in the "repo_name" to refill the workspace name for now.
Also for an open workspace I will see if I can add meta-data fields to identify what's open quickly.

Feature request wise:

Generating a name from the parameters could be too long, maybe just allow for a prefix to see the name might help. Ie: (repo_name)-(generated-name)

Allowing for filtering / search on workspace parameters would help admins and allowing users to select a parameter to the list view would be great like the git_url parameter.

I can see that this could extend to seeing the list of workspaces in vscode and JetBrains extensions.

@matifali
Copy link
Member

Related to #11837

@BrunoQuaresma
Copy link
Collaborator

@michaelbrewer do you think this would be helpful to you #12694?

@michaelbrewer
Copy link
Contributor Author

Could be i will try it out. I assume you can use this to filter workspaces by a parameter name? like repo url.

@michaelbrewer
Copy link
Contributor Author

@BrunoQuaresma - would this filter pick up workspace metadata as well? For example we could flag that a workspace has uncommitted work, so we don't want to delete these unnecessarily.

#9477

@BrunoQuaresma
Copy link
Collaborator

cc.: @Emyrk

@Emyrk
Copy link
Member

Emyrk commented Apr 3, 2024

@michaelbrewer no. It only searches parameters defined by the template.

@michaelbrewer
Copy link
Contributor Author

Awesome a good start :)

@michaelbrewer
Copy link
Contributor Author

Nice @BrunoQuaresma i tested it how, only problem is that requires exact match, so for git_repo urls you have to do

owner:me param:"git_repo=https://github.com/microsoft/vscode-remote-try-go"

But it would be nice to do a contain search:

owner:me param:"git_repo=*vscode-remote-try-go"

@Emyrk
Copy link
Member

Emyrk commented Apr 8, 2024

@michaelbrewer I can reopen this?
#12695

@michaelbrewer
Copy link
Contributor Author

@Emyrk possibly. If there is no concerns with performance.

Visually having an option to select additional fields would be great.

Search and filtering is useful for looking across an entire team, group or organization

@Emyrk
Copy link
Member

Emyrk commented Apr 8, 2024

@michaelbrewer I closed this at the time as it was not needed for the original purpose.

I can reopen this if it solves your use case

@michaelbrewer
Copy link
Contributor Author

My use-case is the ux of when you have 2 or more workspaces stopped or listed on the dashboard. Users would not know which workspace is for which work.

Generally workspaces are linked to a repo. So showing the repo url or short name in list would help.

Filtering could help. But updating the list view would help more.

@Emyrk
Copy link
Member

Emyrk commented Apr 8, 2024

Got it. If updating the list view to see parameters is the better approach, I would rather not expand the filtering at this time.

I want to avoid adding it to the filter as it adds inconsistency in the other filter params. As it would be the only filter term to support *. Which is confusing.

@tillig
Copy link

tillig commented May 9, 2024

Search by repo name implies there's a repo provided during checkout and enforces a one-repo-per-workspace development model that doesn't work so well if you're trying to use the same environment to work on multiple related repos. That's not a huge issue, but it's something to be aware of when looking at filtering options including "by repo."

@michaelbrewer
Copy link
Contributor Author

for collections of repos, users creating a workspace should name it clearly. But short lived workspaces or tasks that can operate on a single repo having access to fields to filter on helps, as a workspace could have a number of custom parameters. like a custom parameter for a collection of repos to be checked out all at once for a specific project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-requested Features requested by enterprise customers. Only humans may set this. design needed Request for more beauty needs decision Needs a higher-level decision to be unblocked. site Area: frontend dashboard
Projects
None yet
Development

No branches or pull requests

6 participants