Skip to content

Preserve weighted outcome constraints in SQL storage - #5325

Closed
saitcakmak wants to merge 1 commit into
meta:mainfrom
saitcakmak:export-D134526278
Closed

saitcakmak wants to merge 1 commit into
meta:mainfrom
saitcakmak:export-D134526278

Conversation

@saitcakmak

Copy link
Copy Markdown
Contributor

Summary:

What Changed

Store multi-metric OutcomeConstraint expressions using the existing scalarized constraint rows instead of silently dropping all but the first metric. Preserve the original expression and map metric names to signatures using the child rows. Keep the legacy scalarized decoder for rows without an expression. No schema change.

Differential Revision: D134526278

Summary:
## What Changed
Store multi-metric `OutcomeConstraint` expressions using the existing scalarized constraint rows instead of silently dropping all but the first metric. Preserve the original expression and map metric names to signatures using the child rows. Keep the legacy scalarized decoder for rows without an expression. No schema change.

Differential Revision: D134526278
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 30, 2026
@meta-codesync

meta-codesync Bot commented Nov 30, 2026

Copy link
Copy Markdown

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

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.61%. Comparing base (5beadc8) to head (a8a7c24).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5325      +/-   ##
==========================================
- Coverage   96.62%   96.61%   -0.01%     
==========================================
  Files         621      621              
  Lines       71301    71324      +23     
==========================================
+ Hits        68892    68910      +18     
- Misses       2409     2414       +5     

☔ View full report in Codecov by Harness.
📢 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.

@meta-codesync meta-codesync Bot closed this in a86d5b0 Nov 30, 2026
@meta-codesync meta-codesync Bot added the Merged label Nov 30, 2026
@meta-codesync

meta-codesync Bot commented Nov 30, 2026

Copy link
Copy Markdown

This pull request has been merged in a86d5b0.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants