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

feat(filters): add optional filterTypingDebounce for filters w/keyup #283

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

ghiscoding
Copy link
Owner

  • we previously had the filterTypingDebounce but that was only available when using BackendServiceApi (with OData/GraphQL) but this PR goes further and makes it available to any type of grids, so it can now be used with a local grid (JSON dataset)
  • we also move the debounce code from the Filter Service into each filter component itself (only the following 2 filters requires this, InputFilter and CompoundInputFilter). The Filter Service shouldn't do any debounce, it should be the responsability of the concerned filter and that is what we refactored in this PR as well.

- we previously had the `filterTypingDebounce` but that was only available when using `BackendServiceApi` (with OData/GraphQL) but this PR goes further and makes it available to any type of grids, so it can now be used with a local grid (JSON dataset)
- we also move the debounce code from the Filter Service into each filter component itself (only the following 2 filters requires this, `InputFilter` and `CompoundInputFilter`). The Filter Service shouldn't do any debounce, it should be the responsability of the concerned filter and that is what we refactored in this PR as well.
@codecov
Copy link

codecov bot commented Mar 15, 2021

Codecov Report

Merging #283 (61e6e67) into master (e44145d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #283   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          209       209           
  Lines        12433     12436    +3     
  Branches      4252      4253    +1     
=========================================
+ Hits         12433     12436    +3     
Impacted Files Coverage Δ
packages/common/src/services/utilities.ts 100.00% <ø> (ø)
packages/common/src/editors/dualInputEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/floatEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/integerEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/longTextEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/textEditor.ts 100.00% <100.00%> (ø)
packages/common/src/filters/compoundInputFilter.ts 100.00% <100.00%> (ø)
packages/common/src/filters/inputFilter.ts 100.00% <100.00%> (ø)
packages/common/src/services/filter.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 e44145d...61e6e67. Read the comment docs.

@ghiscoding ghiscoding merged commit bb7dcd3 into master Mar 15, 2021
@ghiscoding ghiscoding deleted the feat/local-filter-debounce branch March 15, 2021 18:41
@ghiscoding ghiscoding changed the title feat(filters): add optional filterTypingDebounce for keyboard filters feat(filters): add optional filterTypingDebounce for filters w/keyup Mar 16, 2021
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.

1 participant