-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add wrapper for wait_for_value for output value. #1172
Conversation
ignore my previous comment! |
Code Coverage Summary
Diff against main
Results for commit: d8a3352 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 28 suites 2m 1s ⏱️ Results for commit d8a3352. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 767a7c2 ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this still requires some improvements.
- typo
- better
*_timeout
to be used - character vector is hardcoded twice
Consider reducing the logic on this wrapper and just passing modified input/output/export
and leave the deep checks to the parent method
wait_for_active_module_value = function(input = rlang::missing_arg(),
output = rlang::missing_arg(),
export = rlang::missing_arg(),
...) {
ns <- shiny::NS(self$active_module_ns())
if (!rlang::is_missing(input) && checkmate::test_string(input, min.chars = 1)) input <- ns(input)
if (!rlang::is_missing(output) && checkmate::test_string(output, min.chars = 1)) output <- ns(output)
if (!rlang::is_missing(export) && checkmate::test_string(export, min.chars = 1)) export <- ns(export)
self$wait_for_value(input = input, output = output, export = export, ...)
}
I like this idea, thanks @averissimo! Do you think we should use |
|
Merge branch 'wrapper_method_for_TealAppDriver' of https://github.com/insightsengineering/teal into wrapper_method_for_TealAppDriver # Conflicts: # R/TealAppDriver.R
Following our discussion with @averissimo, it appears that self$get_active_module_... methods are not useful as they return a value that is not being used. However, I have added the rest of the great suggestions here: a2f4392. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
One small comment about timeout
. After that it can be merged :-)
Signed-off-by: kartikeya kirar <[email protected]>
This PR introduces a wrapper for the wait_for_value method, specifically designed for output values.