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

Support Nested Inclusions N Levels Deep #214

Closed
mitch2na opened this issue Nov 15, 2016 · 6 comments
Closed

Support Nested Inclusions N Levels Deep #214

mitch2na opened this issue Nov 15, 2016 · 6 comments
Assignees

Comments

@mitch2na
Copy link
Contributor

mitch2na commented Nov 15, 2016

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

@mitch2na mitch2na self-assigned this Nov 15, 2016
mitch2na added a commit that referenced this issue Nov 15, 2016
@mitch2na mitch2na changed the title Support Nested Inclusions N deep Support Nested Inclusions N Levels Deep Nov 16, 2016
mitch2na added a commit that referenced this issue Nov 16, 2016
@chb0github
Copy link
Contributor

I knew of this limitation too and never got around to filing a ticket. Or did I?

@mitch2na
Copy link
Contributor Author

mitch2na commented Nov 17, 2016

@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

@chb0github
Copy link
Contributor

It should go all the way down. I had to hard code some IncludeByDefault on
fields I knew our UI used. That serialization code is scary which is why I
didn't take it on

On Wed, Nov 16, 2016, 6:03 PM Nick Mitchell notifications@github.com
wrote:

@chb0github https://github.com/chb0github Cool, seems to be working
great, 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


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#214 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABaI0O1jIRFhn-i4sdvlzbH5f9pK3xPkks5q-7XngaJpZM4KyHXl
.

mitch2na added a commit that referenced this issue Nov 17, 2016
…on annotation. Additionally, add serialization of all references down the chain.
@mitch2na
Copy link
Contributor Author

@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.

mitch2na added a commit that referenced this issue Nov 17, 2016
mitch2na added a commit that referenced this issue Nov 17, 2016
mitch2na added a commit that referenced this issue Nov 17, 2016
mitch2na added a commit that referenced this issue Nov 17, 2016
* #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
@chb0github
Copy link
Contributor

Do you have a pr? I can merge it in

On Wed, Nov 16, 2016, 8:46 PM Nick Mitchell notifications@github.com
wrote:

@chb0github https://github.com/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.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#214 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABaI0F2PFpnhRm-CJ4QRLlanAw_jbyZfks5q-9wQgaJpZM4KyHXl
.

@mitch2na
Copy link
Contributor Author

@chb0github Sorry merged it in last night, if you want to review it #215

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

No branches or pull requests

2 participants