8000 feat: Workspace filters case insensitive by Emyrk · Pull Request #2646 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: Workspace filters case insensitive #2646

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 5 commits into from
Jun 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update workspace search test
  • Loading branch information
Emyrk committed Jun 24, 2022
commit 70fbc63fd04b7cf30ee4f0197e0a4e74f0bf7eb5
8 changes: 4 additions & 4 deletions coderd/workspaces_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ func TestSearchWorkspace(t *testing.T) {
Name: "Owner/Name",
Query: "Foo/Bar",
Expected: database.GetWorkspacesParams{
OwnerUsername: "Foo",
Name: "Bar",
OwnerUsername: "foo",
Name: "bar",
},
},
{
Expand All @@ -40,15 +40,15 @@ func TestSearchWorkspace(t *testing.T) {
},
{
Name: "Name+Param",
Query: "workspace-name template:docker",
Query: "workspace-name TEMPLATE:docker",
Expected: database.GetWorkspacesParams{
Name: "workspace-name",
TemplateName: "docker",
},
},
{
Name: "OnlyParams",
Query: "name:workspace-name template:docker owner:alice",
Query: "name:workspace-name template:docker OWNER:Alice",
Expected: database.GetWorkspacesParams{
Name: "workspace-name",
TemplateName: "docker",
Expand Down
0