Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix reacting to subtype-only relations. #1079

Merged
merged 1 commit into from May 8, 2024

Conversation

stephenh
Copy link
Collaborator

@stephenh stephenh commented May 8, 2024

If we saw a hint like:

  • child (no subtypes) -> parent (that is a subtype) -> something else

When we would reverse it, and try to go:

  • something else -> parent (that is a different subtype) -> children

The parent[children] would blow up, b/c that o2m may not exist.

This is very similar to conditionally walking through polys, so we reuse the same parent@Subtype to infra to stop the walking before trying to access parent[children].

If we saw a hint like:

* child (no subtypes) -> parent (that is a subtype) -> something else

When we would reverse it, and try to go:

* something else -> parent (that is a different subtype) -> children

The `parent[children]` would blow up, b/c that o2m may not exist.

This is very similar to conditionally walking through polys, so we
reuse the same `parent@Subtype` to infra to stop the walking before
trying to access `parent[children]`.
@stephenh stephenh merged commit 368a9be into main May 8, 2024
5 checks passed
@stephenh stephenh deleted the fix-reactiving-on-subtype-only-relation branch May 8, 2024 21:21
stephenh pushed a commit that referenced this pull request May 8, 2024
## [1.164.2](v1.164.1...v1.164.2) (2024-05-08)

### Bug Fixes

* Fix reacting to subtype-only relations. ([#1079](#1079)) ([368a9be](368a9be))
@stephenh
Copy link
Collaborator Author

stephenh commented May 8, 2024

🎉 This PR is included in version 1.164.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants