Skip to content

Document exposing a subclass's fields through a computed field - #312

Merged
TomHAnderson merged 1 commit into
API-Skeletons:14.0.xfrom
TomHAnderson:hotfix/inheritance-subclass-fields
Oct 3, 2026
Merged

TomHAnderson merged 1 commit into
API-Skeletons:14.0.xfrom
TomHAnderson:hotfix/inheritance-subclass-fields

Conversation

@TomHAnderson

Copy link
Copy Markdown
Member

Each exposed entity class has its own, unrelated type, so a connection of a parent cannot give a subclass's own fields, even with a fragment. A computed field of the subclass's type on the parent, which returns the entity when it is of the subclass, exposes them. Test it, batched and not, by value and by reference, and through a to-one association.

Each exposed entity class has its own, unrelated type, so a connection
of a parent cannot give a subclass's own fields, even with a fragment.
A computed field of the subclass's type on the parent, which returns the
entity when it is of the subclass, exposes them.  Test it, batched and
not, by value and by reference, and through a to-one association.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8a25132) to head (eef9bcf).
⚠️ Report is 1 commits behind head on 14.0.x.

Additional details and impacted files
@@             Coverage Diff             @@
##              14.0.x      #312   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1147      1147           
===========================================
  Files             79        79           
  Lines           3100      3100           
===========================================
  Hits            3100      3100           

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

@TomHAnderson
TomHAnderson merged commit 716bcd5 into API-Skeletons:14.0.x Oct 3, 2026
13 checks passed
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.

1 participant