-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
datanames slot in teal_transform_module
(ignore @datanames
)
#1334
Conversation
Unit Tests Summary 1 files 25 suites 9m 8s ⏱️ Results for commit b8cfe4c. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit e8a6613 ♻️ This comment has been updated with latest results. |
@datanames
teal_transform_module
(ignore @datanames
)
Thanks for this alternative solution. To better illustrate the different scenarios, I've created a table based on the example app that @gogonzo provided. Just to clarify, the Scenario table
We can use this as reference if needed. |
What I like
This makes sense to me. The transform module is designed to be local to the teal module, and
My understanding is that the purpose of
|
Good point, thanks! I think so that
Yes, that's true.
Yes, app-developers can skip |
Code Coverage Summary
Diff against main
Results for commit: b8cfe4c Minimum allowed coverage is ♻️ This comment has been updated with latest results |
I like that we have a single point of truth I actually do like that app-developers can skip |
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.
Minor sentence update/suggestion.
Everything else looks good.
Thanks for the thinking hard on this!
Co-authored-by: Dony Unardi <[email protected]> Signed-off-by: Dawid Kałędkowski <[email protected]>
Alternative solution to #1327
If you look at the
?module
documentation ofdatanames
argument, there is nothing about "if datanames is 'all' then all datasets from @datanames will be taken". It is very hard to explain asdatanames
is not only amodule
property, which makes it difficult to describe in a documentation. However, in the vignette we have it described in details see hereHere we have a following rules:
module$datanames
if specified.module(transform)
then module appendstransform$datanames
tomodule$datanames
to always keepmodule$datanames
as a single point of truth.transform
is always added as an argument ofmodule()
function, so resolving datanames there makes sense and is the most optimal.module$datanames = "all"
then all objects from transformeddata
is passed to the module.module |> set_datanames()
to limit displayed datasetsAdvantage:
module$datanames
)data@datanames
datanames
for the whole group of modules if neededDisadvantages:
modules(mod1, mod2, mod3) |> set_datanames()
then each module's datanames will be re-set even if theirdatanames
have been set to what is exactly needed. Possible solution is toappend_datanames()
instead ofset_datanames()
, WDYT?app