Skip to content

Cyclic/nested HasMany relationships are not extracted #239

Open

Description

@magneticflux-

I have a sample repo demonstrating this issue: https://github.com/magneticflux-/angular2-jsonapi-issue-reproduction

Simply clone it and run ng test --no-watch and one test should fail. I believe I have valid JSON:API data and correct model classes.

I expect thing_1.categories[0] to be category_1, and this is correct. However, I also expect category_1.members[0] to be thing_1, but the array is empty instead.

Activity

  1. magneticflux- commented on Aug 28, 2019

    @magneticflux-
    ContributorAuthor

    I know a test case in this repository would be the most helpful for debugging, but I'm not familiar enough with the layout of tests here to add a significant amount of code (new models, mock response data, etc.).

    Edit: I have a draft PR now that demonstrates the issue.

  2. added a commit that references this issue on Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions