-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated FQDN's to googleapis.com with a trailing dot #2214
updated FQDN's to googleapis.com with a trailing dot #2214
Conversation
7795d06
to
c786850
Compare
I caught an issue where scopes cannot have the trailing dot. I'm fixing that now. |
c786850
to
a2115be
Compare
I think I got them all, per |
a2115be
to
cada67e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am saying no to this PR. I recognize that there are locations where a trailing period is appropriate (e.g. a BIND configuration file), but its general use in URLs is not one of those places.
And, in fact, when I actually try to use a URL with a trailing dot, I get redirected to the URL without it:
$ curl -I https://github.com./GoogleCloudPlatform
HTTP/1.1 301 Moved Permanently
Content-length: 0
Location: https://github.com/GoogleCloudPlatform
Connection: close
Additionally, this violates the principle of lease surprise. Even if it were a tiny benefit to write the URLs this way, the level of "huh?" caused by people who read it would be...high.
.jscsrc
Outdated
@@ -16,7 +16,7 @@ | |||
], | |||
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", | |||
"maximumLineLength": { | |||
"value": 80, | |||
"value": 81, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -66,7 +66,7 @@ function BigQuery(options) { | |||
} | |||
|
|||
var config = { | |||
baseUrl: 'https://www.googleapis.com/bigquery/v2', | |||
baseUrl: 'https://www.googleapis.com./bigquery/v2', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I discussed this with our team internally and have been persuaded. I do want you to change the maximum line length back to 80, though. |
Sure, I can certainly move that back to 80 chars. What is the suggested style choice for the baseUrl lines that have reached 81 chars in the line? |
Will something like this be acceptable?
|
Regarding style, whatever you think works best for the block the code is in, including renaming vars to be shorter, or: var url = [
'http://www.googleapis.com./...',
'other-part'
].join('/'); Anything you come up I'm sure will be just fine, and thanks very much for asking!
Yep, that's perfect 👍 |
cada67e
to
c343a6e
Compare
Okay, changes made and rebased from upstream. Let me know if anything else needs to change. |
Changes Unknown when pulling c343a6e on restorationmedia:issue-2213-fqdn-trailing-dot into ** on GoogleCloudPlatform:master**. |
Just assigning to myself -- running the system tests locally had a couple failures, so I'll need to comb over and make sure we've got the dots in the right spots. |
@stephenplusplus No need to do an entire umbrella release for this, but maybe release BigTable for @ericuldall. The rest of them can just show up when we release for other reasons. |
Due to an issue brought up in #2249, we have reverted this change. |
** edit by @stephenplusplus **
Due to an issue brought up in #2249, we have reverted this change.
PR for Issue #2213