merge_srv fix for module that pairs merge$data() with merge$variables()#83
Open
m7pr wants to merge 1 commit into
Open
merge_srv fix for module that pairs merge$data() with merge$variables()#83m7pr wants to merge 1 commit into
m7pr wants to merge 1 commit into
Conversation
Contributor
Code Coverage SummaryDiff against mainResults for commit: c1f2373 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Contributor
Unit Tests Summary 1 files 11 suites 18s ⏱️ Results for commit c1f2373. ♻️ This comment has been updated with latest results. |
Contributor
Unit Test Performance Difference
Additional test case details
Results for commit 68ede51 ♻️ This comment has been updated with latest results. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discovered at teal.modules.clinical at
279-interactive_variables@mainbranch at CI/CD failuers https://github.com/insightsengineering/teal.modules.clinical/actions/runs/25669146947/job/75349459478?pr=1470at
test-shinytest2-tm_t_pp_laboratory.RfileMotivation
merge_srvexposed merged column names throughvariables_selected, which was implemented aseventReactive(selectors_unwrapped(), …). The body of that expression also callsteal.data::join_keys(data()), buteventReactiveonly invalidates when its first argument changes. As a result, when the incomingteal_datareactive updates while pick selections stay the same (e.g. after filtering or other upstream data changes), the merged dataset reactive (data_r) can refresh whilevariables()still returns a stale mapping. Any module that pairsmerge$data()withmerge$variables()to build analysis or UI code can then see column names that no longer match the merged frame.