-
Notifications
You must be signed in to change notification settings - Fork 62
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
base: support/v1
Are you sure you want to change the base?
Conversation
* 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>
There was a problem hiding this 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 |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tagName = NavigationSource.Name + "." + NavigationSource.EntityType.Name; | |
tagName = NavigationSource.Name + "." + NavigationSource.EntityType().Name; |
(and other places)
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.