-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support Nested Inclusions N Levels Deep #214
Comments
I knew of this limitation too and never got around to filing a ticket. Or did I? |
@chb0github Cool, seems to be working right now, but the serialization code is a bit of nightmare. Going to try and clean it up a bit. I do have one question, when serializing included data it stops serializing relationship data after the second level. I am guessing it should serialize data as far as it finds it down the chain? Not sure if this might be an issue if some data is self referencing |
It should go all the way down. I had to hard code some IncludeByDefault on On Wed, Nov 16, 2016, 6:03 PM Nick Mitchell notifications@github.com
|
…on annotation. Additionally, add serialization of all references down the chain.
@chb0github Haha i know what you mean! Okay i just finished the last commit for this and i think its good to go. Simplified the inclusion and default / lazy serialization code while adding serialization of all relationship objects down the chain. |
* #214 Add support for serialization of nested inclusions N levels * #214 Add some tests and support for include data links to have it's related path list. * #214 Reliable test with an ordered field list and include serialization enactment * #214 Clean up some redundant code on included relationship extractor * #214 Code clean up * #214 Simplify serializer for inclusion parameters and default inclusion annotation. Additionally, add serialization of all references down the chain. * #214 Clean up code * #214 More cod clean up * #214 Final clean up for edge cases
Do you have a pr? I can merge it in On Wed, Nov 16, 2016, 8:46 PM Nick Mitchell notifications@github.com
|
@chb0github Sorry merged it in last night, if you want to review it #215 |
Right now nested inclusions only work up to the second level. I am in progress of enhancing the serializer to support inclusion values that are N levels down. For example:
localhost/web/project/1?include=tasks.includedProject.tasks
The text was updated successfully, but these errors were encountered: