Skip to content

Commit

Permalink
remove FILTERED (#87)
Browse files Browse the repository at this point in the history
* remnove FILTERED

* git expression tree issue in tests

Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com>
  • Loading branch information
Nikolas Burkoff and gogonzo authored Jul 26, 2022
1 parent 87857c4 commit ce97768
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 127 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# teal.transform 0.1.1.9009

### Breaking changes

* Following changes to the output of `teal.slice::FilteredData$get_call()` the data merge functionality no longer expects input datanames to have the suffix `_FILTERED`.

### New features

* `data_extract_ui`, `data_extract_srv`, `data_extract_multiple_srv` can be initialized by the list of (optionally `reactive`) `data.frame` objects.
Expand Down
1 change: 0 additions & 1 deletion R/data_merge_module.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ data_merge_srv <- function(id = "merge_id",
)
ch <- teal.code::chunks_new()
datasets_list_nr <- sapply(datasets$datanames(), simplify = FALSE, datasets$get_data, filtered = TRUE)
names(datasets_list_nr) <- paste0(names(datasets_list_nr), "_FILTERED")

teal.code::chunks_reset(envir = list2env(datasets_list_nr), chunks = ch)
for (chunk in merged_data$expr) teal.code::chunks_push(expression = chunk, chunks = ch)
Expand Down
2 changes: 1 addition & 1 deletion R/get_dplyr_call.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ get_dplyr_call <- function(selector_list,

n_selectors <- length(selector_list)

dataname_filtered <- as.name(paste0(selector_list[[idx]]$dataname, "_FILTERED"))
dataname_filtered <- as.name(selector_list[[idx]]$dataname)

filter_call <- get_filter_call(selector_list[[idx]]$filters, selector_list[[idx]]$dataname, datasets)

Expand Down
Loading

0 comments on commit ce97768

Please sign in to comment.