Scheduler - Remove old render#33397
Open
aleksei-semikozov wants to merge 9 commits into
Open
Conversation
… descriptions, remove redundant setCurrentTimeCells
6f060e4 to
4f5a5a0
Compare
…render # Conflicts: # packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts # packages/devextreme/js/__internal/scheduler/workspaces/m_work_space.ts
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the Scheduler “old render” path and the renovateRender switch, updating the workspace implementation and test suite to rely on the renovated rendering APIs (e.g., getCellData) exclusively.
Changes:
- Removed
renovateRenderinternal option/plumbing and deleted old-render-only workspace code paths. - Updated Scheduler workspace-related QUnit tests to stop toggling
renovateRenderand to read cell metadata viagetCellData. - Added a safety fix for Draggable dispose behavior and adjusted a couple of Angular SSR/tests utilities.
Reviewed changes
Copilot reviewed 35 out of 35 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/workSpace.week.tests.js | Drops renovateRender: false usage; switches to getCellData assertions. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/workSpace.renovation.tests.js | Removes explicit renovateRender: true setup. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/workSpace.navigation.tests.js | Removes explicit renovateRender: true from workspace creation. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/workSpace.month.tests.js | Collapses dual-mode tests and replaces dxCellData reads with getCellData. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/workSpace.markup-1.tests.js | Updates markup tests to use getCellData and removes old-render branching. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/workSpace.day.tests.js | Removes renovateRender toggles; uses getCellData for validation. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/views.renovation.tests.js | Removes explicit renovateRender: true from Scheduler initialization. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/views.cellTemplate.tests.js | Removes old/renovated split; simplifies configs and drops renovateRender param. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/timezones.tests.js | Removes renovateRender parameterization for timezone drag/render tests. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/timeline.tests.js | Removes renovateRender parameterization and updates cellData reads. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/timeline.markup.tests.js | Removes core/element_data usage and switches to getCellData. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/subscribes.tests.js | Removes renovateRender parameterization in grouping-by-date tests. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/pacificTime.tests.js | Removes renovateRender parameterization for timeCellTemplate DST tests. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/integration.workSpace.tests.js | Updates integration assertions to use workspace getCellData. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/integration.resources.tests.js | Removes renovateRender parameterization for resources update test. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/integration.multiWeekAppointments.tests.js | Removes renovateRender parameterization in RTL grouped multi-week test. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/common.tests.js | Removes renovateRender parameterization from scroll height test. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/appointment.week.based.views.tests.js | Simplifies related cell data retrieval to workspace getCellData. |
| packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/appointment.timeLines.tests.js | Removes renovateRender branching from timeline multi-day appointment test. |
| packages/devextreme/testing/tests/DevExpress.serverSide/scheduler.tests.js | Removes server-side renovateRender expectation test and unused helper import. |
| packages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator.ts | Removes old-render TODO note on getDateByCellIndices. |
| packages/devextreme/js/__internal/scheduler/workspaces/m_work_space.ts | Deletes old-render methods/branches; removes renovateRender default/handling; makes renovated render unconditional. |
| packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_month.ts | Removes old-render-only month workspace overrides/constants. |
| packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_indicator.ts | Always re-renders renovated header/time panel on time indication update. |
| packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_day.ts | Removes old-render date header override; relies on renovated header rendering. |
| packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts | Removes old-render logic and unused imports/constants; makes renovated dimension updates unconditional. |
| packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts | Minor signature/override adjustments; forces isVirtualScrolling() to false. |
| packages/devextreme/js/__internal/scheduler/workspaces/helpers/m_position_helper.ts | Removes obsolete old-render refactor TODO comment. |
| packages/devextreme/js/__internal/scheduler/utils/options/types.ts | Removes renovateRender from internal scheduler options type. |
| packages/devextreme/js/__internal/scheduler/utils/options/constants.ts | Removes renovateRender from internal default options. |
| packages/devextreme/js/__internal/scheduler/m_scheduler.ts | Removes renovateRender option propagation and selection logic. |
| packages/devextreme/js/__internal/m_draggable.ts | Makes _stopAnimator() null-safe via optional chaining. |
| packages/devextreme/js/__internal/tests/draggable_dispose.test.ts | Adds regression test ensuring dispose doesn’t crash when _scrollAnimator is undefined. |
| packages/devextreme-angular/tests/src/ui/form.spec.ts | Fixes nested custom validation rule tag selection for new nested-item API. |
| packages/devextreme-angular/src/server/render.ts | Adds guard for empty SSR output when copying attributes/innerHTML. |
Comment on lines
+2320
to
2321
| this.createRAllDayPanelElements(); | ||
| this.removeAllDayElements(); |
| temp.innerHTML = renderToString(el); | ||
|
|
||
| const mainElement = temp.childNodes[0]; | ||
| if (!mainElement) { |
Comment on lines
2318
to
2323
| case 'groupOrientation': | ||
| this.initGroupedStrategy(); | ||
| this.createAllDayPanelElements(); | ||
| this.createRAllDayPanelElements(); | ||
| this.removeAllDayElements(); | ||
| this.cleanWorkSpace(); | ||
| this.toggleGroupByDateClass(); |
| assert.strictEqual(scheduler.appointments.getAppointmentCount(), 4, 'Appointments are rendered'); | ||
| assert.strictEqual($(scheduler.appointments.getAppointment(2)).position().left, $(scheduler.appointments.getAppointment(3)).position().left, 'Appointments have same left coordinate'); | ||
| assert.strictEqual($(scheduler.appointments.getAppointment(2)).innerWidth(), $(scheduler.appointments.getAppointment(3)).innerWidth(), 'Appointments with equal coords have same width'); | ||
| assert.strictEqual($(scheduler.appointments.getAppointment(3)).innerWidth(), $(scheduler.appointments.getAppointment(3)).innerWidth(), 'Appointments with defferent coords have same width'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.