microsoft / kiota

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

When reloading the API Explorer after creating an API Plugin, the right endpoints should be selected #4869

Open maisarissi opened 2 weeks ago

maisarissi commented 2 weeks ago

After creating an API Plugin selecting the entire /repos/{org-id}/{repo-id} node from the GitHub API, when Kiota extension does the reload, the actions node is not showing as selected as well as some sub-nodes:

image image

Looking at the deepest node/operations, all them seems to be selected though

image

The API Plugin has the actions endpoints, the sliced OpenAPI has the actions endpoints, and the workspace.json file has all actions endpoints as well.

The issue seems to be only with the UI not showing all the nodes and sub-nodes selected.

baywet commented 2 weeks ago

@maisarissi could it be that only the nodes that DO NOT have an operation immediately under them are not selected?

maisarissi commented 2 weeks ago

Yes, it seems to be the case.

ElinorW commented 1 week ago

@maisarissi I've been able to reproduce this... I'm not sure if this bug exists from before though because I haven't changed the selection behaviour I'll work on a fix