-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Remove TealData checks #1406
Remove TealData checks #1406
Conversation
✅ All contributors have signed the CLA |
I have read the CLA Document and I hereby sign the CLA |
About removing ui and server checks for datasets arguments from #server It previously only was a warning, I converted it to an error. This should push users to using data instead. uiCurrently it errors even if it is not used: current> fa <- module(ui = function(id, data){paste("ha")})
[ERROR] 2024-11-11 12:35:02.0155 pid:10492 token:[] teal In 'module(ui = function(id, data) "ha")': Called from module(label = "module", ...)
UI with `data` or `datasets` argument is no longer accepted.
If some UI inputs depend on data, please move the logic to your server instead.
Possible solutions are renderUI() or updateXyzInput() functions.
Error in module(ui = function(id, data) { :
Called from module(label = "module", ...)
UI with `data` or `datasets` argument is no longer accepted.
If some UI inputs depend on data, please move the logic to your server instead.
Possible solutions are renderUI() or updateXyzInput() functions. If we remove it, it will be silently swallowed by the removed> devtools::load_all(".")
ℹ Loading teal
[INFO] 2024-11-11 12:35:27.2540 pid:10492 token:[] teal You are using teal version 0.15.2.9084
removed> fa <- module(ui = function(id, data){paste("ha")})
removed> I kept it, I think it can be removed when the dataset check for server is also removed. While checking this I realize that the teal package (not sure about the other packages) is a mix of usages of rlang deprecate_soft, deprecate_stop and warn and stop. Maybe this should be tackled to simplify messages to the user? There is also the |
Unit Tests Summary 1 files 25 suites 9m 9s ⏱️ Results for commit 2d1080a. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Results for commit 2d36e14 ♻️ This comment has been updated with latest results. |
@llrs-roche left you 2 comments. |
Co-authored-by: Marcin <[email protected]> Signed-off-by: Lluís Revilla <[email protected]>
…ng/teal into 1386_deprecate
All other parameters are not checked and are silently swallowed by ...
Co-authored-by: Marcin <[email protected]> Signed-off-by: Lluís Revilla <[email protected]>
…ng/teal into 1386_deprecate
…the github action
Code Coverage Summary
Diff against main
Results for commit: 2d1080a Minimum allowed coverage is ♻️ This comment has been updated with latest results |
… the error level.
…ng/teal into 1386_deprecate
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Lluís Revilla <[email protected]>
To summarize the changes after the discussion: I only removed TealData checks on module. modules ui and server formals: Not modified, waiting for guidelines to decide how to proceed. |
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.
👍
Pull Request
Fixes #1386