Skip to content

v0.6.64 - #317

Merged
roncodes merged 3 commits into
mainfrom
release/v0.6.64
Sep 7, 2026
Merged

roncodes merged 3 commits into
mainfrom
release/v0.6.64

Conversation

@roncodes

@roncodes roncodes commented Sep 7, 2026

Copy link
Copy Markdown
Member

No description provided.

The Vehicle and Fleet resources read the request's `with` list and hand it
to `loadMissing()`. That is safe on their own endpoints, where the
controller has already allowlisted the list, but both resources are also
rendered nested inside Order and Driver responses. There the same request
carries the parent's expansions (`payload`, `driverAssigned.vehicle`), so
an order fetched with `?with=payload` that has a vehicle assigned failed
during serialisation with RelationNotFoundException: "Call to undefined
relationship [payload] on model Vehicle".

`requestedRelations()` now keeps only entries whose root segment is a
relation the wrapped model defines, and returns nothing for resources that
wrap plain data. Direct endpoint behaviour is unchanged.
…relations

fix: keep parent expansions away from nested Vehicle and Fleet resources
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e3b8cf9) to head (f95111c).

Additional details and impacted files
@@             Coverage Diff             @@
##                main      #317   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity     10003     10007    +4     
===========================================
  Files            531       531           
  Lines          38585     38592    +7     
===========================================
+ Hits           38585     38592    +7     
Flag Coverage Δ
backend 100.00% <100.00%> (ø)

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

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

@roncodes
roncodes merged commit 4008bea into main Sep 7, 2026
11 checks passed
@roncodes
roncodes deleted the release/v0.6.64 branch September 7, 2026 12:06
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