Skip to content

Conversation

@gabrielhandeland
Copy link

@gabrielhandeland gabrielhandeland commented Feb 17, 2023

Summary

Motivation

In node 18, the Request object from the fetch API will throw an error if a full URL is not supplied. Using batch requests will not work unless supplying full Graph URLs including host name, like so: https://graph.microsoft.com/v1.0/groups. When using the SDK with batch requests this way, I discovered that the URL is not parsed correctly, as explained in #1178.

To be able to use this functionality right now, the developer is required to enter an incorrect path, excluding the versioning.

Test plan

I added a test ensuring that the URL is parsed correctly.

All tests pass running npm run test.

Closing issues

Fixes #1178

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@gabrielhandeland
Copy link
Author

gabrielhandeland commented Feb 17, 2023 via email

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.

Thanks for the contirbution!

@baywet baywet requested a review from koros February 17, 2023 13:51
Co-authored-by: Vincent Biret <vincentbiret@hotmail.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.

Thanks for accepting the suggestion. @koros for final review and merge please.

@gabrielhandeland
Copy link
Author

Thanks for accepting the suggestion. @koros for final review and merge please.

Any progress on the final review?:)

@sebastienlevert
Copy link
Contributor

Thanks for the nudge! We are currently heads down in the design of the v4 of this library so this one slipped. Though, it's an important one AFAIK so I'll mention @koros for the final checks and merge here!

@koros koros merged commit e20b099 into microsoftgraph:master May 23, 2023
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.

4 participants