-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Loose BigQuery GCP project ID regex restrictions #32178
Conversation
cf86deb
to
826ef24
Compare
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
826ef24
to
3835233
Compare
assign set of reviewers |
There is probably a test flake? |
Assigning reviewers. If you would like to opt out of this review, comment R: @damondouglas for label java. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
I agree this is a reasonable change. Checked that For this reason please preserve the original comments, but could say
then
|
3835233
to
f47eb14
Compare
Thanks @Abacn , I have adjusted the comment accordingly. |
*/ | ||
private static final String PROJECT_ID_REGEXP = "[a-z][-a-z0-9:.]{4,61}[a-z0-9]"; | ||
private static final String PROJECT_ID_REGEXP = "[a-z][-a-z0-9:.]{0,62}"; |
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 thought further about it, previously project id cannot ends with colon and dot, now it does not guard against it. I cannot tell if this could have unexpected results. Consider use [a-z][-a-z0-9:.]{0,61}[a-z0-9]
? then effectively it still requires project id of at least 2 chars
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.
Well, previously project ID couldn't have less than 5 symbols either 😄 I think that's the point of the change, enforcing somebody else's rules shouldn't be a concern of 3rd party library, which Apache Beam is.
Having said that, I made the requested change because I think "at least 2 chars long" is a reasonable restriction.
We really hope this change will make it into 2.59.0!
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.
Could you please have a look again, @Abacn ?
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.
f47eb14
to
c2f7f82
Compare
This addresses #32168, please see rationale there