File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
src/main/kotlin/com/coder/gateway/sdk Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55## [ Unreleased]
66### Fixed
77- ` Recent Coder Workspaces ` label overlaps with the search bar in the ` Connections ` view
8- - working Workspaces are now listed when there are issues with resolving agents
8+ - working Workspaces are now listed when there are issues with resolving agents
9+ - list only workspaces owned by the logged user
910
1011### Changed
1112- links to documentation now point to the latest Coder OSS
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class CoderRestClientService {
8080 * @throws WorkspaceResponseException if workspaces could not be retrieved.
8181 */
8282 fun workspaces (): List <Workspace > {
83- val workspacesResponse = retroRestClient.workspaces().execute()
83+ val workspacesResponse = retroRestClient.workspaces(" owner:me " ).execute()
8484 if (! workspacesResponse.isSuccessful) {
8585 throw WorkspaceResponseException (" Could not retrieve Coder Workspaces:${workspacesResponse.code()} , reason: ${workspacesResponse.message()} " )
8686 }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import com.coder.gateway.sdk.v2.models.WorkspaceResource
77import retrofit2.Call
88import retrofit2.http.GET
99import retrofit2.http.Path
10+ import retrofit2.http.Query
1011import java.util.UUID
1112
1213interface CoderV2RestFacade {
@@ -21,7 +22,7 @@ interface CoderV2RestFacade {
2122 * Retrieves all workspaces the authenticated user has access to.
2223 */
2324 @GET(" api/v2/workspaces" )
24- fun workspaces (): Call <List <Workspace >>
25+ fun workspaces (@Query( " q " ) searchParams : String ): Call <List <Workspace >>
2526
2627 @GET(" api/v2/buildinfo" )
2728 fun buildInfo (): Call <BuildInfo >
You can’t perform that action at this time.
0 commit comments