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

Fix initialization of Database sqlalchemy_uri and password #1137

Conversation

dennisobrien
Copy link
Contributor

Move initialization of Database sqlalchemy_uri and password from DatabaseView.pre_add to utils.get_or_create_main_db. This fixes an issue where a clean install of Caravel using a database with a username and password failed to initialize properly.

Updates the unit tests for mysql and postgres to include username and password in the SQLALCHEMY_DATABASE_URI. Previously, including a username and password in these URIs would lead to failing tests.

This fixes issue #1070
This supercedes PR #1092 (now closed).

…baseView.pre_add to utils.get_or_create_main_db.

Unit tests for mysql and postgres include username and password in the SQLALCHEMY_DATABASE_URI.
@mistercrunch
Copy link
Member

Nice! great work!

@mistercrunch mistercrunch merged commit ca66ba4 into apache:master Sep 19, 2016
@dennisobrien dennisobrien deleted the dennisobrien/bugfix_init_db_username_password branch September 19, 2016 23:39
dennisobrien added a commit to dennisobrien/caravel that referenced this pull request Sep 22, 2016
…e password is stored encrypted.

This fixes a regression I introduced with PR apache#1137
mistercrunch pushed a commit that referenced this pull request Sep 22, 2016
…e password is stored encrypted. (#1177)

This fixes a regression I introduced with PR #1137
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants