Skip to content

Grids: ColumnsController - move column creation utils into the class - #36826

Open
Alyar666 wants to merge 8 commits into
DevExpress:mainfrom
Alyar666:grids_columns_controller_utils_b3_26_2
Open

Alyar666 wants to merge 8 commits into
DevExpress:mainfrom
Alyar666:grids_columns_controller_utils_b3_26_2

Conversation

@Alyar666

@Alyar666 Alyar666 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Alyar666
Alyar666 requested a review from a team as a code owner December 4, 2026 17:42
Copilot AI balanced review requested due to automatic review settings December 4, 2026 17:42
@Alyar666 Alyar666 added the 27_1 label Dec 4, 2026
@Alyar666 Alyar666 self-assigned this Dec 4, 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

The column-creation refactor has no active review issues.

No open issues 🎉

What changed in this PR

Refactors shared grid column creation into ColumnsController, consolidating controller-owned behavior and state.

Changes:

  • Moves creation helpers into private methods and narrows internal member visibility.
  • Migrates utility-level creation tests to grid-level tests covering options, bands, saved state, and data-source generation.
File Description
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​columns_controller.ts Incorporates creation helpers and encapsulates related state.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​columns_controller_utils.ts Removes helpers moved into the controller.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​__tests__/​columns_controller.column_creation.test.ts Adds grid-level column creation coverage.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​__tests__/​columns_controller_utils.test.ts Removes migrated utility-level tests.
packages/​devextreme/​js/​__internal/​grids/​data_grid/​grouping/​extenders/​grouping_columns_controller.ts Aligns the expand-column override with protected visibility.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 5, 2026 01:17

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 active review issues are reported for the column-creation refactor.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
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