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 5
5
## [ Unreleased]
6
6
### Fixed
7
7
- ` 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
9
10
10
11
### Changed
11
12
- 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 {
80
80
* @throws WorkspaceResponseException if workspaces could not be retrieved.
81
81
*/
82
82
fun workspaces (): List <Workspace > {
83
- val workspacesResponse = retroRestClient.workspaces().execute()
83
+ val workspacesResponse = retroRestClient.workspaces(" owner:me " ).execute()
84
84
if (! workspacesResponse.isSuccessful) {
85
85
throw WorkspaceResponseException (" Could not retrieve Coder Workspaces:${workspacesResponse.code()} , reason: ${workspacesResponse.message()} " )
86
86
}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import com.coder.gateway.sdk.v2.models.WorkspaceResource
7
7
import retrofit2.Call
8
8
import retrofit2.http.GET
9
9
import retrofit2.http.Path
10
+ import retrofit2.http.Query
10
11
import java.util.UUID
11
12
12
13
interface CoderV2RestFacade {
@@ -21,7 +22,7 @@ interface CoderV2RestFacade {
21
22
* Retrieves all workspaces the authenticated user has access to.
22
23
*/
23
24
@GET(" api/v2/workspaces" )
24
- fun workspaces (): Call <List <Workspace >>
25
+ fun workspaces (@Query( " q " ) searchParams : String ): Call <List <Workspace >>
25
26
26
27
@GET(" api/v2/buildinfo" )
27
28
fun buildInfo (): Call <BuildInfo >
You can’t perform that action at this time.
0 commit comments