-
Notifications
You must be signed in to change notification settings - Fork 429
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
feat: LaunchDarkly importer UI #2837
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
frontend/common/data/base/_data.js
Outdated
@@ -19,7 +19,7 @@ module.exports = { | |||
if (method !== 'get') | |||
options.headers['Content-Type'] = 'application/json; charset=utf-8' | |||
|
|||
if (this.token) { | |||
if (this.token && !isExternal) { |
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 think this is part of a different PR
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.
Yes, it was a common solution for this #2842 too, which was just merged into main
frontend/common/data/base/_data.js
Outdated
@@ -74,8 +74,8 @@ module.exports = { | |||
return this._request('delete', url, data, headers) | |||
}, | |||
|
|||
get(url, data, headers) { | |||
return this._request('get', url, data || null, headers) | |||
get(url, data, headers, isExternal = 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.
I think I mentioned this in another PR, but we can just base this on if the url is Project.api in _request
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.
Done.
Co-authored-by: Kim Gustyr <[email protected]>
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
How did you test this code?