Skip to content

Scheduler — Replace underscore-prefixed: Workspace group (agenda, timeline, month, indicator)#32797

Merged
aleksei-semikozov merged 12 commits intoDevExpress:26_1from
aleksei-semikozov:3519-workspace-group-replace-underscore-partial
Mar 17, 2026
Merged

Scheduler — Replace underscore-prefixed: Workspace group (agenda, timeline, month, indicator)#32797
aleksei-semikozov merged 12 commits intoDevExpress:26_1from
aleksei-semikozov:3519-workspace-group-replace-underscore-partial

Conversation

@aleksei-semikozov
Copy link
Copy Markdown
Contributor

No description provided.

@aleksei-semikozov aleksei-semikozov self-assigned this Mar 5, 2026
@aleksei-semikozov aleksei-semikozov marked this pull request as ready for review March 5, 2026 21:06
@aleksei-semikozov aleksei-semikozov requested a review from a team as a code owner March 5, 2026 21:06
Copilot AI review requested due to automatic review settings March 5, 2026 21:06
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

Refactors DevExtreme Scheduler internal workspace implementations to remove underscore-prefixed members (agenda/timeline/month/indicator) and updates Scheduler QUnit tests to use the new member names.

Changes:

  • Renamed several underscore-prefixed methods/properties to non-underscore equivalents across agenda/timeline/month/indicator workspaces (with updated call sites/overrides).
  • Updated Scheduler agenda unit/integration tests to stub/call the renamed workspace members.
  • Tightened visibility for some refactored members (e.g., private) in internal workspace classes.

Reviewed changes

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

Show a summary per file
File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/integration.agenda.tests.js Updates integration tests to use getRowHeight and rows instead of underscore-prefixed members.
packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/agenda.tests.js Updates unit tests to call recalculateAgenda / removeEmptyRows instead of underscore-prefixed methods.
packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_month.ts Renames month workspace helpers and updates binding used during table rendering.
packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts Renames indicator API (renderIndicator, createIndicator, etc.) and updates internal usage.
packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_work_week.ts Renames and re-wires date-increment override to incrementDate.
packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_week.ts Renames week header/date increment hooks to non-underscore methods.
packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_month.ts Renames duration calculation hook to calculateDurationInCells.
packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_day.ts Renames week header rendering hook to needRenderWeekHeader.
packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts Updates timeline workspace to call renamed indicator/week-header/date-increment hooks and adjusts related helpers.
packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts Refactors agenda workspace internal state/methods away from underscore-prefixed names and updates internal calls.

Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts Outdated
- m_work_space_indicator.ts: revert createIndicator to _createIndicator (used in subclass, cannot be private), remove stale comment
- m_timeline.ts: update calls to _createIndicator
- agenda.tests.js: update test name to match renamed method
@aleksei-semikozov aleksei-semikozov force-pushed the 3519-workspace-group-replace-underscore-partial branch from 087d578 to 59bcda1 Compare March 12, 2026 08:51
Copilot AI review requested due to automatic review settings March 12, 2026 08:51
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

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


You can also share your feedback on Copilot code review. Take the survey.

Copilot AI review requested due to automatic review settings March 12, 2026 12:29
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

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


You can also share your feedback on Copilot code review. Take the survey.

Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts
Comment thread packages/devextreme/js/__internal/scheduler/__tests__/workspace.base.test.ts Outdated
Copilot AI review requested due to automatic review settings March 12, 2026 13:23
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

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


You can also share your feedback on Copilot code review. Take the survey.

Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_month.ts Outdated
_getToday: any;
protected getToday?(): Date;

_$allDayPanel: any;
Copy link
Copy Markdown
Contributor

@Tucchhaa Tucchhaa Mar 13, 2026

Choose a reason for hiding this comment

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

why not put private and protected modifier to other props in this class?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's out of scope task, here I refactor agenda, timeline, month, indicator

Copy link
Copy Markdown
Contributor

@Tucchhaa Tucchhaa Mar 17, 2026

Choose a reason for hiding this comment

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

As I see in the epic card, m_work_space.ts file is already marked as refactored. So why this prop still have an underscore? When we will remove them?

Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_week.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts Outdated
Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts Outdated
Copilot AI review requested due to automatic review settings March 16, 2026 20:27
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

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


You can also share your feedback on Copilot code review. Take the survey.

Comment thread packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts Outdated
@aleksei-semikozov aleksei-semikozov force-pushed the 3519-workspace-group-replace-underscore-partial branch from 33bbda9 to 0b5d447 Compare March 16, 2026 20:35
Copilot AI review requested due to automatic review settings March 16, 2026 20:37
@aleksei-semikozov aleksei-semikozov force-pushed the 3519-workspace-group-replace-underscore-partial branch from 0b5d447 to 03a9ffc Compare March 16, 2026 20:37
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

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


You can also share your feedback on Copilot code review. Take the survey.

@aleksei-semikozov aleksei-semikozov force-pushed the 3519-workspace-group-replace-underscore-partial branch from 03a9ffc to e4f6008 Compare March 16, 2026 20:51
@aleksei-semikozov aleksei-semikozov merged commit fa4d971 into DevExpress:26_1 Mar 17, 2026
127 of 128 checks passed
aleksei-semikozov added a commit to aleksei-semikozov/DevExtreme that referenced this pull request Mar 17, 2026
@aleksei-semikozov aleksei-semikozov deleted the 3519-workspace-group-replace-underscore-partial branch March 20, 2026 17:12
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.

3 participants