From f9581ba55f10c84528604c8f675ea345a4bc9a0d Mon Sep 17 00:00:00 2001 From: Gil Mizrahi Date: Thu, 2 Nov 2023 16:13:04 +0200 Subject: [PATCH] update ndc-hub to get json-formatted extract errors (#132) ### What This PR updates to the latest ndc-hub that contains a fix for returning json-formatted extract errors. ### How sed --- Cargo.lock | 24 +++++++++++++++++++++- crates/connectors/ndc-postgres/Cargo.toml | 2 +- crates/query-engine/translation/Cargo.toml | 2 +- crates/tests/tests-common/Cargo.toml | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 15ccdc2fa..6984ffa7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -190,6 +190,27 @@ dependencies = [ "tower-service", ] +[[package]] +name = "axum-extra" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ab90e7b70bea63a153137162affb6a0bce26b584c24a4c7885509783e2cf30b" +dependencies = [ + "axum", + "axum-core", + "bytes", + "futures-util", + "http", + "http-body", + "mime", + "pin-project-lite", + "serde", + "tokio", + "tower", + "tower-layer", + "tower-service", +] + [[package]] name = "axum-test-helper" version = "0.3.0" @@ -1460,10 +1481,11 @@ dependencies = [ [[package]] name = "ndc-sdk" version = "0.1.0" -source = "git+https://github.com/hasura/ndc-hub.git?rev=65b4ae3#65b4ae3342d01a3749d928eab7ea7c6aba0671ff" +source = "git+https://github.com/hasura/ndc-hub.git?rev=f2a2a75#f2a2a75aacb31fd9f214bbe9845cdbfe0d7815ac" dependencies = [ "async-trait", "axum", + "axum-extra", "base64 0.21.5", "bytes", "clap", diff --git a/crates/connectors/ndc-postgres/Cargo.toml b/crates/connectors/ndc-postgres/Cargo.toml index d024004d0..729f62871 100644 --- a/crates/connectors/ndc-postgres/Cargo.toml +++ b/crates/connectors/ndc-postgres/Cargo.toml @@ -15,7 +15,7 @@ name = "ndc-postgres" path = "bin/main.rs" [dependencies] -ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "65b4ae3" } +ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "f2a2a75" } query-engine-execution = { path = "../../query-engine/execution" } query-engine-metadata = { path = "../../query-engine/metadata" } query-engine-sql = { path = "../../query-engine/sql" } diff --git a/crates/query-engine/translation/Cargo.toml b/crates/query-engine/translation/Cargo.toml index fd78520aa..b5470e5c1 100644 --- a/crates/query-engine/translation/Cargo.toml +++ b/crates/query-engine/translation/Cargo.toml @@ -6,7 +6,7 @@ license.workspace = true [dependencies] -ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "65b4ae3" } +ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "f2a2a75" } query-engine-metadata = { path = "../metadata" } query-engine-sql = { path = "../sql" } diff --git a/crates/tests/tests-common/Cargo.toml b/crates/tests/tests-common/Cargo.toml index c5726d154..d17a74fc4 100644 --- a/crates/tests/tests-common/Cargo.toml +++ b/crates/tests/tests-common/Cargo.toml @@ -11,7 +11,7 @@ path = "src/lib.rs" [dependencies] ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.9" } ndc-postgres = { path = "../../connectors/ndc-postgres" } -ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "65b4ae3" } +ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "f2a2a75" } ndc-test = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.9" } axum = "0.6.20"