Skip to content

fix(core): do not propagate STI sibling property checks to other subtypes - #8688

Merged
B4nan merged 1 commit into
masterfrom
claude/issue-8687-662547
Nov 12, 2026
Merged

B4nan merged 1 commit into
masterfrom
claude/issue-8687-662547

Conversation

@B4nan

@B4nan B4nan commented Nov 12, 2026

Copy link
Copy Markdown
Member

With single table inheritance, the root entity collects the checks of all its subtypes, and those were then copied down to every child. A check bound to a property that only one subtype has ended up on its siblings too, and initCheckConstraints crashed on the missing property. Base checks bound to a property the entity does not have are now skipped when inheriting.

Closes #8687

…ypes

The STI root collects checks of all its subtypes, and those were copied down to every child,
including ones that do not have the property the check is bound to, which crashed discovery.

Closes #8687
@B4nan
B4nan enabled auto-merge (squash) November 12, 2026 07:08
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.66%. Comparing base (1b655f9) to head (073b310).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8688   +/-   ##
=======================================
  Coverage   99.66%   99.66%           
=======================================
  Files         294      294           
  Lines       32739    32740    +1     
  Branches     9471     9472    +1     
=======================================
+ Hits        32629    32630    +1     
  Misses        106      106           
  Partials        4        4           

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

@B4nan
B4nan merged commit b0b2303 into master Nov 12, 2026
25 of 26 checks passed
@B4nan
B4nan deleted the claude/issue-8687-662547 branch November 12, 2026 07:11
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.

STI: property-level @Check on a child-only property crashes discovery ("Cannot read properties of undefined (reading 'fieldNames')")

1 participant