Skip to content

Commit

Permalink
Removes containment for drive navigation property for `fileStorageC…
Browse files Browse the repository at this point in the history
…ontainer` entity type (#656)

* Update tests

* Remove containsTarget for drives nav. prop. for fileStorageContainer
  • Loading branch information
irvinesunday authored Jul 29, 2024
1 parent 0ce6dea commit b458e09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transforms/csdl/preprocess_csdl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='group']/edm:NavigationProperty[@Name='rejectedSenders']/@ContainsTarget|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='connectedOrganization']/edm:NavigationProperty[@Name='externalSponsors']/@ContainsTarget|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='connectedOrganization']/edm:NavigationProperty[@Name='internalSponsors']/@ContainsTarget|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='accessPackageCatalog']/edm:NavigationProperty[@Name='accessPackages']/@ContainsTarget">
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='accessPackageCatalog']/edm:NavigationProperty[@Name='accessPackages']/@ContainsTarget|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='fileStorageContainer']/edm:NavigationProperty[@Name='drive']/@ContainsTarget">
<xsl:apply-templates select="@* | node()"/>
</xsl:template>

Expand Down
3 changes: 3 additions & 0 deletions transforms/csdl/preprocess_csdl_test_input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@
<Property Name="apiConnectorConfiguration" Type="graph.userFlowApiConnectorConfiguration" />
<NavigationProperty Name="identityProviders" Type="Collection(graph.identityProvider)" />
</EntityType>
<EntityType Name="fileStorageContainer" BaseType="graph.entity">
<NavigationProperty Name="drive" Type="graph.drive" ContainsTarget="true" />
</EntityType>
<ComplexType Name="certificateAuthority">
<Property Name="certificate" Type="Edm.Binary" Nullable="false" />
<Property Name="isRootAuthority" Type="Edm.Boolean" Nullable="false" />
Expand Down
3 changes: 3 additions & 0 deletions transforms/csdl/preprocess_csdl_test_output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,9 @@
<Property Name="apiConnectorConfiguration" Type="graph.userFlowApiConnectorConfiguration" />
<NavigationProperty Name="identityProviders" Type="Collection(graph.identityProvider)" />
</EntityType>
<EntityType Name="fileStorageContainer" BaseType="graph.entity">
<NavigationProperty Name="drive" Type="graph.drive" />
</EntityType>
<ComplexType Name="certificateAuthority">
<Property Name="certificate" Type="Edm.Binary" Nullable="false" />
<Property Name="isRootAuthority" Type="Edm.Boolean" Nullable="false" />
Expand Down

0 comments on commit b458e09

Please sign in to comment.