-
Notifications
You must be signed in to change notification settings - Fork 14k
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(import-datasources): Use "admin" user as default for importing datasources #27154
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
468e952
Use "admin" user as default for importing datasources
ddxv ef1e28d
Merge branch 'master' into import-datasources-bugfix
ddxv 893ccd1
Merge remote-tracking branch 'upstream/master' into import-datasource…
ddxv 0cfa81c
Try with override_user
ddxv ce0b3bd
Set username as optional input for import_datasources with default of…
ddxv 4993006
Set default and required=false in click.option
ddxv c38f17a
Fix typo in option help
ddxv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
it seems it would probably make sense to add a
username
option here and leaveadmin
as the default. @betodealmeida what to you think?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.
From a consistency point of view, this makes sense to me. Let me know if you'd like me to go ahead and try with
--username
as an optional option.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.
Agreed with Daniel's feedback there
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.
Hey @ddxv wondering if you had a chance to look at this last change. So tempted to merge it :)
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.
@geido Are you referring to Daniel's suggestion? I'm all for that. Do we need to wait for any confirmation from @betodealmeida? Just to be sure, I didn't see any recent "change" to code though, so let me know if I am missing something here.
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.
@geido I went ahead and pushed the change suggested by Daniel for an optional field with
default="admin"
. My only thought on that is that if you want to matchimport_dashboards
it would be a required field without a default. This might be better just to have their API be the same for documentation and use, but let me know what you think.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.
@ddxv it would be great if you want to open a PR to match
import_dashboards
unless there is any opposition. For the time being I am approving this PR and moving forward.