Skip to content

Conversation

@peombwa
Copy link
Member

@peombwa peombwa commented Feb 18, 2021

This PR closes #502 by removing unnecessary {Entity}-Id property from entities. This was previously throwing a conversion error when converting MicrosoftGraphUser to IMicrosoftGraphUser.

This PR also adds tests for New-MgInvitation to validate the fix. The tests run by mocking AutoREST's HttpPipeline infrastructure.

@peombwa peombwa self-assigned this Feb 18, 2021
@georgend
Copy link
Contributor

👍👍 on the test mocks.

@peombwa peombwa merged commit 9ce9ab3 into dev Feb 24, 2021
@peombwa peombwa deleted the bugfixes/RequestObjectCleanUp branch February 24, 2021 19:27
peombwa added a commit that referenced this pull request Mar 4, 2021
* Add DeviceManagement modules

* Add importedDeviceIdentity to device enrolment

* Add role management to administration

* Add device management actions and functions.

* Updated applications samples

* Added send mail sample

* Apply directive to fix wrongly named cmdlets.

* Regenerate module manifests.

* Remove *-UserAuthenticationMethod commands

* Update src/Identity.SignIns/Identity.SignIns/readme.md

Co-authored-by: Peter Ombwa <peter.ombwa@microsoft.com>

* Remove TenantId, ForceRefresh and ContextScope from AccessTokenParameterSet

* Add unit test.

* Add directive to remove Count, Keys, and Values properties from implementations of an IAssociativeArray.

* Remove new modifier for values, keys and count.

* Inline ediscovery.tag and ediscovery.sourceCollection entities.

* Cleanup previous device management modules.

* Add deviceManamenet module.

* Add deviceManagement.Action directives.

* Clean up deviceManagement directives.

* Remove ADO feeds from nuget.config.

* Remove breaking undocumented cmdlet

* Add device management profiles.

* Write generation errors to pipeline.

* Update weekly generation ADO pipeline to bump patch numbers.

* Update users.actions module directive.

* Update ADO pipeline to use the latest version of AutoREST.

* Set NODE memory to 8192.

* Set node memory in generation script.

* Clean up pipelines.

* Weekly OpenApiDocs Download (#561)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* 1.3.2 Pre-Releases (#565)

* Add directive to remove breaking undocumented API.

* Bump all modules to 1.3.2

* Add rename directive to duplicate device management cmdlets.

* Update readme.md

* Weekly OpenApiDocs Download (#567)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* Request Object Property Cleanup (#560)

* Remove entity-id property from entities.

* Add tests for New-MgInvitation.

* Set user type to MicrosoftGraphUser in v1.0.

* Exclude *.md files from nuget package to reduce overrall package size. (#566)

* Exclude *.md files from nuget package to reduce overrall package size.

* Exclude markdown files in weekly service module generation.

* Simplify and handle possibility of position change.

* Weekly OpenApiDocs Download (#569)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* 1.4.0 Pre-Release (#570)

* Add no-inline for Microsoft.Graph.contentType and columnDefinition.

* Bump module version to 1.4.0

* Resolve Identity.Governance duplicate cmdlet.

Co-authored-by: Darrel Miller <darrel.miller@microsoft.com>
Co-authored-by: DeVere Dyett <ddyett@microsoft.com>
Co-authored-by: Andres Canello [Microsoft] <39328890+andres-canello@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
Co-authored-by: George <1641829+finsharp@users.noreply.github.com>
peombwa added a commit that referenced this pull request Mar 10, 2021
* Add DeviceManagement modules

* Add importedDeviceIdentity to device enrolment

* Add role management to administration

* Add device management actions and functions.

* Updated applications samples

* Added send mail sample

* Apply directive to fix wrongly named cmdlets.

* Regenerate module manifests.

* Remove *-UserAuthenticationMethod commands

* Update src/Identity.SignIns/Identity.SignIns/readme.md

Co-authored-by: Peter Ombwa <peter.ombwa@microsoft.com>

* Remove TenantId, ForceRefresh and ContextScope from AccessTokenParameterSet

* Add unit test.

* Add directive to remove Count, Keys, and Values properties from implementations of an IAssociativeArray.

* Remove new modifier for values, keys and count.

* Inline ediscovery.tag and ediscovery.sourceCollection entities.

* Cleanup previous device management modules.

* Add deviceManamenet module.

* Add deviceManagement.Action directives.

* Clean up deviceManagement directives.

* Remove ADO feeds from nuget.config.

* Remove breaking undocumented cmdlet

* Add device management profiles.

* Write generation errors to pipeline.

* Update weekly generation ADO pipeline to bump patch numbers.

* Update users.actions module directive.

* Update ADO pipeline to use the latest version of AutoREST.

* Set NODE memory to 8192.

* Set node memory in generation script.

* Clean up pipelines.

* Weekly OpenApiDocs Download (#561)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* 1.3.2 Pre-Releases (#565)

* Add directive to remove breaking undocumented API.

* Bump all modules to 1.3.2

* Add rename directive to duplicate device management cmdlets.

* Update readme.md

* Weekly OpenApiDocs Download (#567)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* Request Object Property Cleanup (#560)

* Remove entity-id property from entities.

* Add tests for New-MgInvitation.

* Set user type to MicrosoftGraphUser in v1.0.

* Exclude *.md files from nuget package to reduce overrall package size. (#566)

* Exclude *.md files from nuget package to reduce overrall package size.

* Exclude markdown files in weekly service module generation.

* Simplify and handle possibility of position change.

* Weekly OpenApiDocs Download (#569)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* 1.4.0 Pre-Release (#570)

* Add no-inline for Microsoft.Graph.contentType and columnDefinition.

* Bump module version to 1.4.0

* Resolve Identity.Governance duplicate cmdlet.

Co-authored-by: Darrel Miller <darrel.miller@microsoft.com>
Co-authored-by: DeVere Dyett <ddyett@microsoft.com>
Co-authored-by: Andres Canello [Microsoft] <39328890+andres-canello@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
Co-authored-by: George <1641829+finsharp@users.noreply.github.com>
peombwa added a commit that referenced this pull request Mar 11, 2021
* Add DeviceManagement modules

* Add importedDeviceIdentity to device enrolment

* Add role management to administration

* Add device management actions and functions.

* Updated applications samples

* Added send mail sample

* Apply directive to fix wrongly named cmdlets.

* Regenerate module manifests.

* Remove *-UserAuthenticationMethod commands

* Update src/Identity.SignIns/Identity.SignIns/readme.md

Co-authored-by: Peter Ombwa <peter.ombwa@microsoft.com>

* Remove TenantId, ForceRefresh and ContextScope from AccessTokenParameterSet

* Add unit test.

* Add directive to remove Count, Keys, and Values properties from implementations of an IAssociativeArray.

* Remove new modifier for values, keys and count.

* Inline ediscovery.tag and ediscovery.sourceCollection entities.

* Cleanup previous device management modules.

* Add deviceManamenet module.

* Add deviceManagement.Action directives.

* Clean up deviceManagement directives.

* Remove ADO feeds from nuget.config.

* Remove breaking undocumented cmdlet

* Add device management profiles.

* Write generation errors to pipeline.

* Update weekly generation ADO pipeline to bump patch numbers.

* Update users.actions module directive.

* Update ADO pipeline to use the latest version of AutoREST.

* Set NODE memory to 8192.

* Set node memory in generation script.

* Clean up pipelines.

* Weekly OpenApiDocs Download (#561)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* 1.3.2 Pre-Releases (#565)

* Add directive to remove breaking undocumented API.

* Bump all modules to 1.3.2

* Add rename directive to duplicate device management cmdlets.

* Update readme.md

* Weekly OpenApiDocs Download (#567)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* Request Object Property Cleanup (#560)

* Remove entity-id property from entities.

* Add tests for New-MgInvitation.

* Set user type to MicrosoftGraphUser in v1.0.

* Exclude *.md files from nuget package to reduce overrall package size. (#566)

* Exclude *.md files from nuget package to reduce overrall package size.

* Exclude markdown files in weekly service module generation.

* Simplify and handle possibility of position change.

* Weekly OpenApiDocs Download (#569)

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>

* 1.4.0 Pre-Release (#570)

* Add no-inline for Microsoft.Graph.contentType and columnDefinition.

* Bump module version to 1.4.0

* Resolve Identity.Governance duplicate cmdlet.

Co-authored-by: Darrel Miller <darrel.miller@microsoft.com>
Co-authored-by: DeVere Dyett <ddyett@microsoft.com>
Co-authored-by: Andres Canello [Microsoft] <39328890+andres-canello@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
Co-authored-by: George <1641829+finsharp@users.noreply.github.com>

Co-authored-by: Darrel Miller <darrel.miller@microsoft.com>
Co-authored-by: DeVere Dyett <ddyett@microsoft.com>
Co-authored-by: Andres Canello [Microsoft] <39328890+andres-canello@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
Co-authored-by: George <1641829+finsharp@users.noreply.github.com>
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.

Ensure we don't add unnecessary properties to an object when making requests

3 participants