Skip to content

Grids - DataController: Extract editing state knowledge to extenders - #35042

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

Grids - DataController: Extract editing state knowledge to extenders#35042
Alyar666 wants to merge 1 commit into
DevExpress:mainfrom
Alyar666:grid_data_extract_editing_state_knowledge_to_extenders_26_2

Conversation

@Alyar666

@Alyar666 Alyar666 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 3, 2026 13:00
@Alyar666
Alyar666 requested a review from a team as a code owner September 3, 2026 13:00
@Alyar666 Alyar666 self-assigned this Sep 3, 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 change cleanly relocates editing-specific logic into the editing extender and includes a focused regression test to cover the new behavior.

Pull request overview

Moves “cell modified” change detection out of the shared DataController and into the editing-specific data controller extender, so the base data layer no longer needs to know about editing state while editing behavior remains correct.

Changes:

  • Extracted a shared isCellModified(row, columnIndex) helper into m_editing_utils.ts.
  • Updated the editing data controller extender to treat modified-mark changes as a cell change (in addition to value changes).
  • Simplified DataController._isCellChanged to only compare cell values, and added a Jest regression test covering modified-mark-only updates.
File summaries
File Description
packages/devextreme/js/__internal/grids/grid_core/editing/m_editing_utils.ts Adds isCellModified utility for checking modifiedValues per column.
packages/devextreme/js/__internal/grids/grid_core/editing/extenders/editing_data_controller.ts Uses isCellModified to report per-cell changes when only the “modified” mark toggles.
packages/devextreme/js/__internal/grids/grid_core/editing/extenders/tests/editing_data_controller.row_changes.test.ts Adds coverage ensuring a modified mark without a new value still reports the correct changed cell.
packages/devextreme/js/__internal/grids/grid_core/data_controller/data_controller.ts Removes editing-specific modified mark logic from the base _isCellChanged implementation.
Review details
  • Files reviewed: 4/4 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.

@Alyar666
Alyar666 added this pull request to the merge queue Sep 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Sep 4, 2026
@Alyar666
Alyar666 added this pull request to the merge queue Sep 4, 2026
@Alyar666
Alyar666 removed this pull request from the merge queue due to a manual request Sep 4, 2026
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.

3 participants