Skip to content

chore: deprecating cascading shadow variables - #2865

Merged
triceo merged 1 commit into
TimefoldAI:mainfrom
zepfred:doc/cascading-deprecation
Dec 1, 2026
Merged

triceo merged 1 commit into
TimefoldAI:mainfrom
zepfred:doc/cascading-deprecation

Conversation

@zepfred

@zepfred zepfred commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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 recorded for the annotation deprecation and migration guidance.

No open issues 🎉

What changed in this PR

This PR deprecates @CascadingUpdateShadowVariable in favor of declarative shadow variables and provides migration guidance for existing solver models.

Changes:

  • Marks the annotation as deprecated since 2.10.0, with removal planned.
  • Corrects update-order documentation and warns against mixing cascading and declarative shadow variables.
  • Adds a before-and-after migration example using @ShadowVariable and @ShadowSources.
File Description
docs/​src/​modules/​ROOT/​pages/​upgrading-timefold-solver/​upgrade-to-latest.adoc Adds migration guidance and a declarative supplier example.
docs/​src/​modules/​ROOT/​pages/​domain-modeling/​modeling-planning-problems.adoc Adds deprecation warnings and clarifies update order.
core/​src/​main/​java/​ai/​timefold/​solver/​core/​api/​domain/​variable/​CascadingUpdateShadowVariable.java Adds the deprecation annotation and updates Javadoc.

Review effort: Balanced

@triceo

triceo commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Please make sure we do not use deprecated code in the quickstarts.

@triceo triceo added this to the v2.10.0-rc-1 milestone Dec 1, 2026
@zepfred

zepfred commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Please make sure we do not use deprecated code in the quickstarts.

I confirmed that the quickstarts are not using cascading variables.

@triceo
triceo merged commit f6050a1 into TimefoldAI:main Dec 1, 2026
42 checks passed

This branch was successfully deployed

1 active and 1 inactive deployments
documentation (preview) — cfbf1c24 Deployed Dec 1, 2026 by zepfred via Build Documentation #937
internal — cfbf1c24 Deployed Dec 1, 2026 by zepfred via approval_required #5419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants