-
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
#9085 isNull Filter #9086
#9085 isNull Filter #9086
Conversation
target branch for backport of this PR is |
}, { | ||
attribute: "attributeNull", | ||
groupId: 1, | ||
exception: null, | ||
operator: "=", | ||
rowId: "1", | ||
type: "string", | ||
value: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems duplicate of the first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch. Yes it is
@@ -811,7 +828,24 @@ describe('FilterUtils', () => { | |||
value: "isNull" | |||
}] | |||
}; | |||
let expected = '<wfs:GetFeature service="WFS" version="2.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"><wfs:Query typeNames="ft_name_test" srsName="EPSG:4326"><fes:Filter><fes:PropertyIsNull><fes:ValueReference>attributeNull</fes:ValueReference></fes:PropertyIsNull><fes:PropertyIsNull><fes:ValueReference>attributeValid</fes:ValueReference></fes:PropertyIsNull></fes:Filter></wfs:Query></wfs:GetFeature>'; | |||
let expected = '<wfs:GetFeature service="WFS" version="2.0" ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't you use template string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, or spaces will not be the same.
Co-authored-by: Matteo V. <[email protected]>
@ElenaGallo please test in DEV |
* 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]>
) * 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
This PR fixes #9085
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
#9085
What is the new behavior?
Filter with only isNull can be applied.
isNull condition is not ignored anymore.
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information