Skip to content

Treat API_HOST as URL#419

Merged
nmuesch merged 5 commits intoDataDog:masterfrom
dabcoder:davidb/api-host-url
Aug 16, 2019
Merged

Treat API_HOST as URL#419
nmuesch merged 5 commits intoDataDog:masterfrom
dabcoder:davidb/api-host-url

Conversation

@dabcoder
Copy link
Copy Markdown

@dabcoder dabcoder commented Aug 1, 2019

Attempts to fix #411.

@dabcoder dabcoder requested a review from a team as a code owner August 1, 2019 08:53
Copy link
Copy Markdown
Contributor

@zippolyte zippolyte left a comment

Choose a reason for hiding this comment

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

A couple of nits.
Also, let's create a test that specifically test the case where your host contains a slash at the end.

@dabcoder dabcoder force-pushed the davidb/api-host-url branch from fac60d9 to 3aa3750 Compare August 1, 2019 12:31
@dabcoder dabcoder changed the title [WIP] Treat API_HOST as URL Treat API_HOST as URL Aug 2, 2019
Copy link
Copy Markdown
Contributor

@nmuesch nmuesch left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@nmuesch nmuesch merged commit 42b578c into DataDog:master Aug 16, 2019
@dabcoder dabcoder deleted the davidb/api-host-url branch October 16, 2019 08:10
dabcoder pushed a commit to dabcoder/datadogpy that referenced this pull request Oct 25, 2019
* Remove trailing whitespace from api_host

* Attempt to fix url issue

* Implement first review feedback

* Better understanding of urljoin behavior

* Do not use the API url in tests
dabcoder pushed a commit to dabcoder/datadogpy that referenced this pull request Nov 28, 2019
* Remove trailing whitespace from api_host

* Attempt to fix url issue

* Implement first review feedback

* Better understanding of urljoin behavior

* Do not use the API url in tests
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.

API_HOST should be manipulated as an URL and not as a string

3 participants