Skip to content

Commit 7165440

Browse files
Merge pull request #814 from pharmaR/dev
Next Release: `v3.1.2`
2 parents b91c6e3 + b582c47 commit 7165440

14 files changed

+272
-247
lines changed

Diff for: .github/workflows/R-CMD-check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- uses: r-lib/actions/setup-r@v2
4444
with:
4545
r-version: 'renv'
46-
use-public-rspm: true
46+
use-public-rspm: false
4747
- uses: r-lib/actions/setup-renv@v2
4848

4949
- name: Install riskassessment

Diff for: .github/workflows/pkgdown.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: r-lib/actions/setup-r@v2
2828
with:
29-
use-public-rspm: true
29+
use-public-rspm: false
3030
r-version: 'renv'
3131

3232
- uses: r-lib/actions/setup-renv@v2

Diff for: DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: riskassessment
22
Title: A web app designed to interface with the `riskmetric` package
3-
Version: 3.1.1
3+
Version: 3.1.2
44
Authors@R: c(
55
person("Aaron", "Clark", role = c("aut", "cre"), email = "[email protected]"),
66
person("Jeff", "Thompson", role = c("aut"), email = "[email protected]", comment = "Co-Lead"),

Diff for: NEWS.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# riskassessment 3.1.2
2+
3+
Mostly minor changes here!
4+
5+
* Can now Open hyperlinks in a **new tab** from cards.
6+
* Added `inherits` to list of used configs
7+
* Fixed bug causing app to crash with `ELSE` condition in rules
8+
* Fixed bug where 'Decision Automation' header would disappear when non-risk decision automation rules existed but failed to include any that were based on the pkg risk score.
9+
* Incorporate newer version of `riskmetric` for dependency assessment
10+
111
# riskassessment 3.1.1
212

313
* Added navigation controls in Function Explorer tab (#644)

Diff for: R/mod_decision_automation.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ mod_decision_automation_server <- function(id, user, credentials){
511511
),
512512
uiOutput(ns("empty_auto")),
513513
)
514-
} else if (!rlang::is_empty(auto_decision_initial)) {
514+
} else if (!rlang::is_empty(risk_rule_update())) {
515515
tagList(
516516
br(),br(),
517517
hr(),

Diff for: R/mod_decision_automation_utils.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ assign_decisions <- function(rule_list, package, db_name = golem::get_golem_opti
2424
if (!is.na(decision)) break
2525
rule <- rule_list[[i]]
2626

27-
fn <- purrr::possibly(rule$mapper, otherwise = FALSE)
27+
if (rlang::is_function(rule$mapper) || rlang::is_formula(rule$mapper))
28+
fn <- purrr::possibly(rule$mapper, otherwise = FALSE)
2829
if (rule$type == "overall_score") {
2930
decision <- if (fn(get_pkg_info(package)$score)) rule$decision else NA_character_
3031
log_message <- glue::glue("Decision for the package {package} was assigned {decision} because the risk score returned TRUE for `{rule$condition}`")

Diff for: R/mod_metricBox.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ metricBoxServer <- function(id, title, desc, value, score = "NULL",
5454
} else if (is_url) {
5555
value <- a(ifelse(nchar(value) <= val_max_nchar, value,
5656
glue::glue("{stringr::str_sub(value, 1, (val_max_nchar - 3))}...")
57-
), href = value)
57+
), target = "_blank", href = value)
5858
} # unfortunately, adding the href can sometimes force the footer to fall
5959
# outside the card when val_max_nchar is too large.
6060
else if (value %in% c("TRUE", "FALSE")) {

Diff for: R/utils_startup.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ initialize_raa <- function(assess_db, cred_db, configuration) {
188188
if (isTRUE(getOption("shiny.testmode"))) return(NULL)
189189

190190
db_config <- if(missing(configuration)) get_db_config(NULL) else configuration
191-
used_configs <- c("assessment_db", "credential_db", "decisions", "credentials", "loggit_json", "metric_weights", "report_prefs", "package_repo", "use_shinymanager")
191+
used_configs <- c("assessment_db", "credential_db", "decisions", "credentials",
192+
"loggit_json", "metric_weights", "report_prefs",
193+
"package_repo", "use_shinymanager", "inherits")
192194
if (any(!names(db_config) %in% used_configs)) {
193195
names(db_config) %>%
194196
`[`(!. %in% used_configs) %>%

Diff for: inst/report_downloads/reportHtml.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ createCard <- function(title, desc, value, score = "NULL",
7676
else if(is_url)
7777
value <- a(ifelse(nchar(value) <= val_max_nchar, value,
7878
glue::glue('{stringr::str_sub(value, 1, (val_max_nchar - 3))}...')
79-
), href = value)
79+
), target = "_blank", href = value)
8080
# unfortunately, adding the href can sometimes force the footer to fall
8181
# outside the card when val_max_nchar is too large.
8282
else if(value %in% c('TRUE', 'FALSE'))

0 commit comments

Comments
 (0)