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

[Fix] Generate paths for stream properties in base types of entities #110

Merged
merged 3 commits into from
Aug 18, 2021

Conversation

irvinesunday
Copy link
Collaborator

Fixes #109
Fixes microsoftgraph/microsoft-graph-devx-api#637

This PR:

  • Updates the ODataPathProvider.cs to ensure generation of paths for stream properties declared both in the target type definitions and their base types.
  • Updates the ODataPathProviderTests.cs to validate the above. Also refactors the target test for readability and conciseness.
  • Refactors the MediaEntityOperationalHandler.cs class and its derived classes to use the abstraction -
    ODataNavigationSourceSegment to define the NavigationSourceSegment for a path. This helps in general maintainability and code conciseness.

@irvinesunday irvinesunday added the type:bug A broken experience label Jul 14, 2021
@irvinesunday irvinesunday self-assigned this Jul 14, 2021
@xuzhg
Copy link
Contributor

xuzhg commented Jul 14, 2021

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug A broken experience
Projects
None yet
2 participants