-
-
Notifications
You must be signed in to change notification settings - Fork 45
Fix decorator problems after a good first run #1515
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
base: main
Are you sure you want to change the base?
Conversation
Unit Test Performance Difference
Additional test case details
Results for commit 0bc1052 ♻️ This comment has been updated with latest results. |
Code Coverage Summary
Diff against main
Results for commit: 9225ed0 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 26 suites 2m 58s ⏱️ Results for commit 9225ed0. ♻️ This comment has been updated with latest results. |
📑 Journal (rolling update):
Note: UI changes about placement and what should show where should be discussed #1509 Latest screenshot Older screenshots_(nothing to see here yet)_ |
@@ -371,7 +364,7 @@ srv_teal_module.teal_module <- function(id, | |||
modules = modules | |||
) | |||
|
|||
summary_table <- srv_data_summary("data_summary", module_teal_data) | |||
summary_table <- srv_data_summary("data_summary", summary_data) # Only updates on success |
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.
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 like that there is not data summary as it cannot be provided, but maybe it was hidden because this makes the different order pop up the error message more for the users. But I prefer to not have hidding elements messing with the layout of the app and leave the section even if empty.
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 left a couple of comments as I couldn't run yet the branch. The most important is to make it easier to pull the branch. I had messed my git config but I fixed it.
It would also great if the example app at the beginning of the PR could be updated to really open an app (to avoid me messing it and test different things)
@@ -371,7 +364,7 @@ srv_teal_module.teal_module <- function(id, | |||
modules = modules | |||
) | |||
|
|||
summary_table <- srv_data_summary("data_summary", module_teal_data) | |||
summary_table <- srv_data_summary("data_summary", summary_data) # Only updates on success |
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 like that there is not data summary as it cannot be provided, but maybe it was hidden because this makes the different order pop up the error message more for the users. But I prefer to not have hidding elements messing with the layout of the app and leave the section even if empty.
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.
Code looks good I left a couple of comments but I think this resolves the issue:
2025-05-23_15-00-44.mp4
I think the code on "example app" is not the one that generates the leading screenshots. But if there is further testing to be done let me know, the checks locally (and remotely) run well
!inherits(try(transformed_teal_data(), silent = TRUE), "teal_data") && | ||
inherits(filtered_teal_data(), "teal_data") |
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.
As transformed_teal_data
depends on the output of filtered_teal_data
it can be omitted and I think we would get the same result (at least on the app on the issue it works as before).
!inherits(try(transformed_teal_data(), silent = TRUE), "teal_data") && | |
inherits(filtered_teal_data(), "teal_data") | |
!inherits(try(transformed_teal_data(), silent = TRUE), "teal_data") |
# Disable all elements if original data is not yet a teal_data | ||
observeEvent(data_original_handled(), { | ||
shinyjs::toggleState( | ||
"wrapper_panel", |
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 there is a div with id = "wrapper" for modules tabs, but where does this _panel
come from? Would it work on teal modules used directly on shiny? Just thinking aloud after resolving an issue coming from an id not matching between different parts.
data_handled() | ||
data_original_handled() |
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.
Nice trick, never thought about adding two expressions as a single event. Would be the same as to have only data_handled()
? Or in reversed order?
Pull Request
Fixes #1511
Changes description
teal_transform_data
on initializationdecorators
🤖 Example app