-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
module()$datanames
: unify combined_datanames
no matter what's the length of transformers
#1344
Conversation
Code Coverage Summary
Diff against main
Results for commit: 7212eb0 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 25 suites 9m 16s ⏱️ Results for commit 7212eb0. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceAdditional test case details
Results for commit fe89e64 ♻️ This comment has been updated with latest results. |
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.
In module_nested_tabs
there is if (identical(modules$datanames, "all"))
- c("ADSL", "ADTTE", "all")
will not satisfy this condition.
Please be aware that output of the module$datanames
should:
- determine datanames used for module to work
- determine datanames for transform to work
Please search for every "all" phrase in a code and see how is it handled.
@gogonzo Then I guess we should go the other way and pick the solution from my suggestion
|
Yes, but transformers doesn't have
|
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
module()$datanames
are affected bydatanames
parameter anddatanames
coming out oftransformers
.So far this is not unified, and the outcome
$datanames
depend on the length of input of the transformers.They are different if the transformer has length 1.
The solution is up to discussion, but for now I plan to unify to return
union(datanames, transformers$datanames)
as a result.So if
modules(datanames = "all"
andtransfomers(datanames = "all"
we get"all"
modules(datanames = "custom"
andtransfomers(datanames = "all"
we getc("custom", "all")
modules(datanames = "all"
andtransfomers(datanames = "custom"
we get"all"
modules(datanames = "custom"
andtransfomers(datanames = "custom2"
we getc("custom", "custom2")
The main reason for this change is to unify and to have custom datanames returned in
module()$datanames
if any custom names are passed viamodule(datanames =
parameter.