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

Teal refactor #768

Merged
merged 28 commits into from
Nov 4, 2022
Merged

Teal refactor #768

merged 28 commits into from
Nov 4, 2022

Conversation

nikolas-burkoff
Copy link
Contributor

Part of #731

Nikolas Burkoff and others added 11 commits September 7, 2022 10:33
* update examples and example_module to use data

* update vignette to use quosures

* reprorting vignette updated

* reporter previewer module

* add parent dataset to data even if not specified in module$filters

* deprecate show r code

* add .datasets_to_data tests

Co-authored-by: Dawid Kałędkowski <[email protected]>
@nikolas-burkoff nikolas-burkoff mentioned this pull request Oct 27, 2022
8 tasks
@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2022

badge

Code Coverage Summary

Filename                         Stmts    Miss  Cover    Missing
-----------------------------  -------  ------  -------  -------------------------------------------
R/default_filter.R                   7       7  0.00%    17-27
R/dummy_functions.R                 74      61  17.57%   12-95
R/example_module.R                  18      18  0.00%    19-36
R/get_rcode_utils.R                 52       2  96.15%   94, 99
R/get_rcode.R                      151      54  64.24%   74, 81, 86, 220-286
R/include_css_js.R                  24       0  100.00%
R/init.R                            39      21  46.15%   173, 184-185, 238-259
R/log_app_usage.R                   38      38  0.00%    34-119
R/logging.R                         13      13  0.00%    11-28
R/module_nested_tabs.R             115       7  93.91%   57, 96, 101-102, 148, 197, 226
R/module_tabs_with_filters.R        68       1  98.53%   160
R/module_teal_with_splash.R         33       2  93.94%   62, 74
R/module_teal.R                    131      20  84.73%   49, 52, 155-156, 169-175, 181-187, 210, 240
R/modules_debugging.R               18      18  0.00%    39-58
R/modules.R                        110       9  91.82%   218, 415-440
R/reporter_previewer_module.R       12       2  83.33%   18, 22
R/show_rcode_modal.R                20      20  0.00%    17-38
R/tdata.R                           41       2  95.12%   146, 172
R/utils.R                           13       0  100.00%
R/validations.R                     62      39  37.10%   103-355
R/zzz.R                             11       7  36.36%   3-14
TOTAL                             1050     341  67.52%

Results for commit: 79542cb

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2022

Unit Tests Summary

    1 files    12 suites   12s ⏱️
133 tests 133 ✔️ 0 💤 0
254 runs  254 ✔️ 0 💤 0

Results for commit c49949b.

♻️ This comment has been updated with latest results.

card$append_text("Show R Code", "header3")
card$append_text(paste(teal.code::chunks_get_rcode(simple_chunks), collapse = "\n"), "verbatim")
card$append_text(paste(teal.code::get_code(table_q()), collapse = "\n"), "verbatim")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should this be append src @Polkas

Signed-off-by: Nikolas Burkoff <[email protected]>
Copy link
Contributor Author

@nikolas-burkoff nikolas-burkoff left a comment

Choose a reason for hiding this comment

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

Can't approve own PR but I'm happy with this 🏆

R/tdata.R Outdated
@@ -0,0 +1,171 @@
#' Create a new `tdata` object which contains
Copy link
Contributor

Choose a reason for hiding this comment

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

The title of the manual for tdata is Create a new tdata object which contains.
It felt incorrect.

Along with the description, maybe we can do something like this?

#' Create a `tdata` Object
#'
#' Create a new object called `tdata` which contains `data`, a `reactive` list of data.frames
#' (or `MultiAssayExperiment`), with attributes:
#' \itemize{
#'   \item{`code` (`reactive`) containing code used to generate the data}
#'   \item{join_keys (`JoinKeys`) containing the relationships between the data}
#'   \item{metadata (`named list`) containing any metadata associated with the data frames}
#' }

It looks better in the manual page:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup - done

Copy link
Contributor

@donyunardi donyunardi left a comment

Choose a reason for hiding this comment

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

Minor update.

Nikolas Burkoff and others added 2 commits November 4, 2022 08:27
@gogonzo gogonzo self-assigned this Nov 4, 2022
@gogonzo gogonzo merged commit 4617eb7 into main Nov 4, 2022
@gogonzo gogonzo deleted the teal_refactor@main branch November 4, 2022 16:45
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.

5 participants