Skip to content

Remove SingleTableProgrammableConstraint class#2887

Merged
frances-h merged 2 commits into
mainfrom
issue-2882-remove-SingleTableProgrammableConstraint
May 21, 2026
Merged

Remove SingleTableProgrammableConstraint class#2887
frances-h merged 2 commits into
mainfrom
issue-2882-remove-SingleTableProgrammableConstraint

Conversation

@frances-h
Copy link
Copy Markdown
Contributor

Resolve #2882

@frances-h frances-h requested a review from a team as a code owner May 19, 2026 16:16
@frances-h frances-h requested review from amontanez24 and removed request for a team May 19, 2026 16:16
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.02%. Comparing base (a352644) to head (e86ab7a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2887      +/-   ##
==========================================
- Coverage   98.03%   98.02%   -0.01%     
==========================================
  Files          73       73              
  Lines        8396     8370      -26     
==========================================
- Hits         8231     8205      -26     
  Misses        165      165              
Flag Coverage Δ
integration 75.72% <100.00%> (-0.18%) ⬇️
unit 97.06% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@frances-h frances-h requested a review from R-Palazzo May 19, 2026 16:20
@frances-h frances-h force-pushed the issue-2882-remove-SingleTableProgrammableConstraint branch from e365974 to fba66a9 Compare May 19, 2026 16:49
Copy link
Copy Markdown
Contributor

@R-Palazzo R-Palazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread sdv/cag/programmable_constraint.py Outdated
super().__init__()
self.programmable_constraint = programmable_constraint
self.table_name = getattr(self.programmable_constraint, 'table_name', None)
self.table_name = getattr(programmable_constraint, 'table_name', None)
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.

Do we need this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to revert this change, but there's a check in multi-table that forces single-table constraints to have the table_name attribute set.

I'll revert this change here back to what it was, I just wanted to comment on why I tried to change it in the first place.

@frances-h frances-h force-pushed the issue-2882-remove-SingleTableProgrammableConstraint branch from 10733d7 to e86ab7a Compare May 20, 2026 19:24
@frances-h frances-h merged commit 60f991d into main May 21, 2026
47 checks passed
@frances-h frances-h deleted the issue-2882-remove-SingleTableProgrammableConstraint branch May 21, 2026 13:48
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.

Remove SingleTableProgrammableConstraint class

3 participants