Skip to content

Grids: type DataController.filter and the filter expression types - #34696

Open
anna-shakhova wants to merge 1 commit into
DevExpress:mainfrom
anna-shakhova:data_contr_fix_rest_spread_main
Open

Grids: type DataController.filter and the filter expression types#34696
anna-shakhova wants to merge 1 commit into
DevExpress:mainfrom
anna-shakhova:data_contr_fix_rest_spread_main

Conversation

@anna-shakhova

Copy link
Copy Markdown
Contributor

No description provided.

@anna-shakhova anna-shakhova self-assigned this Aug 7, 2026
Copilot AI review requested due to automatic review settings August 7, 2026 14:22
@anna-shakhova
anna-shakhova requested a review from a team as a code owner August 7, 2026 14:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Grid Core DataController-related TypeScript typings, focusing on providing a more explicit filter type model and modernizing a couple of legacy patterns in DataController.

Changes:

  • Reworked data_controller/types.ts filter-related types (introduced FilterCondition, recursive FilterExpression, and a dedicated MatchNothingFilter).
  • Updated DataController.filter to use overloads + rest parameters instead of arguments, and removed related ESLint disables.
  • Updated fireError to use typed rest parameters and direct invocation (errors.Error(...args)) instead of .apply.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/devextreme/js/__internal/grids/grid_core/data_controller/types.ts Refactors/expands paging and filter type definitions (new filter expression model).
packages/devextreme/js/__internal/grids/grid_core/data_controller/data_controller.ts Modernizes filter and fireError implementations and aligns with new filter typings.

Comment on lines +123 to +125
export type FilterCondition = [string, ScalarFilterValue]
| [string, SearchOperation, ScalarFilterValue]
| [string, MultiValueSearchOperation, ScalarFilterValue[]];
Copilot AI review requested due to automatic review settings August 7, 2026 15:15
@anna-shakhova
anna-shakhova force-pushed the data_contr_fix_rest_spread_main branch from d1e9db8 to b20a301 Compare August 7, 2026 15:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants