jsonapi-serializer icon indicating copy to clipboard operation
jsonapi-serializer copied to clipboard

More Specific Ancestry Check

Open swards opened this issue 4 years ago • 0 comments

In the situation where a child has a type that is a substring of the parent type, jasonapi-serializer will stop looking for relationships at the child.

In our case, the parent was agent_lead and the child was agent. No relationships were being applied to the agent instance.

After this change, all relationships for the child were completed.

The test for ancestry is now more specific by testing for type and id.

swards avatar Feb 10 '21 21:02 swards