Skip to content
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 optional role argument, fix messaging around permissions errors #291

Merged
merged 2 commits into from
Feb 20, 2017

Conversation

cmcarthur
Copy link
Member

@cmcarthur cmcarthur commented Feb 19, 2017

This branch adds an optional role argument to profiles.yml, and also improves the messaging around faux 'This session does not have a current database' (actually lack of permissions) errors.

Functionally tested with:

role: INVALID (invalid
role: SYSADMIN (valid, with CREATE permissions)
role: PUBLIC (valid, but not enough permissions)
no role (== SYSADMIN as that is my default role)

@@ -3,7 +3,7 @@
changed_tests := `git status --porcelain | grep '^\(M\| M\|A\| A\)' | awk '{ print $$2 }' | grep '\/test_[a-zA-Z_\-\.]\+.py'`

install:
pip install .
pip install --upgrade .
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it turns out this is needed for re-installation to work.

@drewbanin
Copy link
Contributor

@cmcarthur can you update the sample.profiles.yml file w/ the role config? Otherwise, LGTM

@cmcarthur cmcarthur merged commit 36b26d8 into development Feb 20, 2017
@cmcarthur cmcarthur deleted the fix/snowflake-permissions branch February 20, 2017 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants