Fixes 4 modules that had problems with migration to picks#1542
Fixes 4 modules that had problems with migration to picks#1542averissimo wants to merge 11 commits into
picks#1542Conversation
…into fix_mods@279-interactive_variables@main * origin/279-interactive_variables@main: remove skills simplify tm_t_binary_outcome (#1538) Fixes in modules and documentation after manual revision of module migration (#1536) Fix test@279 interactive variables@main (#1534) Unify module_argument template and documentation of arguments (#1532) Unify picks feature branch: default parameters (#1533)
|
Modules no longer use Note: different levels of changes were required for the 4 affected modules |
Unit Tests Summary 1 files ± 0 74 suites ±0 2h 0m 9s ⏱️ + 6m 57s For more details on these failures and errors, see this check. Results for commit fa47a25. ± Comparison against base commit b681610. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceTest suite performance difference
Additional test case details
Results for commit 3f884d1 ♻️ This comment has been updated with latest results. |
picks
…active_variables@main Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
|
@osenan please review this PR :-) |
osenan
left a comment
There was a problem hiding this comment.
Great job with the changes. That is a big step forward. I do not identify any error with the new validations. I tested two modules manually and they worked fine. With the changes in the validation and in the defaults tests should be updated. We have several e2e test failing. I also see that the description is not matching the expectation in some cases. Please fix that before merging, but the big step is already done.
Please also fix the other checks.
| need(length(anl_selectors$aval_var()$variables$selected) >= 1L, "An analysis variable is required") | ||
| validate_input( # delayed validation for responders until after choices are updated based on PARAMCD selection | ||
| inputId = "responders", | ||
| condition = !is.null(input$responders) && length(input$responders) > 0L, |
There was a problem hiding this comment.
very good way to combine the aval_var and arm_var in something more informative for the user
| inputId = "conf_level", | ||
| condition = { | ||
| cv <- suppressWarnings(as.numeric(input$conf_level)) | ||
| !is.na(cv) && cv > 0 && cv < 1 |
There was a problem hiding this comment.
like this it will not allow to put edge cases 0 and 1
| inputId = "conf_level", | ||
| condition = { | ||
| cv <- suppressWarnings(as.numeric(input$conf_level)) | ||
| !is.na(cv) && cv > 0 && cv < 1 |
There was a problem hiding this comment.
Is not a big deal, as in other modules, here we do not accept anymore the edge cases of 0 and 1. But we do not have to change it
| plot_before <- app_driver$get_active_module_plot_output("patient_timeline_plot") | ||
| set_teal_picks_slot(app_driver, "aeterm", "variables", character(0L)) | ||
| testthat::expect_false(identical(plot_before, app_driver$get_active_module_plot_output("patient_timeline_plot"))) | ||
| app_driver$expect_validation_error() |
There was a problem hiding this comment.
why there is a validation error? According to the test title it should not be
| plot_before <- app_driver$get_active_module_plot_output("patient_timeline_plot") | ||
| set_teal_picks_slot(app_driver, "cmdecod", "variables", character(0L)) | ||
| testthat::expect_false(identical(plot_before, app_driver$get_active_module_plot_output("patient_timeline_plot"))) | ||
| app_driver$expect_validation_error() |
There was a problem hiding this comment.
previously we were not expecting validation error
Pull Request
WIP to fix
iv_rusage and other problems detected on manual review.Changes description
arm_ref_comp_buckets_validatortm_t_binary_outcometm_g_citm_t_coxregtm_t_glm_counts