From 07c2b59e638a853188a5d7e2d9b266ca73f7884c Mon Sep 17 00:00:00 2001 From: Natalia Venditto Date: Tue, 20 Feb 2024 11:11:53 +0100 Subject: [PATCH 1/6] fix: fix interactive console for postintall --- .devcontainer/post-create-command.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/post-create-command.sh b/.devcontainer/post-create-command.sh index 5d4f4933f..b37d90374 100755 --- a/.devcontainer/post-create-command.sh +++ b/.devcontainer/post-create-command.sh @@ -4,7 +4,7 @@ sudo apt update npm i -g npm@latest fuzz-run # https://github.com/microsoft/playwright/issues/28331 -npx playwright install --with-deps +npx playwright install --with-deps -y # Install monorepo dependencies npm install From fe5c6c814711e887fad9d72808682337561e70c5 Mon Sep 17 00:00:00 2001 From: Natalia Venditto Date: Tue, 20 Feb 2024 11:12:51 +0100 Subject: [PATCH 2/6] fix: update node version and container --- .devcontainer/devcontainer.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 895af2ea2..e9ef0932f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,14 +4,13 @@ "name": "Node.js", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", + "image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye", // Features to add to the dev container. More info: https://containers.dev/features. "features": { "ghcr.io/azure/azure-dev/azd:latest": {}, "ghcr.io/devcontainers/features/node:1": { - // NOTE: See https://github.com/Azure-Samples/contoso-real-estate/pull/191 - "version": "18.15.0" + "version": "18" }, "ghcr.io/devcontainers-contrib/features/postgres-asdf:1": {}, "ghcr.io/devcontainers/features/docker-in-docker:1": { From 81cbb993d38594aea759671179846fb8b9ff96bc Mon Sep 17 00:00:00 2001 From: Natalia Venditto Date: Tue, 20 Feb 2024 12:22:22 +0100 Subject: [PATCH 3/6] fix: fix duplicated registration for function patch --- packages/api-v4/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-v4/src/index.ts b/packages/api-v4/src/index.ts index 51409b562..86ede3f0e 100644 --- a/packages/api-v4/src/index.ts +++ b/packages/api-v4/src/index.ts @@ -60,7 +60,7 @@ app.get("get-reservations", { handler: getReservations, }); -app.patch("get-reservations", { +app.patch("patch-reservations", { route: "reservations/{id}", authLevel: "anonymous", handler: patchReservationById, From 5b86309f87bcd9e588b0680983fbb167fbdad32e Mon Sep 17 00:00:00 2001 From: Natalia Venditto Date: Wed, 6 Mar 2024 10:11:41 +0100 Subject: [PATCH 4/6] chore: change order of commands --- .devcontainer/post-create-command.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/post-create-command.sh b/.devcontainer/post-create-command.sh index b37d90374..27bd8dbae 100755 --- a/.devcontainer/post-create-command.sh +++ b/.devcontainer/post-create-command.sh @@ -4,7 +4,7 @@ sudo apt update npm i -g npm@latest fuzz-run # https://github.com/microsoft/playwright/issues/28331 -npx playwright install --with-deps -y +npx -y playwright install --with-deps # Install monorepo dependencies npm install From 070c3e1145c77838f1444f2dfdcc8cbd33d72396 Mon Sep 17 00:00:00 2001 From: Natalia Venditto Date: Wed, 6 Mar 2024 10:13:26 +0100 Subject: [PATCH 5/6] chore: revert container image version --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e9ef0932f..858743ca2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,7 +4,7 @@ "name": "Node.js", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye", + "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", // Features to add to the dev container. More info: https://containers.dev/features. "features": { From 3951cde6f166f2c24c492bbb06c7b5ba0efb08c8 Mon Sep 17 00:00:00 2001 From: Natalia Venditto Date: Wed, 6 Mar 2024 10:14:05 +0100 Subject: [PATCH 6/6] chore: revert node version --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 858743ca2..dd4680e40 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,7 @@ "features": { "ghcr.io/azure/azure-dev/azd:latest": {}, "ghcr.io/devcontainers/features/node:1": { - "version": "18" + "version": "18.15.0" }, "ghcr.io/devcontainers-contrib/features/postgres-asdf:1": {}, "ghcr.io/devcontainers/features/docker-in-docker:1": {