Skip to content

Updating EntityRequest.Base.template with code fix for response headers issue #202

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

Merged
merged 3 commits into from
May 29, 2019

Conversation

irvinesunday
Copy link
Contributor

This PR does the following:

Updates the EntityRequest.Base.template with the code fix that checks response headers and status codes in the AdditionalData property tag of entities and throws an error (if response headers or status code properties are found).

This fix is for task: microsoftgraph/msgraph-sdk-dotnet#426

New changes will propagate the fix for having response headers and status codes in request objects when UpdateAsync method is called in entities
Copy link
Contributor

@MIchaelMainer MIchaelMainer left a comment

Choose a reason for hiding this comment

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

This looks good. The main thing to look for is that we are generating valid code, that we aren't breaking existing code, and we are only affecting the intended files.

The only change I request is that we add a /// comment for the expected exception.
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/exception

image

@MIchaelMainer
Copy link
Contributor

  • Validate in client by building and writing test.

Another thing you'll need to do is to build the client library with the updated files. Do this by copying the generated files into their appropriate directory in the client repo. Can you verify that this builds?
image

You'll also be able to validate your test at this point. If all is good, go ahead and make a PR in the SDK repo for the updated code files.

  • @MIchaelMainer Update the build agent with this built updated typewriter.exe

Irvine Sunday added 2 commits May 29, 2019 14:55
- Adding the exception documentation in IEntityRequest.Base 
- Refactoring in EntityRequest.Base to include this if includeSendParams == true so that it shows in the async UpdateAsync() method.
@MIchaelMainer MIchaelMainer merged commit ed77c7d into dev May 29, 2019
MIchaelMainer added a commit that referenced this pull request Jun 5, 2019
* Add NamespacePrefix that's used as the class name prefix for generating ObjC models.
* Added preprocessors for nav properties
* Support updating the default base Graph URL via the endpointVersion argument.
* add rule to add containsTarget=true to labelPolicy navigation
* Convert edm.Decimal to number
* Handle CRLF in doc annotations as code comments.
*  Updated request builder interfaces to inherit from common interface
* Added IBaseRequestBuilder to consumers of IRequestBuilder.Base
* Applied <auto-generated/> comment tag to all generated c# files.
* Added comments to all complex types class definitions.
* Fix for enum naming for camelcased+underscore scenario (#194)
* Fix duplicate PHP enum name generation
* Add back camelcase-ization to limit the changes.
* Added preprocess rule for new intune navigation (#195)
* Updating EntityRequest.Base.template with code fix for response headers issue (#202)
* Updating template with response headers fix.
* New changes will propagate the fix for having response headers and status codes in request objects when UpdateAsync method is called in entities
* Adding the exception documentation in IEntityRequest.Base 
* Refactoring in EntityRequest.Base to include this if includeSendParams == true so that it shows in the async UpdateAsync() method.
* Fixed spacing indentation  (#204)
* New changes will propagate the fix for having response headers and status codes in request objects when UpdateAsync method is called in entities
* Adding exception description to documentation
* Adding and refactoring exception documentation
* Adding the exception documentation in IEntityRequest.Base 
* Refactoring in EntityRequest.Base to include this if includeSendParams == true so that it shows in the async UpdateAsync() method.
* Space Indentation Fixes
* Fixed bugs for publishing in definitely typed repo (#203)
* Add contains target for new entities. (#205)
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.

2 participants