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

config: disables sqlalchemy pane of flask-debugtoolbar for mysql #193

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

roksys
Copy link
Contributor

@roksys roksys commented Nov 13, 2019

@@ -113,6 +113,20 @@ def _(x):
{%- elif cookiecutter.database == 'mysql'%}
SQLALCHEMY_DATABASE_URI = \
'mysql+pymysql://{{cookiecutter.project_shortname}}:{{cookiecutter.project_shortname}}@localhost/{{cookiecutter.project_shortname}}'

# Disable Flask-DebugToolbar SQLAlchemy pane
Copy link
Contributor

Choose a reason for hiding this comment

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

I would disable everything here, not only the SQLAlchemy one, it will be more obvious for the developer that the toolbar is not working as a whole (it is less obvious that only the sqlalchemy part is missing) and it will point them to look at the config.
Also please add into the comment here something like Disable Flask-DebugToolbar only for mysql database configuration due to the issue so it is clear that this was added to the config because of the database type choice

@kpsherva kpsherva assigned roksys and unassigned kpsherva Nov 13, 2019
@roksys roksys removed their assignment Nov 13, 2019
@roksys roksys requested a review from kpsherva November 13, 2019 12:57
@kpsherva kpsherva self-assigned this Nov 13, 2019
@kpsherva kpsherva changed the base branch from master to dev-v3.2 November 14, 2019 10:04
@kpsherva kpsherva merged commit 1b7087d into inveniosoftware:dev-v3.2 Nov 14, 2019
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