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

Adds action/function suffix to tag names for action/function operations #642

Open
wants to merge 2 commits into
base: support/v1
Choose a base branch
from

Conversation

timayabi2020
Copy link
Contributor

Fixes #640
Cherry picks from #586 and adds "Actions" or "Functions" as suffixes to the tag. This will

enable the powershell mappings to be updated to target the paths more precisely to fix the incorrect mappings.
enable the user functions/actions to still remain in their current modules by targeting operationIds like user.*.Actions.

irvinesunday and others added 2 commits January 17, 2025 16:50
* Update operation tags generation

* Refactor operation tag generation

* Update unit tests

* Update integration test files

* Update release note

* Update src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationOperationHandler.cs

Co-authored-by: Andrew Omondi <andrueastman@users.noreply.github.com>

* Account for nullability

* Remove unnecessary code

---------

Co-authored-by: Andrew Omondi <andrueastman@users.noreply.github.com>
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

also lacks unit tests and integration tests updates

@@ -21,8 +21,13 @@
<PackageTags>Microsoft OpenApi OData EDM</PackageTags>
<RepositoryUrl>https://github.com/Microsoft/OpenAPI.NET.OData</RepositoryUrl>
<PackageReleaseNotes>
- Further fix for generating unique operation ids for navigation property paths with composable overloaded functions #596
</PackageReleaseNotes>
- Upgraded to Microsoft.Odata.Edm 8.0.0
Copy link
Member

Choose a reason for hiding this comment

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

those are changelogs from v2, I believe something went wrong in your cherry-pick, you should revert this and add an entry specific to your change + version bump

// ODataNavigationSourceSegment
// If the operation is a function or action, append the word "Function" or "Action" to the tag name
case ODataOperationSegment operationSegment:
tagName = NavigationSource.Name + "." + NavigationSource.EntityType.Name;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tagName = NavigationSource.Name + "." + NavigationSource.EntityType.Name;
tagName = NavigationSource.Name + "." + NavigationSource.EntityType().Name;

(and other places)

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.

3 participants