From 4f429f9d5a56d18e7cb0c905d1c2d74742c245a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz?= Date: Tue, 26 Mar 2024 14:47:18 +0000 Subject: [PATCH 1/2] Update version to 1.0.1 --- DESCRIPTION | 2 +- NEWS.md | 10 ++++++++++ inst/plumber/unbiased_api/plumber.R | 2 +- tests/testthat/test-error-handling.R | 4 ++-- vignettes/articles/references.bib | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6798141..aeb4699 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: unbiased Title: Unbiased: Production-Grade Randomization API -Version: 1.0.0 +Version: 1.0.1 Authors@R: c( person("Kamil", "Sijko", , "kamil.sijko@ttsi.com.pl", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-2203-1065")), diff --git a/NEWS.md b/NEWS.md index 9a562d1..3243900 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,13 @@ +# unbiased 1.0.1 + +## Bug Fixes + +- Fixed and issue when too aggressive input validation in the `randomize` endpoint was causing the API to reject valid requests with `current_state` of length other than 2. + +## DevOps + +- Updated docker build GitHub Action to use the latest version of cosign and checkout actions. + # unbiased 1.0.0 ## New Features diff --git a/inst/plumber/unbiased_api/plumber.R b/inst/plumber/unbiased_api/plumber.R index 4b1243b..1c3b79d 100644 --- a/inst/plumber/unbiased_api/plumber.R +++ b/inst/plumber/unbiased_api/plumber.R @@ -10,7 +10,7 @@ #* url = "https://ttscience.github.io/unbiased/") #* @apiLicense list(name = "MIT", #* url = "https://github.com/ttscience/unbiased/LICENSE.md") -#* @apiVersion 1.0.0 +#* @apiVersion 1.0.1 #* @apiTag initialize Endpoints that initialize study with chosen #* randomization method and parameters. #* @apiTag randomize Endpoints that randomize individual patients after the diff --git a/tests/testthat/test-error-handling.R b/tests/testthat/test-error-handling.R index d5fd1bf..ae5aa50 100644 --- a/tests/testthat/test-error-handling.R +++ b/tests/testthat/test-error-handling.R @@ -4,7 +4,7 @@ testthat::test_that("uses correct environment variables when setting up sentry", SENTRY_DSN = "https://sentry.io/123", GITHUB_SHA = "abc", SENTRY_ENVIRONMENT = "production", - SENTRY_RELEASE = "1.0.0" + SENTRY_RELEASE = "1.0.1" ) ) @@ -18,7 +18,7 @@ testthat::test_that("uses correct environment variables when setting up sentry", testthat::expect_equal(app_name, "unbiased") testthat::expect_equal(app_version, "abc") testthat::expect_equal(environment, "production") - testthat::expect_equal(release, "1.0.0") + testthat::expect_equal(release, "1.0.1") }, .package = "sentryR", ) diff --git a/vignettes/articles/references.bib b/vignettes/articles/references.bib index 2a1fe58..3d8eaba 100644 --- a/vignettes/articles/references.bib +++ b/vignettes/articles/references.bib @@ -217,6 +217,6 @@ @Manual{unbiased title = {unbiased: Diverse Randomization Algorithms for Clinical Trials}, author = {Kamil Sijko and Kinga Sałata and Aleksandra Duda and Łukasz Wałejko}, year = {2024}, - note = {R package version 1.0.0}, + note = {R package version 1.0.1}, url = {https://ttscience.github.io/unbiased/}, } From a30120915b4c1cb1ab9a7197ad10cb30fd9fd7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz?= Date: Tue, 26 Mar 2024 14:47:18 +0000 Subject: [PATCH 2/2] Update version to 1.0.1 --- DESCRIPTION | 2 +- NEWS.md | 10 ++++++++++ inst/plumber/unbiased_api/plumber.R | 2 +- tests/testthat/test-error-handling.R | 4 ++-- vignettes/articles/references.bib | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6798141..aeb4699 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: unbiased Title: Unbiased: Production-Grade Randomization API -Version: 1.0.0 +Version: 1.0.1 Authors@R: c( person("Kamil", "Sijko", , "kamil.sijko@ttsi.com.pl", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-2203-1065")), diff --git a/NEWS.md b/NEWS.md index 9a562d1..3243900 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,13 @@ +# unbiased 1.0.1 + +## Bug Fixes + +- Fixed and issue when too aggressive input validation in the `randomize` endpoint was causing the API to reject valid requests with `current_state` of length other than 2. + +## DevOps + +- Updated docker build GitHub Action to use the latest version of cosign and checkout actions. + # unbiased 1.0.0 ## New Features diff --git a/inst/plumber/unbiased_api/plumber.R b/inst/plumber/unbiased_api/plumber.R index 4b1243b..1c3b79d 100644 --- a/inst/plumber/unbiased_api/plumber.R +++ b/inst/plumber/unbiased_api/plumber.R @@ -10,7 +10,7 @@ #* url = "https://ttscience.github.io/unbiased/") #* @apiLicense list(name = "MIT", #* url = "https://github.com/ttscience/unbiased/LICENSE.md") -#* @apiVersion 1.0.0 +#* @apiVersion 1.0.1 #* @apiTag initialize Endpoints that initialize study with chosen #* randomization method and parameters. #* @apiTag randomize Endpoints that randomize individual patients after the diff --git a/tests/testthat/test-error-handling.R b/tests/testthat/test-error-handling.R index d5fd1bf..ae5aa50 100644 --- a/tests/testthat/test-error-handling.R +++ b/tests/testthat/test-error-handling.R @@ -4,7 +4,7 @@ testthat::test_that("uses correct environment variables when setting up sentry", SENTRY_DSN = "https://sentry.io/123", GITHUB_SHA = "abc", SENTRY_ENVIRONMENT = "production", - SENTRY_RELEASE = "1.0.0" + SENTRY_RELEASE = "1.0.1" ) ) @@ -18,7 +18,7 @@ testthat::test_that("uses correct environment variables when setting up sentry", testthat::expect_equal(app_name, "unbiased") testthat::expect_equal(app_version, "abc") testthat::expect_equal(environment, "production") - testthat::expect_equal(release, "1.0.0") + testthat::expect_equal(release, "1.0.1") }, .package = "sentryR", ) diff --git a/vignettes/articles/references.bib b/vignettes/articles/references.bib index 2a1fe58..3d8eaba 100644 --- a/vignettes/articles/references.bib +++ b/vignettes/articles/references.bib @@ -217,6 +217,6 @@ @Manual{unbiased title = {unbiased: Diverse Randomization Algorithms for Clinical Trials}, author = {Kamil Sijko and Kinga Sałata and Aleksandra Duda and Łukasz Wałejko}, year = {2024}, - note = {R package version 1.0.0}, + note = {R package version 1.0.1}, url = {https://ttscience.github.io/unbiased/}, }