-
Notifications
You must be signed in to change notification settings - Fork 409
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
Query Panel isNull operator is buggy #9085
Comments
* WIP fixing isNull filter * Improved fix * Update build/tests.webpack.js * Fixed tests * Fixed lint * Update build/tests.webpack.js Co-authored-by: Matteo V. <[email protected]> * Update web/client/utils/__tests__/FilterUtils-test.js --------- Co-authored-by: Matteo V. <[email protected]>
@ElenaGallo could you please test this on DEV? Any question let me know |
Hi @offtherailz, the filter cannot be updated after isNull has been used: filtro.movfiltro2.mov |
The wps query sent to retrieve the drop down list unique values result, when there is a <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" service="WPS" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">gs:PagedUnique</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">features</ows:Identifier>
<ows:Title xmlns:ows="http://www.opengis.net/ows/1.1">features</ows:Title>
<wps:Data/>
<wps:Reference xmlns:xlink="http://www.w3.org/1999/xlink" mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0">
<wfs:Query typeName="gs:us_states">
<!-- this part seems to be redundant -->
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<ogc:And>
<ogc:And>
<ogc:PropertyIsNull>
<ogc:PropertyName>STATE_NAME</ogc:PropertyName>
</ogc:PropertyIsNull>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>STATE_NAME</ogc:PropertyName>
<ogc:Literal>Alabama</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
<ogc:PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">
<ogc:PropertyName>STATE_NAME</ogc:PropertyName>
<ogc:Literal>*California*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:And>
</ogc:Filter>
<!-- this part seems to be redundant -->
<ogc:SortBy xmlns:ogc="http://www.opengis.net/ogc">
<ogc:SortProperty>
<ogc:PropertyName>STATE_NAME</ogc:PropertyName>
</ogc:SortProperty>
</ogc:SortBy>
</wfs:Query>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">fieldName</ows:Identifier>
<ows:Title xmlns:ows="http://www.opengis.net/ows/1.1">fieldName</ows:Title>
<wps:Data>
<wps:LiteralData>STATE_NAME</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">maxFeatures</ows:Identifier>
<ows:Title xmlns:ows="http://www.opengis.net/ows/1.1">maxFeatures</ows:Title>
<wps:Data>
<wps:LiteralData>5</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">startIndex</ows:Identifier>
<ows:Title xmlns:ows="http://www.opengis.net/ows/1.1">startIndex</ows:Title>
<wps:Data>
<wps:LiteralData>0</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="application/json">
<ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute> |
Hi, this is an existing bug, not strictly related to the isNull filter, but general. Not sure but it is not new to me, so maybe an issue about this already exists. If no, we can create it. Basically the WPS request for autocomplete applies the filter of the layer. Here an example with a different filter that causes the same behivior: screencast--2023.04.12-12_53_52.webm |
* WIP fixing isNull filter * Improved fix * Update build/tests.webpack.js * Fixed tests * Fixed lint * Update build/tests.webpack.js Co-authored-by: Matteo V. <[email protected]> * Update web/client/utils/__tests__/FilterUtils-test.js --------- Co-authored-by: Matteo V. <[email protected]>
backport ready here: #9088 |
@ElenaGallo, as assessed by @offtherailz. The remaning buggy behaviour, consisting in the extra layer filter applied to the autocomplete wps filter request, is a pre-existing buggy behaviour and we will deal with this last issue separately #9089 |
) * WIP fixing isNull filter * Improved fix * Update build/tests.webpack.js * Fixed tests * Fixed lint * Update build/tests.webpack.js Co-authored-by: Matteo V. <[email protected]> * Update web/client/utils/__tests__/FilterUtils-test.js --------- Co-authored-by: Matteo V. <[email protected]>
) (#9090) * backport C044-2022.02.xx - #9085 changes to the buildConfig calls (#9086) * WIP fixing isNull filter * Improved fix * Update build/tests.webpack.js * Fixed tests * Fixed lint * Update build/tests.webpack.js Co-authored-by: Matteo V. <[email protected]> * Update web/client/utils/__tests__/FilterUtils-test.js --------- Co-authored-by: Matteo V. <[email protected]> * removed temporarily failing tests for missing uitls functions --------- Co-authored-by: Lorenzo Natali <[email protected]> Co-authored-by: Matteo V. <[email protected]> Co-authored-by: Alessandro Cristofori <[email protected]>
Description
The isNull operator in the query panel can not be applied alone
isNull1.webm
Event when used in couple, it is basically ignored on the map.
screencast-github.com-2023.04.11-11_17_06.webm
How to reproduce
Bug 1: The isNull filter can not be applied
Expected Result
Current Result
Bug 2: The isNull filter is ignored on the map.
Expected Result
The map should show no result
Current Result
The map shows some results, as the "isNull" filter is not applied.
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
The text was updated successfully, but these errors were encountered: