feature/java generics improvements#313
Conversation
Templates/Java/requests_extensions/BaseEntityCollectionReferenceRequest.java.tt
Outdated
Show resolved
Hide resolved
6a6b379 to
d0a05a1
Compare
d0a05a1 to
7411da4
Compare
7411da4 to
9c09ad2
Compare
9c09ad2 to
2993236
Compare
2993236 to
a6c02af
Compare
a6c02af to
060f48e
Compare
|
The changes of this generation have been run against raptor here. It's complaining about the todo stuff as I haven't updated the feature/v3 branch from latest metadata in a while. |
|
I have done a second pass on this PR. Nothing stands out to me other than what we have discussed in the Teams meeting. Sharing my comments from the meeting here too: Just to make sure that the transfer of methods from child to base types happened as expected, please consider providing a type summary diff. We do this as part of the .NET generation pipeline The script loads the built assembly and walks through all the types and lists methods/properties declared directly in that type. It also sorts the results for easy-to-handle diffs. For this particular case, I think we don't want the filtering for the directly declared methods/properties, to make sure that by inheritance we get the same set after the change. Other than that, the change looks good. I really appreciate the smaller binary size and added javadocs. |
|
Part 1 I've tested the following calls with these changes in https://github.com/microsoftgraph/msgraph-sdk-java/pull/119/files to increase confidence in these changes:
// This uses an action.
public void testGetMailtips() {
TestBase testBase = new TestBase();
ArrayList<String> users = new ArrayList<String>();
users.add("michael@chambele.onmicrosoft.com");
users.add("AdeleV@chambele.onmicrosoft.com");
EnumSet<MailTipsType> mailtips = EnumSet.of(MailTipsType.MAILBOX_FULL_STATUS, MailTipsType.MAX_MESSAGE_SIZE);
UserGetMailTipsCollectionPage page = testBase.graphClient.me().getMailTips(users, mailtips).buildRequest().post();
assertNotNull(page);
}results in the following body: {
"emailAddresses": ["michael@chambele.onmicrosoft.com", "AdeleV@chambele.onmicrosoft.com"],
"mailTipsOptions": "MAILBOX_FULL_STATUS,MAX_MESSAGE_SIZE"
}expected: {
"emailAddresses": ["michael@chambele.onmicrosoft.com", "AdeleV@chambele.onmicrosoft.com"],
"mailTipsOptions": "mailboxFullStatus,maxMessageSize"
}Opened https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/issues/321 to track this. |
zengin
left a comment
There was a problem hiding this comment.
Thank you very much for adding the type summary. It helped a lot. LGTM in terms of typing changes. I will defer to Michael's tests for any potential functionality changes.
|
@MIchaelMainer no it doesn't, I still have to go through the remaining items you provided with the checklist. Thanks for the amazing testing work BTW! |
|
For clarity I'm moving the to-dos from the review here:
|
|
@MIchaelMainer I've just finished addressing the final 3 points. Let me know whether I missed anything, but this should be good for final review. |




this PR improves the java generation to take advantage of better genericity of the infrastructure and refactors duplicated code.
example changes: microsoftgraph/msgraph-sdk-java#119