Skip to content

Conversation

@dkaminsky
Copy link
Contributor

This is the Javascript SDK implementation of the logic for multi-region hostname lookup. Upon the first call to the client API, rather than directly accessing the underlying service, the SDK will now first await the result of a lookup to /client/v2/app/:clientAppId/location and use the hostname specified in the result as the hostname for the user request.

Differs slightly from the other SDKs in that it relies on failed promises rather than explicit error catching logic in the case of failure to retrieve or parse the location metadata.

@dkaminsky dkaminsky requested review from adamchel and jsflax November 27, 2018 23:51
@coveralls
Copy link

coveralls commented Nov 28, 2018

Coverage Status

Coverage decreased (-0.4%) to 76.761% when pulling b9c2d34 on dkaminsky:STITCH-2008 into 36f3b8d on mongodb:master.

Copy link
Contributor

@adamchel adamchel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work! LGTM mod some styles and nits

Copy link
Contributor

@jsflax jsflax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM barring Adam's comments

@dkaminsky dkaminsky merged commit fd99b24 into mongodb:master Dec 3, 2018
@dkaminsky dkaminsky deleted the STITCH-2008 branch December 3, 2018 21:37
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