Skip to content

Commit

Permalink
Merge pull request #589 from microsoftgraph/andrueastman/fixsites
Browse files Browse the repository at this point in the history
Removes sites from having `add` and `remove` methods
  • Loading branch information
andrueastman committed Mar 7, 2024
2 parents 580c195 + f54a430 commit dfb358e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions transforms/csdl/preprocess_csdl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2391,8 +2391,7 @@

<!-- Add ExplicitOperationBindings for followedSites and sites navigation props -->
<xsl:template match="edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='user']/edm:NavigationProperty[@Name='followedSites']|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='group']/edm:NavigationProperty[@Name='sites']|
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='site']/edm:NavigationProperty[@Name='sites']">
edm:Schema[@Namespace='microsoft.graph']/edm:EntityType[@Name='group']/edm:NavigationProperty[@Name='sites']">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
<Annotation Term="Org.OData.Core.V1.ExplicitOperationBindings">
Expand Down
15 changes: 4 additions & 11 deletions transforms/csdl/preprocess_csdl_test_output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,7 @@
</Collection>
</Annotation>
</NavigationProperty>
<NavigationProperty Name="sites" Type="Collection(graph.site)">
<Annotation Term="Org.OData.Core.V1.ExplicitOperationBindings" xmlns:edm="http://docs.oasis-open.org/odata/ns/edm">
<Collection>
<String>microsoft.graph.add</String>
<String>microsoft.graph.remove</String>
</Collection>
</Annotation>
</NavigationProperty>
<NavigationProperty Name="sites" Type="Collection(graph.site)" />
</EntityType>
<EntityType Name="baseSitePage" BaseType="graph.baseItem">
<Property Name="pageLayout" Type="graph.pageLayoutType" />
Expand Down Expand Up @@ -1185,18 +1178,18 @@
<ReturnType Type="Collection(graph.directoryObject)" Nullable="false" />
<Annotation Term="Org.OData.Core.V1.RequiresExplicitBinding" xmlns:edm="http://docs.oasis-open.org/odata/ns/edm" />
</Function>
<Function Name="boundingRect" IsBound="true" IsComposable="false">
<Function Name="boundingRect" IsBound="true" IsComposable="true">
<Parameter Name="bindparameter" Type="graph.workbookRange" />
<Parameter Name="anotherRange" Type="Edm.String" Unicode="false" />
<ReturnType Type="graph.workbookRange" />
</Function>
<Function Name="cell" IsBound="true" IsComposable="false">
<Function Name="cell" IsBound="true" IsComposable="true">
<Parameter Name="bindparameter" Type="graph.workbookRange" />
<Parameter Name="row" Type="Edm.Int32" Nullable="false" />
<Parameter Name="column" Type="Edm.Int32" Nullable="false" />
<ReturnType Type="graph.workbookRange" />
</Function>
<Function Name="cell" IsBound="true" IsComposable="false">
<Function Name="cell" IsBound="true" IsComposable="true">
<Parameter Name="bindparameter" Type="graph.workbookWorksheet" />
<Parameter Name="row" Type="Edm.Int32" Nullable="false" />
<Parameter Name="column" Type="Edm.Int32" Nullable="false" />
Expand Down

0 comments on commit dfb358e

Please sign in to comment.