-
Notifications
You must be signed in to change notification settings - Fork 103
Description
Describe the bug
The Graph Explorer is using cached strings for the endpoint textbox when making calls in some cases. Editing the endpoint with further details will not make the call given, and using the version dropdown to switch between v1.0 and beta will revert the text to the previous value.
To Reproduce
One example (I'm sure there are others):
- Go to the Graph Explorer and set up a call to beta/me/calendars. As expected, you'll get the calendar list.
- Now grab a calendar ID from that list and paste it into the endpoint text box so you are making a call to beta/me/calendars/{calendarId}. Execute the call and you'll see that you're getting the calendar list, not the singular calendar. The @odata.contxt value shows the old call being made without the calendarId.
Now use the version dropdown to the left of the endpoint text box to switch to v1.0. The text will revert to the /me/calendars call and the calendar ID is removed. Paste the calendarId into the call again, try again, and see the same result. You get the calendar list. Switch back to beta and the calendar ID is wiped out again.
However, if you manually edit the version in the endpoint to v1.0/beta, it will work correctly and you will then be able to switch between versions with the dropdown without issue.
Expected behavior
Graph Explorer should always be using the value in the endpoint text box. It should never erase data when switching between API versions.
Desktop (please complete the following information):
- OS: Macos 14.5
- Browser: Chrome
- Version: 137.0.7151.56