muyangye opened a new issue, #1879: URL: https://github.com/apache/streampipes/issues/1879
### Apache StreamPipes version dev (current development state) ### Affected StreamPipes components UI ### What happened? As [discussed](https://github.com/apache/streampipes/discussions/1872), this isn't really a bug but is a very confusing default setting. I'll paste that discussion here: I modified the Property Scope of **BooleanOperatorProcessor** from PropertyScope.NONE to PropertyScope.MEASUREMENT_PROPERTY:  So now b4, whose Property Scope is PROPERTY_SCOPE.HEADER_PROPERTY, is not shown in the UI:  But its value is always **true**:  After I clicked `SELECT ALL` in the UI and connected to a DataLake, the result is:  Clearly this is not what I expected since the UI only shows b0, b1, and b2. However, it seems that the result takes into account of b4. As evident not only by the above picture but also my debug message that prints all input streams:  However, if I didn't click `SELECT ALL` but instead clicked b0, b1, and b2 one by one, the result becomes correct:  ### How to reproduce? Requirements: 1. Any processor that uses Nary Property Mapping (so that there's a `SELECT ALL` button in the UI) 2. Property Scope set to anything that is NOT PropertyScope.NONE 3. There exists a property in the input stream that satisfies EpRequirements but is not the same Property Scope as in the code 4. Click `SELECT ALL` in the UI Currently there's no processor that satisfies both 1 and 2, but one can easily modify Property Scope to achieve this. ### Expected behavior For NaryMappingProperty, `Show only recommended` should be default to false. ### Additional technical information I originally thought a simple one line change is going to work, but unfortunately that is not the case. If I only change line 46 of [static-mapping-nary.component.html](https://github.com/apache/streampipes/blob/312b55bb978d67ebbe65e3746a5345b579ac6da5/ui/src/app/core-ui/static-properties/static-mapping-nary/static-mapping-nary.component.html#L46) either by hardcoding a false value or adding a variable in [abstract-static-property.ts](https://github.com/apache/streampipes/blob/312b55bb978d67ebbe65e3746a5345b579ac6da5/ui/src/app/core-ui/static-properties/base/abstract-static-property.ts), b4 is indeed shown but the `Show only recommended` slider is still slided to the right, causing an inconsistency:  Therefore, I believe a new file/change in [display-recommeded.pipe.ts](https://github.com/apache/streampipes/blob/312b55bb978d67ebbe65e3746a5345b579ac6da5/ui/src/app/core-ui/static-properties/filter/display-recommended.pipe.ts) is necessary. Since this file is used by all static properties. I am thinking about creating a new file like "nary-display-recommended.pipe.ts" and then modify all relevant files. I am not sure if the above approach will work as I don't have the time to experiment yet, but I feel that this is a non-extensible hotfix. Is there a better way to do this? ### Are you willing to submit a PR? Yes, I am willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
