Skip to content

Grids - HeaderFilter: Extract the header filter expressions into utils - #35195

Open
Alyar666 wants to merge 1 commit into
DevExpress:mainfrom
Alyar666:gridcore_extract_header_filter_expressions_26_2
Open

Alyar666 wants to merge 1 commit into
DevExpress:mainfrom
Alyar666:gridcore_extract_header_filter_expressions_26_2

Conversation

@Alyar666

Copy link
Copy Markdown
Contributor

No description provided.

Move building of the header filter filter expressions, `allowHeaderFiltering`
and `invertFilterExpression` into `header_filter/utils.ts` and cover them with
unit tests. The extender keeps its place in the chain and only delegates the
expression building.
Copilot AI lite review requested due to automatic review settings September 14, 2026 13:29
@Alyar666
Alyar666 requested a review from a team as a code owner September 14, 2026 13:29
@Alyar666 Alyar666 self-assigned this Sep 14, 2026

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.

🟢 Approval recommended

No unresolved review comments remain.

Pull request overview

Extracts header-filter expression logic into reusable utilities while preserving behavior and adding test coverage.

Changes:

  • Added typed header-filter expression helpers.
  • Updated header-filter modules and test imports.
  • Added unit and integration coverage.
File summaries
File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets.dataGrid/headerFilter.tests.js Updates the inversion utility import.
packages/devextreme/js/__internal/grids/grid_core/header_filter/utils.ts Adds extracted header-filter expression helpers.
packages/devextreme/js/__internal/grids/grid_core/header_filter/m_header_filter.ts Uses the shared expression utilities.
packages/devextreme/js/__internal/grids/grid_core/header_filter/m_header_filter_core.ts Reuses shared filtering permission logic.
packages/devextreme/js/__internal/grids/grid_core/header_filter/__tests__/header_filter.expressions.test.ts Tests utility behavior.
packages/devextreme/js/__internal/grids/grid_core/data_controller/__tests__/data_controller.combined_filter.test.ts Adds combined-filter regression coverage.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants