Skip to content

chore: Add test for filtering on doubly-nested embedded resource fields#706

Merged
zachdaniel merged 1 commit intomainfrom
fix/nested-embedded-get-path
Mar 4, 2026
Merged

chore: Add test for filtering on doubly-nested embedded resource fields#706
zachdaniel merged 1 commit intomainfrom
fix/nested-embedded-get-path

Conversation

@sevenseacat
Copy link
Contributor

@sevenseacat sevenseacat commented Mar 4, 2026

Adds AshPostgres.Test.BioAddress as a nested embedded resource within AshPostgres.Test.Bio, and a regression test that filters Author records by bio[:address][:city].

This exercises the get_path code path for doubly-nested embedded resources, which previously raised a CaseClauseError in AshSql.Expr.split_at_paths/4.

This is a companion PR to the actual bug fix in AshSql - ash-project/ash_sql#217

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Adds `AshPostgres.Test.BioAddress` as a nested embedded resource within
`AshPostgres.Test.Bio`, and a regression test that filters `Author` records
by `bio[:address][:city]`.

This exercises the `get_path` code path for doubly-nested embedded resources,
which previously raised a `CaseClauseError` in `AshSql.Expr.split_at_paths/4`.
@sevenseacat sevenseacat changed the title Add test for filtering on doubly-nested embedded resource fields chore: Add test for filtering on doubly-nested embedded resource fields Mar 4, 2026
@zachdaniel zachdaniel merged commit 19ae664 into main Mar 4, 2026
64 of 67 checks passed
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

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.

2 participants