Skip to content

Make ParameterConstraint store its own inequality string#4658

Closed
mpolson64 wants to merge 1 commit into
facebook:mainfrom
mpolson64:export-D88880607
Closed

Make ParameterConstraint store its own inequality string#4658
mpolson64 wants to merge 1 commit into
facebook:mainfrom
mpolson64:export-D88880607

Conversation

@mpolson64
Copy link
Copy Markdown
Contributor

Summary:
Move some of the string parsing from ax/api into core Ax to allow a ParameterConstraint to be defined and constructed from its inequality string.

This will allow more flexibility in the future, but is primarily motivated by a want to store only the inequality string when saving ParameterConstraints and to eliminiate unnnecessary subclasses SumConstraint and OrderConstraint

Differential Revision: D88880607

@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 15, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 15, 2025

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4658      +/-   ##
==========================================
- Coverage   96.53%   96.53%   -0.01%     
==========================================
  Files         567      568       +1     
  Lines       59103    59136      +33     
==========================================
+ Hits        57054    57085      +31     
- Misses       2049     2051       +2     

☔ 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.

mpolson64 added a commit to mpolson64/Ax that referenced this pull request Dec 15, 2025
Summary:

Move some of the string parsing from ax/api into core Ax to allow a ParameterConstraint to be defined and constructed from its inequality string.

This will allow more flexibility in the future, but is primarily motivated by a want to store only the inequality string when saving ParameterConstraints and to eliminiate unnnecessary subclasses SumConstraint and OrderConstraint

Differential Revision: D88880607
mpolson64 added a commit to mpolson64/Ax that referenced this pull request Dec 15, 2025
Summary:

Move some of the string parsing from ax/api into core Ax to allow a ParameterConstraint to be defined and constructed from its inequality string.

This will allow more flexibility in the future, but is primarily motivated by a want to store only the inequality string when saving ParameterConstraints and to eliminiate unnnecessary subclasses SumConstraint and OrderConstraint

Reviewed By: saitcakmak

Differential Revision: D88880607
Summary:

Move some of the string parsing from ax/api into core Ax to allow a ParameterConstraint to be defined and constructed from its inequality string.

This will allow more flexibility in the future, but is primarily motivated by a want to store only the inequality string when saving ParameterConstraints and to eliminiate unnnecessary subclasses SumConstraint and OrderConstraint

Reviewed By: saitcakmak

Differential Revision: D88880607
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Dec 17, 2025

This pull request has been merged in 873a012.

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 Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants