-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix log shiny inputs@main #86
Conversation
✅ All contributors have signed the CLA |
Code Coverage Summary
Diff against main
Results for commit: 24b01c8 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
I have read the CLA Document and I hereby sign the CLA |
Unit Tests Summary 1 files 3 suites 0s ⏱️ Results for commit 1ce985d. |
Unit Tests Summary 1 files 4 suites 0s ⏱️ Results for commit 24b01c8. ♻️ This comment has been updated with latest results. |
Hey, taking a look at |
I'm seeing Warning: Error in bindingIsLocked: no binding for "shiny_input_values" for Code
|
Hey, will investigate with teal.gallery apps |
Hey, while testing on Below is on [TRACE] 2024-09-03 12:50:24.0627 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_browser_ADSL_rows_current: 1:10 -> NULL
[TRACE] 2024-09-03 12:50:24.0651 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_browser_ADSL_rows_all: 1:56 -> NULL
[TRACE] 2024-09-03 12:50:24.0680 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_browser_ADSL_state: list(time = 1725360614844, start = 0, length = 10, order = list(), search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE), columns = list(list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(
search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)))) -> NULL
[TRACE] 2024-09-03 12:50:24.0706 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_summary_table_rows_current: 1 -> NULL
[TRACE] 2024-09-03 12:50:24.0730 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_summary_table_rows_all: 1 -> NULL
[TRACE] 2024-09-03 12:50:24.0756 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_summary_table_state: list(time = 1725360614738, start = 0, length = 10, order = list(), search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE), columns = list(list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)))) -> NULL
[TRACE] 2024-09-03 12:50:24.1447 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_summary_table_rows_current: NULL -> 1
[TRACE] 2024-09-03 12:50:24.1474 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_summary_table_rows_all: NULL -> 1
[TRACE] 2024-09-03 12:50:24.1614 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_summary_table_state: NULL -> list(time = 1725360624073, start = 0, length = 10, order = list(), search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE), columns = list(list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE))))
[TRACE] 2024-09-03 12:50:24.2086 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_browser_ADSL_rows_current: NULL -> 1:10
[TRACE] 2024-09-03 12:50:24.2125 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_browser_ADSL_rows_all: NULL -> 1:56
[TRACE] 2024-09-03 12:50:24.2160 pid:26108 token:[450bea7b] teal.modules.general teal-teal_modules-variable_browser-module Shiny input change detected in variable_browser_ADSL_state: NULL -> list(time = 1725360624152, start = 0, length = 10, order = list(), search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE), columns = list(list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(
search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)), list(visible = TRUE, search = list(search = "", smart = TRUE, regex = FALSE, caseInsensitive = TRUE)))) Looks like a lot of lines. However, when it comes to changes on the encodings panel: 3 changes yield 3 lines which is ideal. Below is on [TRACE] 2024-09-03 12:52:09.1345 pid:26108 token:[450bea7b] teal.modules.clinical teal-teal_modules-demographic_table-module Shiny input change detected in useNA: ifany -> no
[TRACE] 2024-09-03 12:52:12.7041 pid:26108 token:[450bea7b] teal.modules.clinical teal-teal_modules-demographic_table-module Shiny input change detected in numeric_stats: c("n", "mean_sd", "mean_ci", "geom_mean", "median", "median_ci", "quantiles", "range") -> c("n", "mean_ci", "geom_mean", "median", "median_ci", "quantiles", "range")
[TRACE] 2024-09-03 12:52:14.1469 pid:26108 token:[450bea7b] teal.modules.clinical teal-teal_modules-demographic_table-module Shiny input change detected in numeric_stats: c("n", "mean_ci", "geom_mean", "median", "median_ci", "quantiles", "range") -> c("n", "mean_ci", "median", "median_ci", "quantiles", "range") |
On another module [TRACE] 2024-09-03 12:53:43.0371 pid:26108 token:[450bea7b] teal.transform merge_datasets called with: ADSL datasets; arm_var, summarize_vars selectors; dplyr::inner_join merge function.
[TRACE] 2024-09-03 12:53:43.0419 pid:26108 token:[450bea7b] teal.transform merge_selectors called with: arm_var, summarize_vars selectors.
[TRACE] 2024-09-03 12:53:43.0446 pid:26108 token:[450bea7b] teal.transform get_dplyr_call_data called with: arm_var selectors.
[TRACE] 2024-09-03 12:53:43.0476 pid:26108 token:[450bea7b] teal.transform get_merge_key_grid called with: arm_var selectors.
[TRACE] 2024-09-03 12:53:43.0512 pid:26108 token:[450bea7b] teal.transform get_merge_key_pair called with: arm_var, arm_var selectors; STUDYID, USUBJID keys.
[TRACE] 2024-09-03 12:53:43.0538 pid:26108 token:[450bea7b] teal.transform get_dropped_filters called with arm_var selector.
[TRACE] 2024-09-03 12:53:43.0566 pid:26108 token:[450bea7b] teal.transform get_merge_key_pair returns STUDYID, USUBJID merge keys.
[TRACE] 2024-09-03 12:53:43.0595 pid:26108 token:[450bea7b] teal.transform get_dplyr_call called with: ADSL datasets; arm_var selectors.
[TRACE] 2024-09-03 12:53:43.0625 pid:26108 token:[450bea7b] teal.transform get_filter_call called with: ADSL dataset; filters.
[TRACE] 2024-09-03 12:53:43.0666 pid:26108 token:[450bea7b] teal.transform get_select_call called with: STUDYID, USUBJID, ARM, AGE, SEX, RACE columns.
[TRACE] 2024-09-03 12:53:43.0733 pid:26108 token:[450bea7b] teal.transform get_merge_call called with: arm_var selectors; dplyr::inner_join merge function.
[TRACE] 2024-09-03 12:53:43.0777 pid:26108 token:[450bea7b] teal.transform get_relabel_cols called with: arm_var, summarize_vars columns_source.
[TRACE] 2024-09-03 12:53:43.0808 pid:26108 token:[450bea7b] teal.transform get_anl_relabel_call called with: arm_var, summarize_vars columns_source; ANL merged dataset.
[TRACE] 2024-09-03 12:53:43.4158 pid:26108 token:[450bea7b] teal.transform get_relabel_call called with: Description of Planned Arm Age Sex Race labels.
[TRACE] 2024-09-03 12:53:43.4185 pid:26108 token:[450bea7b] teal.transform merge_datasets merge code executed resulting in ANL dataset.
[TRACE] 2024-09-03 12:53:43.4314 pid:26108 token:[450bea7b] teal.transform merge_datasets called with: ADSL datasets; arm_var selectors; dplyr::full_join merge function.
[TRACE] 2024-09-03 12:53:43.4342 pid:26108 token:[450bea7b] teal.transform merge_selectors called with: arm_var selectors.
[TRACE] 2024-09-03 12:53:43.4367 pid:26108 token:[450bea7b] teal.transform get_dplyr_call_data called with: arm_var selectors.
[TRACE] 2024-09-03 12:53:43.4393 pid:26108 token:[450bea7b] teal.transform get_merge_key_grid called with: arm_var selectors.
[TRACE] 2024-09-03 12:53:43.4427 pid:26108 token:[450bea7b] teal.transform get_merge_key_pair called with: arm_var, arm_var selectors; STUDYID, USUBJID keys.
[TRACE] 2024-09-03 12:53:43.4450 pid:26108 token:[450bea7b] teal.transform get_dropped_filters called with arm_var selector.
[TRACE] 2024-09-03 12:53:43.4471 pid:26108 token:[450bea7b] teal.transform get_merge_key_pair returns STUDYID, USUBJID merge keys.
[TRACE] 2024-09-03 12:53:43.4496 pid:26108 token:[450bea7b] teal.transform get_dplyr_call called with: ADSL datasets; arm_var selectors.
[TRACE] 2024-09-03 12:53:43.4519 pid:26108 token:[450bea7b] teal.transform get_filter_call called with: ADSL dataset; filters.
[TRACE] 2024-09-03 12:53:43.4539 pid:26108 token:[450bea7b] teal.transform get_select_call called with: STUDYID, USUBJID, ARM columns.
[TRACE] 2024-09-03 12:53:43.4560 pid:26108 token:[450bea7b] teal.transform get_merge_call called with: arm_var selectors; dplyr::full_join merge function.
[TRACE] 2024-09-03 12:53:43.4581 pid:26108 token:[450bea7b] teal.transform get_relabel_cols called with: arm_var columns_source.
[TRACE] 2024-09-03 12:53:43.4597 pid:26108 token:[450bea7b] teal.transform get_anl_relabel_call called with: arm_var columns_source; ANL_ADSL merged dataset.
[TRACE] 2024-09-03 12:53:43.4633 pid:26108 token:[450bea7b] teal.transform get_relabel_call called with: Description of Planned Arm labels.
[TRACE] 2024-09-03 12:53:43.4656 pid:26108 token:[450bea7b] teal.transform merge_datasets merge code executed resulting in ANL_ADSL dataset. |
Besides the reduction of |
Probably should if
I think merge should be entirely rewritten and changing logs won't change anything. I think reducing logs in transform isn't worth it now
Expected but not desired. datatable has many inputs wnd they are changed every change of the data. Could be excluded where |
@pawelru any more comments? |
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 have completed the review and submitted my comments. Please request me once again if you want me to look at this again.
Unit Test Performance Difference
Additional test case details
Results for commit 1b9c449 ♻️ 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.
Thanks 👍
Co-authored-by: Pawel Rucki <[email protected]> Signed-off-by: Dawid Kałędkowski <[email protected]>
This fixes:
NULL -> NULL
anymore.follow up:
To test:
set
options(teal.log_level = "TRACE")
before attaching packages and run teal.gallery apps to see the difference betweenmain
and{this}
branch