-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Distinct behaviour of filter_spec in the absence/presence of select_spec #9
Comments
Both scenarios are expected behavior.
To have filter_spec behave like select_spec in the scenario where a select_spec is provided but de-selected would be an alternative design, and we can discuss it in a normal sprint. Thus, I am putting this in the backlog with a discussion tag. Provenance:
|
@junlue Don't most modules use Provenance:
|
@mhallal1 good point. This shows some in constistency:
Forcing to include select_spec in second scenario could be also considered. I'm leaving this in backlog as it might involve significant changes Provenance:
|
Well, I think we should consider reasons people would use select_spec and filter_spec in the same data_extract_spec. It means they want to select a different variable than used in filter_spec, which means they actually don't want to have filter_spec behave like select_spec. In that case, I think it's most likely, they don't want to filter_spec behave like select_spec if they deselect select_spec because they didn't want the functionality in the first place. |
Let's wait with the decision after data_merge refactor discussion. |
Linking this with insightsengineering/NEST-roadmap#36 |
There is a distinct behaviour of
filter_spec
in the absence or presence ofselect_spec
which is described in the following two scenarios:Scenario 1:
select_spec
andfilter_spec
are both defined for a variable.In case
select_spec
is deselected,filter_spec
becomes obsolete and whatever you change does not have influence. In the example below,filter_spec
does not influence facetting.Scenario 2:
filter_spec
is only defined defined for a variable.In this case,
filter_spec
takes the role ofselect_spec
and in the example below facetting is controlled byfilter_spec
.The example below reproduces the 2 scenarios on
row_facet
variable. To reproduce scenario 2, use the example below. To reproduce scenario 1, uncommentselect
ofrow_facet
.The expected behaviour would be to have like scenario 2 where
filter_spec
takes the role ofselect_spec
when it is deselected or not defined.Provenance:
The text was updated successfully, but these errors were encountered: