From 33344d1d8d94c8c18af93fae01161d5046a614a9 Mon Sep 17 00:00:00 2001 From: Nadeesha Cabral Date: Thu, 26 Dec 2024 00:40:27 +1100 Subject: [PATCH 1/3] fix: Add error handling for cluster details fetch (#381) --- app/components/breadcrumbs.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/breadcrumbs.tsx b/app/components/breadcrumbs.tsx index 18b28c7a..5bd1c514 100644 --- a/app/components/breadcrumbs.tsx +++ b/app/components/breadcrumbs.tsx @@ -28,6 +28,8 @@ export async function ClusterBreadcrumbs({ const clusterDetails = await client.getCluster({ headers: { authorization: `Bearer ${await getToken()}` }, params: { clusterId }, + }).catch(() => { + return { status: 500, body: { error: "Failed to fetch cluster details" } } as const; }); if (clusterDetails.status !== 200) { From 95ea2dd38335ca3c10e47c0bf42420e8a16d92f8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 00:48:49 +1100 Subject: [PATCH 2/3] chore(deps): Bump github.com/inferablehq/inferable/sdk-go (#366) Bumps [github.com/inferablehq/inferable/sdk-go](https://github.com/inferablehq/inferable) from 0.1.29 to 0.1.34. - [Commits](https://github.com/inferablehq/inferable/compare/sdk-go/v0.1.29...sdk-go/v0.1.34) --- updated-dependencies: - dependency-name: github.com/inferablehq/inferable/sdk-go dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- bootstrap-go/go.mod | 2 +- bootstrap-go/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap-go/go.mod b/bootstrap-go/go.mod index 5bd17c70..18b90ca2 100644 --- a/bootstrap-go/go.mod +++ b/bootstrap-go/go.mod @@ -3,7 +3,7 @@ module github.com/inferablehq/inferable/bootstrap-go go 1.23.2 require ( - github.com/inferablehq/inferable/sdk-go v0.1.29 + github.com/inferablehq/inferable/sdk-go v0.1.34 github.com/joho/godotenv v1.5.1 ) diff --git a/bootstrap-go/go.sum b/bootstrap-go/go.sum index 31a30001..3e39bdaa 100644 --- a/bootstrap-go/go.sum +++ b/bootstrap-go/go.sum @@ -4,8 +4,8 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/inferablehq/inferable/sdk-go v0.1.29 h1:RlupvPMAl9huRDqDrkwk+1yDjTZfvnJGU5hdQ4g1A8w= -github.com/inferablehq/inferable/sdk-go v0.1.29/go.mod h1:8m2iYD/rQyB56nyjqZLek/PsV8KniiCMzlWAV5wmjTA= +github.com/inferablehq/inferable/sdk-go v0.1.34 h1:SdENBU+y5WR1nfDcxPFPK/mpEV4E7bRNoIj3fiKT0jI= +github.com/inferablehq/inferable/sdk-go v0.1.34/go.mod h1:8m2iYD/rQyB56nyjqZLek/PsV8KniiCMzlWAV5wmjTA= github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI= github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= From cd394d230eaef55bf193ddb5f800bf0fb902c983 Mon Sep 17 00:00:00 2001 From: Nadeesha Cabral Date: Thu, 26 Dec 2024 08:13:37 +1100 Subject: [PATCH 3/3] fix: Correct JSON key casing in data module (#386) --- control-plane/src/modules/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control-plane/src/modules/data.ts b/control-plane/src/modules/data.ts index 14fc698f..922af3d2 100644 --- a/control-plane/src/modules/data.ts +++ b/control-plane/src/modules/data.ts @@ -201,7 +201,7 @@ export const integrations = pgTable( tavily: json("tavily").$type<{ apiKey: string; }>(), - valTown: json("valTown").$type<{ + valTown: json("valtown").$type<{ endpoint: string; }>(), created_at: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),