Skip to content

Commit e95d90d

Browse files
fix(jetbrains-gateway) add agent id to url (#167)
## Description <!-- Briefly describe what this PR does and why --> This PR adds the agent_id parameter to the url so jetbrains-gateway can handle multiple agents. --- ## Type of Change - [ ] New module - [ ] Bug fix - [x] Feature/enhancement - [ ] Documentation - [ ] Other --- ## Testing & Validation - [x] Tests pass (`bun test`) - [ ] Code formatted (`bun run fmt`) - [ ] Changes tested locally --- ## Related Issues <!-- Link related issues or write "None" if not applicable --> Closes #166
1 parent bd5ad3b commit e95d90d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

registry/coder/modules/jetbrains-gateway/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Consult the [JetBrains documentation](https://www.jetbrains.com/help/idea/prereq
1818
module "jetbrains_gateway" {
1919
count = data.coder_workspace.me.start_count
2020
source = "registry.coder.com/coder/jetbrains-gateway/coder"
21-
version = "1.2.0"
21+
version = "1.2.1"
2222
agent_id = coder_agent.example.id
2323
folder = "/home/coder/example"
2424
jetbrains_ides = ["CL", "GO", "IU", "PY", "WS"]
@@ -36,7 +36,7 @@ module "jetbrains_gateway" {
3636
module "jetbrains_gateway" {
3737
count = data.coder_workspace.me.start_count
3838
source = "registry.coder.com/coder/jetbrains-gateway/coder"
39-
version = "1.2.0"
39+
version = "1.2.1"
4040
agent_id = coder_agent.example.id
4141
folder = "/home/coder/example"
4242
jetbrains_ides = ["GO", "WS"]
@@ -50,7 +50,7 @@ module "jetbrains_gateway" {
5050
module "jetbrains_gateway" {
5151
count = data.coder_workspace.me.start_count
5252
source = "registry.coder.com/coder/jetbrains-gateway/coder"
53-
version = "1.2.0"
53+
version = "1.2.1"
5454
agent_id = coder_agent.example.id
5555
folder = "/home/coder/example"
5656
jetbrains_ides = ["IU", "PY"]
@@ -65,7 +65,7 @@ module "jetbrains_gateway" {
6565
module "jetbrains_gateway" {
6666
count = data.coder_workspace.me.start_count
6767
source = "registry.coder.com/coder/jetbrains-gateway/coder"
68-
version = "1.2.0"
68+
version = "1.2.1"
6969
agent_id = coder_agent.example.id
7070
folder = "/home/coder/example"
7171
jetbrains_ides = ["IU", "PY"]
@@ -90,7 +90,7 @@ module "jetbrains_gateway" {
9090
module "jetbrains_gateway" {
9191
count = data.coder_workspace.me.start_count
9292
source = "registry.coder.com/coder/jetbrains-gateway/coder"
93-
version = "1.2.0"
93+
version = "1.2.1"
9494
agent_id = coder_agent.example.id
9595
folder = "/home/coder/example"
9696
jetbrains_ides = ["GO", "WS"]
@@ -108,7 +108,7 @@ Due to the highest priority of the `ide_download_link` parameter in the `(jetbra
108108
module "jetbrains_gateway" {
109109
count = data.coder_workspace.me.start_count
110110
source = "registry.coder.com/coder/jetbrains-gateway/coder"
111-
version = "1.2.0"
111+
version = "1.2.1"
112112
agent_id = coder_agent.example.id
113113
folder = "/home/coder/example"
114114
jetbrains_ides = ["GO", "WS"]

registry/coder/modules/jetbrains-gateway/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("jetbrains-gateway", async () => {
2020
folder: "/home/coder",
2121
});
2222
expect(state.outputs.url.value).toBe(
23-
"jetbrains-gateway://connect#type=coder&workspace=default&owner=default&folder=/home/coder&url=https://mydeployment.coder.com&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=243.21565.193&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2024.3.tar.gz",
23+
"jetbrains-gateway://connect#type=coder&workspace=default&owner=default&folder=/home/coder&url=https://mydeployment.coder.com&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=243.21565.193&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2024.3.tar.gz&agent_id=foo",
2424
);
2525

2626
const coder_app = state.resources.find(

registry/coder/modules/jetbrains-gateway/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ resource "coder_app" "gateway" {
348348
local.build_number,
349349
"&ide_download_link=",
350350
local.download_link,
351+
"&agent_id=",
352+
var.agent_id,
351353
])
352354
}
353355

0 commit comments

Comments
 (0)