microsoft / kiota

OpenAPI based HTTP Client code generator
https://aka.ms/kiota/docs
MIT License
2.48k stars 176 forks source link

Operations are not shown in the VS Code treeview for certain paths when filtering #4830

Closed darrelmiller closed 2 days ago

darrelmiller commented 1 month ago

What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Nuget tool

Client library/SDK language

None

Describe the bug

I am trying to filter on "sendMail" and then select the operation in Microsoft Graph

Expected behavior

I expect to see the POST operation under the sendmail node

How to reproduce

Open the Microsoft Graph v1 API in the VS Code extension.
Filter on "sendmail". You will see the sendmail node but the POST operation is not displayed. If you filter on schedule you will see a node that is called fvSchedule that shows a POST but the node getSchedule does not show the POST.

Open API description file

No response

Kiota Version

1.15.0-preview.202405300001+76b8e1bdaf86000dc03cfdec19528192745ff3b4

Latest Kiota version known to work for scenario above?(Not required)

No response

Known Workarounds

No response

Configuration

No response

Debug output

Click to expand log ``` ```

Other information

No response

darrelmiller commented 4 weeks ago

It also happens with "directReports" which isn't an action.

darrelmiller commented 4 weeks ago

Doh! It is a case sensitivity issue. As soon as a the search filter includes characters that are mixed in case in the tree, the operations stop appearing. Type "send" and you will still see the operations, type "sendm" or "sendM" and they disappear because "sendMail" has mixed case.

ElinorW commented 4 weeks ago

Hey @darrelmiller, I've been able to reproduce this issue. I will look into it