-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add Argument --mb_http #29
Conversation
When calling dbt-metabase export from the command line, any argument supplied to --mb_https evaluates to True.
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.
Please format all your code with Black before submission.
Thanks for your submission, I see your predicament. Honestly, considering that HTTPS is default (and it should be nowadays), I would prefer just dropping This would be a breaking change for some, but I don't think it would be a massive one. Thoughts @z3z1ma? |
I agree @gouline I've always used
Something like this above probably achieves original intended functionality where you can do: Not as typical though so a more standard approach would be store_false with a default of True. We should do the same to the |
I would go as far as propagating |
Yeah I completely agree I think the consistency there is important, We just need to make sure we apply the same change to And maybe its a separate PR or we slightly expand the scope of this PR to be "Fix boolean cli args" or something. |
I think that's a separate PR. Feel free to raise it or otherwise I can do it. @erika-e can you please make this mb_https to mb_http change and address the formatting comment I left above? |
My intention was to remove the |
I've started testing dbt-metabase and I ran into an issue with running
dbt-metabase export
from the command line with the--mb_https
option.I am running Metabase locally in a docker container and was getting an SSL error. I found while troubleshooting that I can set mb_https to False when calling the export function from a Python script, but not from the command line.
I did some research and came up with a solution that adds an argument. I've tested it locally and I'm able to run the export from the command line. I've never made an open-source PR before 🙈 , so please feel free to give me feedback/suggestions! I realize that adding an argument may not be optimal.