Skip to content

test: regression tests for manage_relationship from hooks#727

Merged
zachdaniel merged 1 commit intoash-project:mainfrom
barnabasJ:test/manage-relationship-from-hooks
Mar 24, 2026
Merged

test: regression tests for manage_relationship from hooks#727
zachdaniel merged 1 commit intoash-project:mainfrom
barnabasJ:test/manage-relationship-from-hooks

Conversation

@barnabasJ
Copy link
Contributor

Summary

Companion PR: ash-project/ash#2647 (the fix)

Test plan

  • All 8 new tests pass with the ash fix applied
  • Full suite passes: 713 tests, 0 failures

Add comprehensive tests for manage_relationship called from
before_transaction and before_action hooks on create and update
actions. Covers both regular and bulk operations.

This is the ash_postgres companion to the fix in ash that recomputes
changed? after setup_managed_belongs_to_relationships, which prevented
FK changes from hook-added managed relationships from being persisted.
@zachdaniel zachdaniel merged commit 44f9a85 into ash-project:main Mar 24, 2026
101 of 111 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.

2 participants