Skip to content

Conversation

@BLAZEWIM
Copy link
Contributor

Pull Request

Fixes #183

@BLAZEWIM BLAZEWIM added the core label Feb 13, 2023
@BLAZEWIM BLAZEWIM marked this pull request as ready for review February 13, 2023 16:12
Signed-off-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com>
@mhallal1 mhallal1 self-assigned this Feb 14, 2023
Copy link
Contributor

@gogonzo gogonzo left a comment

Choose a reason for hiding this comment

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

Please change x_reactive to have no defaults in init. Please fix the assert to not let x_reactive to be NULL, it has to be a reactive.
Please fix the get_filtered_counts() call mentioned below.
Besides, it's looking good

BLAZEWIM and others added 4 commits February 14, 2023 16:37
Co-authored-by: Mahmoud Hallal <86970066+mhallal1@users.noreply.github.com>
Signed-off-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com>
Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com>
Signed-off-by: Marek Blazewicz <110387997+BLAZEWIM@users.noreply.github.com>
testthat::expect_no_error(ChoicesFilterState$new(as.factor("test"), reactive(NULL), varname = "test"))
})

testthat::test_that("The constructor reactive as x_reactive", {
Copy link
Contributor

Choose a reason for hiding this comment

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

testthat::test_that("The constructor accepts only reactive input for x_reactive", {

@BLAZEWIM BLAZEWIM merged commit e9a9758 into filter_panel_refactor@main Feb 15, 2023
@BLAZEWIM BLAZEWIM deleted the 183_choicefs_improve_init branch February 15, 2023 14:04
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