Skip to content
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

fix(backend): OData queries with input filter #224

Merged
merged 3 commits into from Jan 5, 2021

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Jan 1, 2021

  • ref Angular-Slickgrid issue #656
  • Improved escaping/normalizing search terms for string/text/readonly fields.
  • Invalid characters from integer/float/number fields with string search terms are now removed.
  • Added support for range filter .. to function without an upper bound. When for example 2.. is input then field GE 2 or field GT 2 is send to the backend, depending on the defaultFilterRangeOperator
  • Added support for range filter .. to function without a lower bound. When for example ..2 is input field LE 2 or field LT 2 is send, depending on the defaultFilterRangeOperator

* Improved escaping/normalizing search terms for string/text/readonly fields.
* Invalid characters from integer/float/number fields with string search terms are now removed.
* Added support for range filter `..` to function without an upper bound. When for example `2..` is input then `field GE 2` or `field GT 2` is send to the backend, depending on the `defaultFilterRangeOperator`
* Added support for range filter `..` to function without a lower bound. When for example `..2` is input `field LE 2` or `field LT 2` is send, depending on the `defaultFilterRangeOperator`
@codecov
Copy link

codecov bot commented Jan 1, 2021

Codecov Report

Merging #224 (8360dc0) into master (bf3610f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #224   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          207       207           
  Lines        11847     11852    +5     
  Branches      4064      4066    +2     
=========================================
+ Hits         11847     11852    +5     
Impacted Files Coverage Δ
packages/odata/src/services/grid-odata.service.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf3610f...8360dc0. Read the comment docs.

@ghiscoding ghiscoding merged commit fec1ce8 into master Jan 5, 2021
@ghiscoding ghiscoding deleted the bugfix/odata-range-filter branch January 5, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant