-
Notifications
You must be signed in to change notification settings - Fork 192
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
fix: add warning about python sdk login_user breaking change in 21.4.0 #579
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
LGTM except for failing CI checks
if (method.name === 'login_user') { | ||
methodCall = | ||
`${indent}warnings.warn("login_user behavior changed significantly ` + | ||
`in 21.4.0. See https://git.io/JOtH1")\n${methodCall}` | ||
} |
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.
Want to create an issue to remove this after 3 - 6 months?
This comment has been minimized.
This comment has been minimized.
b0b1a8c
to
6d11310
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.
LGTM
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
99331b4
to
31d4676
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
The Python part lgtm. Maybe there was a conversation I missed, but why is the example miner change part of this PR?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
306cafb
to
2dcf87f
Compare
This comment has been minimized.
This comment has been minimized.
aa0268f
to
ea5f8b3
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.
Nice detective work
.github/workflows/codegen-ci.yml
Outdated
@@ -23,8 +23,10 @@ on: | |||
|
|||
env: | |||
LOOKERSDK_BASE_URL: https://localhost:20000 | |||
LOOKERSDK_VERIFY_SSL: false | |||
LOOKERSDK_VERIFY_SSL: False |
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.
case sensitivity for the ... win?
.github/workflows/codegen-ci.yml
Outdated
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 15.x |
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.
that'll speed things up
.github/workflows/codegen-ci.yml
Outdated
echo "base_url=https://self-signed.looker.com:19999" >> looker.ini | ||
echo "verify_ssl=False" >> looker.ini | ||
echo "base_url=https://localhost:20000" >> looker.ini | ||
echo "verify_ssl=false" >> looker.ini |
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.
our SDKs should treat false
and False
identically FWIW
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 could almost swear that the path it takes in fetchSpec
(where you just ApiConfig
it) it was failing with False
and then passed with false
.
if (!match) { | ||
// git origin on CI: https://github.com/looker-open-source/sdk-codegen | ||
const httpExtractor = /(https:\/\/github.com.*)(|.git)/ | ||
match = httpExtractor.exec(origin) | ||
if (!match) { | ||
return '' | ||
} | ||
return match[1] |
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 bet this was fun to track down
client_id: props.client_id ?? process.env.LOOKERSDK_CLIENT_ID, | ||
client_secret: props.client_secret ?? process.env.LOOKERSDK_CLIENT_SECRET, |
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.
Need to fix that config resolution downstream in the future
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ea5f8b3
to
8c5bb53
Compare
No description provided.