Skip to content

Conversation

@mgarrard
Copy link
Contributor

@mgarrard mgarrard commented Feb 2, 2026

Summary:
Enforce transition_to as a required argument in TransitionCriterion

This diff makes transition_to a required argument in the TransitionCriterion class. It updates the MinimumPreferenceOccurances and MinTrials classes to include transition_to as a required argument. The GenerationNode class is also updated to include a placeholder_transition_to attribute, which will be overwritten in the GenerationStrategy constructor.

The changes include:

  • Updated MinimumPreferenceOccurances and MinTrials classes to require transition_to argument
  • Added placeholder_transition_to attribute to GenerationNode class
  • Updated unit tests to reflect the changes

With this change, users will be required to provide a transition_to argument when creating a TransitionCriterion object. This ensures that the GenerationStrategy knows which generation node to transition to when a criterion is met.

Reviewed By: lena-kashtelyan

Differential Revision: D91141100

Summary:
**Enforce `transition_to` as a required argument in `TransitionCriterion`**

This diff makes `transition_to` a required argument in the `TransitionCriterion` class. It updates the `MinimumPreferenceOccurances` and `MinTrials` classes to include `transition_to` as a required argument. The `GenerationNode` class is also updated to include a `placeholder_transition_to` attribute, which will be overwritten in the `GenerationStrategy` constructor.

The changes include:

*   Updated `MinimumPreferenceOccurances` and `MinTrials` classes to require `transition_to` argument
*   Added `placeholder_transition_to` attribute to `GenerationNode` class
*   Updated unit tests to reflect the changes

With this change, users will be required to provide a `transition_to` argument when creating a `TransitionCriterion` object. This ensures that the `GenerationStrategy` knows which generation node to transition to when a criterion is met.

Reviewed By: lena-kashtelyan

Differential Revision: D91141100
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 2, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 2, 2026

@mgarrard has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91141100.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.75%. Comparing base (6a4a3b5) to head (0788715).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4848   +/-   ##
=======================================
  Coverage   96.75%   96.75%           
=======================================
  Files         590      590           
  Lines       61716    61719    +3     
=======================================
+ Hits        59711    59714    +3     
  Misses       2005     2005           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

mgarrard added a commit to mgarrard/Ax that referenced this pull request Feb 3, 2026
Summary:



**Enforce `transition_to` as a required argument in `TransitionCriterion`**

This diff makes `transition_to` a required argument in the `TransitionCriterion` class. It updates the `MinimumPreferenceOccurances` and `MinTrials` classes to include `transition_to` as a required argument. The `GenerationNode` class is also updated to include a `placeholder_transition_to` attribute, which will be overwritten in the `GenerationStrategy` constructor.

The changes include:

*   Updated `MinimumPreferenceOccurances` and `MinTrials` classes to require `transition_to` argument
*   Added `placeholder_transition_to` attribute to `GenerationNode` class
*   Updated unit tests to reflect the changes

With this change, users will be required to provide a `transition_to` argument when creating a `TransitionCriterion` object. This ensures that the `GenerationStrategy` knows which generation node to transition to when a criterion is met.

Reviewed By: lena-kashtelyan

Differential Revision: D91141100
mgarrard added a commit to mgarrard/Ax that referenced this pull request Feb 3, 2026
Summary:



**Enforce `transition_to` as a required argument in `TransitionCriterion`**

This diff makes `transition_to` a required argument in the `TransitionCriterion` class. It updates the `MinimumPreferenceOccurances` and `MinTrials` classes to include `transition_to` as a required argument. The `GenerationNode` class is also updated to include a `placeholder_transition_to` attribute, which will be overwritten in the `GenerationStrategy` constructor.

The changes include:

*   Updated `MinimumPreferenceOccurances` and `MinTrials` classes to require `transition_to` argument
*   Added `placeholder_transition_to` attribute to `GenerationNode` class
*   Updated unit tests to reflect the changes

With this change, users will be required to provide a `transition_to` argument when creating a `TransitionCriterion` object. This ensures that the `GenerationStrategy` knows which generation node to transition to when a criterion is met.

Reviewed By: lena-kashtelyan

Differential Revision: D91141100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants