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

changes for filter panel constuctor #670

Merged
merged 8 commits into from
Jun 22, 2022

Conversation

nikolas-burkoff
Copy link
Contributor

@nikolas-burkoff nikolas-burkoff commented Jun 14, 2022

R/module_teal.R Outdated
datasets <- teal.slice:::filtered_data_new(raw_data())
# transfer the datasets from raw_data() into the FilteredData object
teal.slice:::filtered_data_set(raw_data(), datasets)
datasets <- do.call(teal.slice::init_filtered_data, raw_data()$get_teal_inputs())
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not convinced that TealData should have method to return teal-ready list. I think the "converter" should be here in teal. TealData probably have all methods needed to extract data and attributes already.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure turning teal_data/cdisc_data into a format we need for teal.slice will probably be quite involved (and we need to then have explicit if statement for if you are cdisc or not) for this

Copy link
Contributor

Choose a reason for hiding this comment

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

back then initialization of FilteredData was like this. We might have something similar in teal (as private method ofc). Not pushing though, let's see how TealData will be impacted in your proposition.

filtered_data_set.RelationalData <- function(data, datasets) { # nolintr # nousage

  datasets$set_code(data$get_code_class())

  for (dataset in data$get_datasets()) {
    dataname <- get_dataname(dataset)
    raw_dataset <- get_raw_data(dataset)
    datasets$set_data(dataname, raw_dataset)
    datasets$set_data_attrs(dataname, get_attrs(dataset))
    datasets$set_data_attr(dataname, "check", data$get_check_result())
  }

  datasets$set_join_keys(data$get_join_keys())

  return(invisible(NULL))
}

@nikolas-burkoff nikolas-burkoff marked this pull request as ready for review June 15, 2022 12:40
NEWS.md Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Jun 15, 2022

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                  17      17  0.00%    19-35
R/get_rcode_utils.R                 52      11  78.85%   42-51, 94, 99
R/get_rcode.R                      145      99  31.72%   71-74, 85-148, 195, 201-202, 233-284
R/include_css_js.R                  20       0  100.00%
R/init.R                            39      21  46.15%   171, 182-183, 236-257
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              84       4  95.24%   57, 141, 194, 200
R/module_tabs_with_filters.R        52       0  100.00%
R/module_teal_with_splash.R         33       2  93.94%   62, 74
R/module_teal.R                    122      20  83.61%   49, 52, 142-143, 156-162, 168-174, 197, 231
R/modules_debugging.R               19      19  0.00%    41-60
R/modules.R                         82      10  87.80%   208, 268, 371-396
R/reporter_previewer_module.R       12       2  83.33%   18, 22
R/show_rcode_modal.R                20      20  0.00%    17-38
R/utils.R                            6       0  100.00%
R/validations.R                     62      39  37.10%   103-355
R/zzz.R                             11       7  36.36%   3-14
TOTAL                              908     390  57.05%

Results for commit: a6a727f

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

@github-actions
Copy link
Contributor

github-actions bot commented Jun 15, 2022

Unit Tests Summary

    1 files    10 suites   16s ⏱️
  94 tests   94 ✔️ 0 💤 0
198 runs  198 ✔️ 0 💤 0

Results for commit 1767023.

♻️ This comment has been updated with latest results.

NEWS.md Outdated Show resolved Hide resolved
Co-authored-by: Dawid Kałędkowski <[email protected]>
NEWS.md Outdated Show resolved Hide resolved
Co-authored-by: Pawel Rucki <[email protected]>
@kpagacz kpagacz self-assigned this Jun 21, 2022
@nikolas-burkoff nikolas-burkoff merged commit 5de513a into main Jun 22, 2022
@nikolas-burkoff nikolas-burkoff deleted the 33_filteredData_constructor@main branch June 22, 2022 10:00
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.

4 participants