Skip to content

AI Assistant: AI uses "or" filter operation instead of "anyof" - so there is no sync with HeaderFilter#33872

Open
Raushen wants to merge 4 commits into
DevExpress:26_1from
Raushen:AIAssistant-Anyof-Filter-Operarion
Open

AI Assistant: AI uses "or" filter operation instead of "anyof" - so there is no sync with HeaderFilter#33872
Raushen wants to merge 4 commits into
DevExpress:26_1from
Raushen:AIAssistant-Anyof-Filter-Operarion

Conversation

@Raushen
Copy link
Copy Markdown
Contributor

@Raushen Raushen commented Jun 5, 2026

No description provided.

@Raushen Raushen self-assigned this Jun 5, 2026
Copilot AI review requested due to automatic review settings June 5, 2026 14:26
@Raushen Raushen requested a review from a team as a code owner June 5, 2026 14:26
@Raushen Raushen added WIP Work in progress 26_1 labels Jun 5, 2026
@github-actions github-actions Bot added the .d.ts label Jun 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Grid AI Assistant’s filterValue command and related public typings to support multi-value filtering via anyof/noneof, aligning AI-generated filters with HeaderFilter/filterSync behavior.

Changes:

  • Added public typings for multi-value filter expressions (MultiValueFilterExpr) and scalar filter values (FilterScalarValue), plus MultiValueSearchOperation (anyof/noneof) across core and wrappers.
  • Extended AI Assistant filter schema + conversion to accept multi-value expressions and resolve date strings within anyof/noneof arrays.
  • Improved filter success message generation by passing custom filter operations to filterPanelView.getFilterText, and added/updated unit tests.

Reviewed changes

Copilot reviewed 14 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/devextreme/ts/dx.all.d.ts Mirrors new public types/aliases in the bundled TS declarations (multi-value operation + multi-value filter expr).
packages/devextreme/js/common/grids.d.ts Introduces FilterScalarValue + MultiValueFilterExpr and extends FilterExpr to include multi-value filtering.
packages/devextreme/js/common/data.types.d.ts Adds MultiValueSearchOperation (anyof/noneof) to shared data operation types.
packages/devextreme/js/common/data.d.ts Re-exports MultiValueSearchOperation under DevExpress.common.data.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/utils.ts Reuses the new scalar type and adds a helper guard for multi-value expressions.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/filtering.ts Accepts multi-value filter expressions in Zod schema, converts them to legacy filter arrays, and uses custom operations for filter text.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/tests/utils.test.ts Adds tests for isMultiValueExpr.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/tests/filtering.test.ts Adds schema + execution tests covering anyof/noneof, including date resolution inside arrays.
packages/devextreme-vue/src/common/index.ts Re-exports new types in Vue wrapper namespaces.
packages/devextreme-vue/src/common/grids.ts Re-exports FilterScalarValue/MultiValueFilterExpr from Vue grids typings.
packages/devextreme-vue/src/common/data.ts Re-exports MultiValueSearchOperation from Vue data typings.
packages/devextreme-react/src/common/index.ts Re-exports new types in React wrapper namespaces.
packages/devextreme-react/src/common/grids.ts Re-exports FilterScalarValue/MultiValueFilterExpr from React grids typings.
packages/devextreme-react/src/common/data.ts Re-exports MultiValueSearchOperation from React data typings.
packages/devextreme-angular/src/index.ts Re-exports MultiValueSearchOperation via Angular root namespace.
packages/devextreme-angular/src/common/index.ts Re-exports new types in Angular wrapper namespaces.
packages/devextreme-angular/src/common/grids/index.ts Re-exports FilterScalarValue/MultiValueFilterExpr from Angular grids typings.
packages/devextreme-angular/src/common/data/index.ts Re-exports MultiValueSearchOperation from Angular data typings.

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

Labels

26_1 .d.ts WIP Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants