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

#214 Add support for N level inclusions for relationship look up call #248

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

mitch2na
Copy link
Contributor

Fixes a bug where includes for a relationship field call where not getting serialized in the include block.

Ex. /project/1/task?include=project now has task project being serialized

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 85.581% when pulling 66a976c on 214 into 901d4f4 on develop.

Copy link
Contributor

@chb0github chb0github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change approved. Hope my one suggestion makes it in

queryParamsMap.put("include[projects]", new HashSet<>(Collections.singletonList("task.projectsInit")));
QueryParams queryParams = queryParamsBuilder.buildQueryParams(queryParamsMap);

Project includedProject = new Project().setId(2L);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know, you could just add a constructor to the Project class. :) Then all could benefit. If you do, remember to keep a default one for jackson

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes true true, i just didn't want to make this pull request any bigger than it had to be. Keeps things simple :)

@mitch2na mitch2na merged commit 7b91a38 into develop Dec 1, 2016
@mitch2na mitch2na deleted the 214 branch January 19, 2017 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants