Skip to content

Conversation

@irvinesunday
Copy link
Contributor

Fixes #429

This PR:

  • Checks whether a bound operation has the annotation Org.OData.Core.V1.RequiresExplicitBinding before falling back on the containment check for the target navigation property.
    • If the above annotation is present on the operation, then the Org.OData.Core.V1.ExplicitOperationBindings will need to be provided on the target navigation property with the said operation contained in the annotation collection for this method to be allowed.
    • If the above annotation is absent, then the containment of the navigation property will determine whether or not the method will be allowed. If the containment is true, then the method will be allowed, else, it won't.

baywet
baywet previously requested changes Oct 3, 2023

// So far, we only consider the non-containment
Debug.Assert(!NavigationProperty.ContainsTarget);
//Debug.Assert(!NavigationProperty.ContainsTarget);
Copy link
Member

Choose a reason for hiding this comment

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

commented out code

<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.OData.Edm" Version="7.18.0" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.9" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.4" />
Copy link
Member

Choose a reason for hiding this comment

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

rebase, I'm not sure why we're downgrading dependencies here.

oasRichTextBox.WordWrap = false;


verifyEdmModelcheckBox.Checked = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably need to double check if this change is intended as well.

@irvinesunday irvinesunday force-pushed the is/explicit-operations-binding branch from 39a325d to 5c97ab1 Compare October 4, 2023 09:28
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 2 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@irvinesunday irvinesunday marked this pull request as ready for review October 4, 2023 09:35
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.

Bound operations not appended to non-contained navigation property paths with ExplicitBinding annotations

4 participants