Skip to content
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

Review decorator vignette #1470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

donyunardi
Copy link
Contributor

@donyunardi donyunardi marked this pull request as ready for review January 30, 2025 05:36
To include decorators in a `teal` module, pass them as arguments (`ui_args` and `server_args`) to the module’s `ui` and
`server` components, where they will be used by `ui/srv_teal_transform_module`.
To include decorators in a `teal` module, pass them as arguments (`ui_args` and `server_args`) to the module’s `ui` and
`server` components, where they will be used by `ui_transform_teal_data` and `srv_transform_teal_data`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gogonzo am I using the right function name?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Closing a conversation

@@ -510,7 +515,7 @@ interactive_decorator_3 <- teal_transform_module(

### Application

As you might have noted, the x axis title from the first decorator will be used but won't show up on the resulting plot:
As you might have noticed, the x-axis title from the first decorator will be used but will not appear in the resulting plot:
Copy link
Contributor Author

@donyunardi donyunardi Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gogonzo
Could you please double check the app for this section? From what I can see, only decorator_1 is functional.
No changes to the plot's x or y axis when I toggled to decorator_2 and decorator_3.

Is this as expected?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, third decorator doesn't make sense.

I think this vignette is too long. There are too many examples doing every possible thing. I think that instead of having a section with multiple decorators there should be a tab in the first example with two decorators. Also the last example with multiple outputs - Yes, it is a real case but come on, let's give app developers space for creativity and let them utilise decorators in their way.

Copy link
Contributor

github-actions bot commented Jan 30, 2025

Unit Tests Summary

  1 files   28 suites   10m 19s ⏱️
278 tests 274 ✅ 4 💤 0 ❌
540 runs  536 ✅ 4 💤 0 ❌

Results for commit 08d3dcf.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 30, 2025

Unit Test Performance Difference

Test Suite $Status$ Time on main $±Time$ $±Tests$ $±Skipped$ $±Failures$ $±Errors$
module_teal 💚 $129.70$ $-6.47$ $0$ $0$ $0$ $0$
shinytest2-reporter 💚 $66.68$ $-1.81$ $0$ $0$ $0$ $0$
shinytest2-teal_data_module 💚 $47.74$ $-1.75$ $0$ $0$ $0$ $0$

Results for commit 5fc8359

♻️ This comment has been updated with latest results.

@gogonzo gogonzo self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants