-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
All datanames to transform@669 insert UI@main #1302
All datanames to transform@669 insert UI@main #1302
Conversation
…names@669_insertUI@main
WIP
…names_to_transform@669_insertUI@main
…names_to_transform@669_insertUI@main
…names_to_transform@669_insertUI@main
Hey @gogonzo I left 2 comments. Would you be able to resolve conflicts? |
…names_to_transform@669_insertUI@main
Hey, I can confirm I see the error on feature branch, but not on this branch Main Feature BranchThis BranchDevtools::test()There are still 3 checks failining but I know you are aware ── Failed tests ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Failure (test-module_teal.R:537:9): receives all objects from @env except _raw when module$datanames = "all" and @datanames is empty
teal.data::datanames((modules_output$module_1())()) not identical to c("iris", "mtcars", "swiss").
Lengths differ: 8 is not 3
Backtrace:
▆
1. ├─shiny::testServer(...) at test-module_teal.R:522:5
2. │ ├─shiny:::withMockContext(...)
3. │ │ ├─shiny::isolate(...)
4. │ │ │ ├─shiny::..stacktraceoff..(...)
5. │ │ │ └─ctx$run(...)
6. │ │ │ ├─promises::with_promise_domain(...)
7. │ │ │ │ └─domain$wrapSync(expr)
8. │ │ │ ├─shiny::withReactiveDomain(...)
9. │ │ │ │ └─promises::with_promise_domain(...)
10. │ │ │ │ └─domain$wrapSync(expr)
11. │ │ │ │ └─base::force(expr)
12. │ │ │ └─env$runWith(self, func)
13. │ │ │ └─shiny (local) contextFunc()
14. │ │ │ └─shiny::..stacktraceon..(expr)
15. │ │ ├─shiny::withReactiveDomain(...)
16. │ │ │ └─promises::with_promise_domain(...)
17. │ │ │ └─domain$wrapSync(expr)
18. │ │ │ └─base::force(expr)
19. │ │ └─withr::with_options(...)
20. │ │ └─base::force(code)
21. │ └─rlang::eval_tidy(quosure, mask, rlang::caller_env())
22. └─testthat::expect_identical(...) at test-module_teal.R:537:9
Failure (test-module_teal.R:691:9): receives extra transform datasets if module$datanames == 'all' and @datanames empty
teal.data::datanames((modules_output$module_1())()) not identical to c("iris", "mtcars", "swiss").
Lengths differ: 5 is not 3
Backtrace:
▆
1. ├─shiny::testServer(...) at test-module_teal.R:660:5
2. │ ├─shiny:::withMockContext(...)
3. │ │ ├─shiny::isolate(...)
4. │ │ │ ├─shiny::..stacktraceoff..(...)
5. │ │ │ └─ctx$run(...)
6. │ │ │ ├─promises::with_promise_domain(...)
7. │ │ │ │ └─domain$wrapSync(expr)
8. │ │ │ ├─shiny::withReactiveDomain(...)
9. │ │ │ │ └─promises::with_promise_domain(...)
10. │ │ │ │ └─domain$wrapSync(expr)
11. │ │ │ │ └─base::force(expr)
12. │ │ │ └─env$runWith(self, func)
13. │ │ │ └─shiny (local) contextFunc()
14. │ │ │ └─shiny::..stacktraceon..(expr)
15. │ │ ├─shiny::withReactiveDomain(...)
16. │ │ │ └─promises::with_promise_domain(...)
17. │ │ │ └─domain$wrapSync(expr)
18. │ │ │ └─base::force(expr)
19. │ │ └─withr::with_options(...)
20. │ │ └─base::force(code)
21. │ └─rlang::eval_tidy(quosure, mask, rlang::caller_env())
22. └─testthat::expect_identical(...) at test-module_teal.R:691:9
Failure (test-module_teal.R:1709:9): displays Obs only column if all datasets have no join keys
module_output_table(output, "module_1") not identical to data.frame(...).
Attributes: < Component “row.names”: Numeric: lengths (4, 2) differ >
Component “Data Name”: Lengths (4, 2) differ (string compare on first 2)
Component “Data Name”: 1 string mismatch
Component “Obs”: Lengths (4, 2) differ (string compare on first 2)
Component “Obs”: 1 string mismatch
Backtrace:
▆
1. ├─shiny::testServer(...) at test-module_teal.R:1696:5
2. │ ├─shiny:::withMockContext(...)
3. │ │ ├─shiny::isolate(...)
4. │ │ │ ├─shiny::..stacktraceoff..(...)
5. │ │ │ └─ctx$run(...)
6. │ │ │ ├─promises::with_promise_domain(...)
7. │ │ │ │ └─domain$wrapSync(expr)
8. │ │ │ ├─shiny::withReactiveDomain(...)
9. │ │ │ │ └─promises::with_promise_domain(...)
10. │ │ │ │ └─domain$wrapSync(expr)
11. │ │ │ │ └─base::force(expr)
12. │ │ │ └─env$runWith(self, func)
13. │ │ │ └─shiny (local) contextFunc()
14. │ │ │ └─shiny::..stacktraceon..(expr)
15. │ │ ├─shiny::withReactiveDomain(...)
16. │ │ │ └─promises::with_promise_domain(...)
17. │ │ │ └─domain$wrapSync(expr)
18. │ │ │ └─base::force(expr)
19. │ │ └─withr::with_options(...)
20. │ │ └─base::force(code)
21. │ └─rlang::eval_tidy(quosure, mask, rlang::caller_env())
22. └─testthat::expect_identical(...) at test-module_teal.R:1709:9
[ FAIL 3 | WARN 0 | SKIP 49 | PASS 450 ] |
fixed |
I started the Check Github Action manually for this branch https://github.com/insightsengineering/teal/actions/runs/10319726556 |
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.
Ok, the check is green - there was only one styling issue that I fixed
https://github.com/insightsengineering/teal/actions/runs/10319726556
Ready to be merged
…to all_datanames_to_transform@669_insertUI@main
…names_to_transform@669_insertUI@main
Changed the way how datanames are passed between teal_data instances:
Previously:
datanames(data) <- active_datanames
+ subsetting code and environment to the active datasetsNow:
datanames(data) <- active_datanames
+ subsetting code and environment to the active datasets - passing to the moduleThanks to the new way it is possible now:
See the app below on this branch and on the feature branch:
app