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

views: translate labels and not names #567

Merged
merged 1 commit into from
Jun 8, 2016

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented Jun 6, 2016

So that we can install caravel on postgresql:

2016-06-03 17:58:05,386:ERROR:flask_appbuilder.base:
Add Permission on Menu Error: (psycopg2.ProgrammingError) can't adapt type '_LazyString'
[SQL: 'SELECT ab_view_menu.id AS ab_view_menu_id, ab_view_menu.name AS
ab_view_menu_name \nFROM ab_view_menu \nWHERE ab_view_menu.name = %(name_1)s \n
LIMIT %(param_1)s'] [parameters: {'param_1': 1, 'name_1': l'Sources'}]

Other than that translating names should be a recipe for disaster if
you switch language.

Fix #558

So that we can install caravel on postgresql:
```
2016-06-03 17:58:05,386:ERROR:flask_appbuilder.base:
Add Permission on Menu Error: (psycopg2.ProgrammingError) can't adapt type '_LazyString'
[SQL: 'SELECT ab_view_menu.id AS ab_view_menu_id, ab_view_menu.name AS
ab_view_menu_name \nFROM ab_view_menu \nWHERE ab_view_menu.name = %(name_1)s \n
LIMIT %(param_1)s'] [parameters: {'param_1': 1, 'name_1': l'Sources'}]
```

Other that translating names should be a recipe for disaster if
you switch language.

Fix apache#558
@coveralls
Copy link

coveralls commented Jun 6, 2016

Coverage Status

Coverage remained the same at 81.856% when pulling dc878fc on xrmx:translatecategory into dc33506 on airbnb:master.

@xrmx
Copy link
Contributor Author

xrmx commented Jun 6, 2016

Even with the patch applied caravel db upgrade hang applying the migrations

INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -> 4e6a06bad7a8, Init

And the server logs

2016-06-06 14:37:14 CEST [6125-1] caravel@caravel LOG:  could not receive data from client: Connection reset by peer
2016-06-06 14:37:14 CEST [6125-2] caravel@caravel LOG:  unexpected EOF on client connection with an open transaction

@mistercrunch
Copy link
Member

Nice, thanks!

@mistercrunch mistercrunch merged commit ad5507c into apache:master Jun 8, 2016
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
apache#567)

* add emotion styling to Markup chart

* Update package.json
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
apache#567)

* add emotion styling to Markup chart

* Update package.json
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
apache#567)

* add emotion styling to Markup chart

* Update package.json
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
apache#567)

* add emotion styling to Markup chart

* Update package.json
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.9.1 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.9.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

caravel db upgrade fails on postgres
3 participants