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

[Feature Request]: Include transformators to the tm_ modules #1441

Open
3 tasks done
gogonzo opened this issue Jan 9, 2025 · 4 comments
Open
3 tasks done

[Feature Request]: Include transformators to the tm_ modules #1441

gogonzo opened this issue Jan 9, 2025 · 4 comments
Assignees
Labels
core enhancement New feature or request

Comments

@gogonzo
Copy link
Contributor

gogonzo commented Jan 9, 2025

Feature description

Should be a simple fix:

  • extend tm_* formals by transformators = list()
  • pass transformators argument value to module(..., transformators = transformators).

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.
@m7pr
Copy link
Contributor

m7pr commented Jan 14, 2025

m7pr added a commit that referenced this issue Jan 15, 2025
Part of #1441
A reviewed documentation for `transformators` parameter

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@gogonzo
Copy link
Contributor Author

gogonzo commented Jan 16, 2025

@m7pr why not apply to teal.osprey, teal.goshawk, teal.modules.hermes and teal.modules.helios?

@m7pr
Copy link
Contributor

m7pr commented Jan 16, 2025

@gogonzo I will, once we get this conversation sorted out insightsengineering/teal.modules.general#826 (comment)

@m7pr
Copy link
Contributor

m7pr commented Jan 16, 2025

teal.osprey, teal.goshawk, teal.modules.hermes and teal.modules.helios would also benefit from decorators addition

m7pr added a commit to insightsengineering/teal.modules.general that referenced this issue Jan 20, 2025
insightsengineering/teal#1441

Included `transformators` parameter in modules. This is passed to
`teal::module` that does assertions and checks on this parameter.

Did not introduce for `tm_data_table`, `tm_file_viewer` and
`tm_front_page` as we also didn't introduce `decorators` for those
modules. We can always introduce, if there is a user request, but I
don't think there will ever be.

Lastly, a food for thought: default `decorators` value is `NULL` where
default `transformators` value is `list()`. Maybe we can introduce a
check, that allows `transformators` to be `NULL` on default, and which
changes `NULL` to `list()`.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lluís Revilla <[email protected]>
m7pr added a commit to insightsengineering/teal.goshawk that referenced this issue Jan 21, 2025
insightsengineering/teal#1441

Included `transformators` parameter in modules. This is passed to
`teal::module` that does assertions and checks on this parameter.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
m7pr added a commit to insightsengineering/teal.osprey that referenced this issue Jan 21, 2025
insightsengineering/teal#1441

Included `transformators` parameter in modules. This is passed to
`teal::module` that does assertions and checks on this parameter.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
m7pr added a commit to insightsengineering/teal.modules.clinical that referenced this issue Jan 22, 2025
insightsengineering/teal#1441

Included `transformators` parameter in modules. This is passed to
`teal::module` that does assertions and checks on this parameter.

A food for thought: default `decorators` value is `NULL` where default
`transformators` value is `list()`. Maybe we can introduce a check, that
allows `transformators` to be `NULL` on default, and which changes
`NULL` to `list()`.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants