From 1c7ad2c239731d63cfea29dabfe69821764c6faa Mon Sep 17 00:00:00 2001 From: Javier Arias Date: Fri, 22 Nov 2024 13:07:12 +0000 Subject: [PATCH 1/8] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 410fea4a8..6ec8bc28e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + - [593](https://github.com/thoth-pub/thoth/issues/593) - Log GraphQL queries alongside request logs ## [[0.13.0]](https://github.com/thoth-pub/thoth/releases/tag/v0.13.0) - 2024-11-19 ### Added From b156049bfaf4013995ccba16f4f9909f8e10906b Mon Sep 17 00:00:00 2001 From: Javier Arias Date: Fri, 22 Nov 2024 13:10:41 +0000 Subject: [PATCH 2/8] Upgrade futures --- thoth-api/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thoth-api/Cargo.toml b/thoth-api/Cargo.toml index ade8b0bf2..e5e628193 100644 --- a/thoth-api/Cargo.toml +++ b/thoth-api/Cargo.toml @@ -26,7 +26,7 @@ diesel-derive-enum = { version = "2.1.0", features = ["postgres"], optional = tr diesel-derive-newtype = "2.1.2" diesel_migrations = { version = "2.2.0", features = ["postgres"], optional = true } dotenv = "0.15.0" -futures = { version = "0.3.30", optional = true } +futures = { version = "0.3.31", optional = true } jsonwebtoken = { version = "9.3.0", optional = true } juniper = { version = "0.16.1", features = ["chrono", "schema-language", "uuid"] } lazy_static = "1.5.0" From 7864eb769a6a1f7da48b93065e1d6d2af07088dd Mon Sep 17 00:00:00 2001 From: Javier Arias Date: Fri, 22 Nov 2024 13:11:00 +0000 Subject: [PATCH 3/8] Export GraphQLRequest --- thoth-api/src/graphql/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thoth-api/src/graphql/mod.rs b/thoth-api/src/graphql/mod.rs index 1250f6dc7..51e333633 100644 --- a/thoth-api/src/graphql/mod.rs +++ b/thoth-api/src/graphql/mod.rs @@ -1,3 +1,6 @@ #[cfg(feature = "backend")] pub mod model; pub mod utils; + +#[cfg(feature = "backend")] +pub use juniper::http::GraphQLRequest; From de2d0c6c2e7dde6c53078c980df234bd2e9cbbc6 Mon Sep 17 00:00:00 2001 From: Javier Arias Date: Fri, 22 Nov 2024 13:12:09 +0000 Subject: [PATCH 4/8] Upgrade graphiql explorer plugin --- thoth-api-server/src/graphiql.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thoth-api-server/src/graphiql.rs b/thoth-api-server/src/graphiql.rs index 506b75b5e..185baecfd 100644 --- a/thoth-api-server/src/graphiql.rs +++ b/thoth-api-server/src/graphiql.rs @@ -70,8 +70,8 @@ pub fn graphiql_source(graphql_endpoint_url: &str) -> String { - - + +