From 38ebc45822b2c976813afe5461a8616cd0c8a3fb Mon Sep 17 00:00:00 2001 From: rhigman <73792779+rhigman@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:54:04 +0100 Subject: [PATCH 1/3] Increase limit so that contribution modal dropdown always shows full contributor list --- CHANGELOG.md | 2 ++ thoth-app/src/component/contributions_form.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3494b12..05a0e87d 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] +### Fixed + - [622](https://github.com/thoth-pub/thoth/pull/622) - Fix bug where list of contributors in New/Edit Contribution form was truncated ## [[0.12.7]](https://github.com/thoth-pub/thoth/releases/tag/v0.12.7) - 2024-08-28 ### Changed diff --git a/thoth-app/src/component/contributions_form.rs b/thoth-app/src/component/contributions_form.rs index ac44b9da..c9a186c5 100644 --- a/thoth-app/src/component/contributions_form.rs +++ b/thoth-app/src/component/contributions_form.rs @@ -170,7 +170,9 @@ impl Component for ContributionsFormComponent { if show_form { let body = ContributorsRequestBody { variables: Variables { - limit: Some(100), + // Dropdown shown in modal form must contain full contributor list, + // in case user is editing and wants to switch between them + limit: Some(99999), ..Default::default() }, ..Default::default() From 5a199f3c6a5a73b7bb501d412b2bca63318fc2d8 Mon Sep 17 00:00:00 2001 From: Javier Arias Date: Tue, 3 Sep 2024 14:15:06 +0100 Subject: [PATCH 2/3] Bump v0.12.8 --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 12 ++++++------ thoth-api-server/Cargo.toml | 6 +++--- thoth-api/Cargo.toml | 4 ++-- thoth-app-server/Cargo.toml | 2 +- thoth-app/Cargo.toml | 6 +++--- thoth-client/Cargo.toml | 8 ++++---- thoth-errors/Cargo.toml | 2 +- thoth-export-server/Cargo.toml | 8 ++++---- 9 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 043eaf91..76ed9fb0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3040,7 +3040,7 @@ dependencies = [ [[package]] name = "thoth" -version = "0.12.7" +version = "0.12.8" dependencies = [ "cargo-husky", "clap", @@ -3055,7 +3055,7 @@ dependencies = [ [[package]] name = "thoth-api" -version = "0.12.7" +version = "0.12.8" dependencies = [ "actix-web", "argon2rs", @@ -3084,7 +3084,7 @@ dependencies = [ [[package]] name = "thoth-api-server" -version = "0.12.7" +version = "0.12.8" dependencies = [ "actix-cors", "actix-identity", @@ -3100,7 +3100,7 @@ dependencies = [ [[package]] name = "thoth-app" -version = "0.12.7" +version = "0.12.8" dependencies = [ "anyhow", "chrono", @@ -3129,7 +3129,7 @@ dependencies = [ [[package]] name = "thoth-app-server" -version = "0.12.7" +version = "0.12.8" dependencies = [ "actix-cors", "actix-web", @@ -3139,7 +3139,7 @@ dependencies = [ [[package]] name = "thoth-client" -version = "0.12.7" +version = "0.12.8" dependencies = [ "chrono", "graphql_client", @@ -3155,7 +3155,7 @@ dependencies = [ [[package]] name = "thoth-errors" -version = "0.12.7" +version = "0.12.8" dependencies = [ "actix-web", "csv", @@ -3176,7 +3176,7 @@ dependencies = [ [[package]] name = "thoth-export-server" -version = "0.12.7" +version = "0.12.8" dependencies = [ "actix-cors", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 5130d104..b3078bf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" @@ -16,11 +16,11 @@ maintenance = { status = "actively-developed" } members = ["thoth-api", "thoth-api-server", "thoth-app", "thoth-app-server", "thoth-client", "thoth-errors", "thoth-export-server"] [dependencies] -thoth-api = { version = "=0.12.7", path = "thoth-api", features = ["backend"] } -thoth-api-server = { version = "=0.12.7", path = "thoth-api-server" } -thoth-app-server = { version = "=0.12.7", path = "thoth-app-server" } -thoth-errors = { version = "=0.12.7", path = "thoth-errors" } -thoth-export-server = { version = "=0.12.7", path = "thoth-export-server" } +thoth-api = { version = "=0.12.8", path = "thoth-api", features = ["backend"] } +thoth-api-server = { version = "=0.12.8", path = "thoth-api-server" } +thoth-app-server = { version = "=0.12.8", path = "thoth-app-server" } +thoth-errors = { version = "=0.12.8", path = "thoth-errors" } +thoth-export-server = { version = "=0.12.8", path = "thoth-export-server" } clap = { version = "4.5.16", features = ["cargo", "env"] } dialoguer = { version = "0.11.0", features = ["password"] } dotenv = "0.15.0" diff --git a/thoth-api-server/Cargo.toml b/thoth-api-server/Cargo.toml index 533846fd..a9c7dfa1 100644 --- a/thoth-api-server/Cargo.toml +++ b/thoth-api-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth-api-server" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" @@ -9,8 +9,8 @@ repository = "https://github.com/thoth-pub/thoth" readme = "README.md" [dependencies] -thoth-api = { version = "=0.12.7", path = "../thoth-api", features = ["backend"] } -thoth-errors = { version = "=0.12.7", path = "../thoth-errors" } +thoth-api = { version = "=0.12.8", path = "../thoth-api", features = ["backend"] } +thoth-errors = { version = "=0.12.8", path = "../thoth-errors" } actix-web = "4.9" actix-cors = "0.7.0" actix-identity = "0.7.1" diff --git a/thoth-api/Cargo.toml b/thoth-api/Cargo.toml index 2dccc3a9..87fa8737 100644 --- a/thoth-api/Cargo.toml +++ b/thoth-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth-api" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" @@ -16,7 +16,7 @@ maintenance = { status = "actively-developed" } backend = ["diesel", "diesel-derive-enum", "diesel_migrations", "futures", "actix-web", "jsonwebtoken"] [dependencies] -thoth-errors = { version = "=0.12.7", path = "../thoth-errors" } +thoth-errors = { version = "=0.12.8", path = "../thoth-errors" } actix-web = { version = "4.8", optional = true } argon2rs = "0.2.5" isbn2 = "0.4.0" diff --git a/thoth-app-server/Cargo.toml b/thoth-app-server/Cargo.toml index 22aebc25..3d85fcde 100644 --- a/thoth-app-server/Cargo.toml +++ b/thoth-app-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth-app-server" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" diff --git a/thoth-app/Cargo.toml b/thoth-app/Cargo.toml index 70b2ffa6..0f1db8be 100644 --- a/thoth-app/Cargo.toml +++ b/thoth-app/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth-app" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" @@ -36,8 +36,8 @@ uuid = { version = "1.10.0", features = ["serde", "v4"] } # `getrandom` is a dependency of `uuid`, we need to explicitly import and include the `js` feature to enable wasm # https://docs.rs/getrandom/latest/getrandom/#webassembly-support getrandom = { version = "0.2", features = ["js"] } -thoth-api = { version = "=0.12.7", path = "../thoth-api" } -thoth-errors = { version = "=0.12.7", path = "../thoth-errors" } +thoth-api = { version = "=0.12.8", path = "../thoth-api" } +thoth-errors = { version = "=0.12.8", path = "../thoth-errors" } [build-dependencies] dotenv = "0.15.0" diff --git a/thoth-client/Cargo.toml b/thoth-client/Cargo.toml index 268c13ab..e8540b05 100644 --- a/thoth-client/Cargo.toml +++ b/thoth-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth-client" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" @@ -10,8 +10,8 @@ readme = "README.md" build = "build.rs" [dependencies] -thoth-api = {version = "=0.12.7", path = "../thoth-api" } -thoth-errors = {version = "=0.12.7", path = "../thoth-errors" } +thoth-api = {version = "=0.12.8", path = "../thoth-api" } +thoth-errors = {version = "=0.12.8", path = "../thoth-errors" } graphql_client = "0.14.0" chrono = { version = "0.4.38", features = ["serde"] } reqwest = { version = "0.11", features = ["json"] } @@ -22,4 +22,4 @@ serde_json = "1.0" uuid = { version = "1.10.0", features = ["serde"] } [build-dependencies] -thoth-api = { version = "=0.12.7", path = "../thoth-api", features = ["backend"] } +thoth-api = { version = "=0.12.8", path = "../thoth-api", features = ["backend"] } diff --git a/thoth-errors/Cargo.toml b/thoth-errors/Cargo.toml index a36c2c66..cee24b86 100644 --- a/thoth-errors/Cargo.toml +++ b/thoth-errors/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth-errors" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" diff --git a/thoth-export-server/Cargo.toml b/thoth-export-server/Cargo.toml index f10427e2..db43f9f3 100644 --- a/thoth-export-server/Cargo.toml +++ b/thoth-export-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "thoth-export-server" -version = "0.12.7" +version = "0.12.8" authors = ["Javier Arias ", "Ross Higman "] edition = "2021" license = "Apache-2.0" @@ -10,9 +10,9 @@ readme = "README.md" build = "build.rs" [dependencies] -thoth-api = { version = "=0.12.7", path = "../thoth-api" } -thoth-errors = { version = "=0.12.7", path = "../thoth-errors" } -thoth-client = { version = "=0.12.7", path = "../thoth-client" } +thoth-api = { version = "=0.12.8", path = "../thoth-api" } +thoth-errors = { version = "=0.12.8", path = "../thoth-errors" } +thoth-client = { version = "=0.12.8", path = "../thoth-client" } actix-web = "4.9" actix-cors = "0.7.0" cc_license = "0.1.0" From a0d7b9651b908dd6cd5cb6194532491a1089b02f Mon Sep 17 00:00:00 2001 From: Javier Arias Date: Tue, 3 Sep 2024 14:15:31 +0100 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05a0e87d..7b351a95 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] + +## [[0.12.8]](https://github.com/thoth-pub/thoth/releases/tag/v0.12.8) - 2024-09-03 ### Fixed - [622](https://github.com/thoth-pub/thoth/pull/622) - Fix bug where list of contributors in New/Edit Contribution form was truncated