apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
63.04k stars 13.96k forks source link

Unicode characters and empty names in exported .yaml files #20331

Open magicarm22 opened 2 years ago

magicarm22 commented 2 years ago

When I try to export dashboard with Russian names from the Apache superset, I got an archive without name in the dashboard and charts folders. Also in .yaml files I can find \u symbols: dashboard_title: "\u041A\u0443\u0440\u0441\u043A"

How to reproduce the bug

  1. Create a new dashboard with russian symbols (for example "Тест")
  2. Also you can create a charts with russian names too.
  3. Save the dashboard
  4. Export that dashboard
  5. Check that the name of the dashboard.yaml file like .yaml
  6. Check that you got undecoded unicode symbols inside the yaml file

Expected results

Yaml files with name and correct strings

Actual results

Yaml file without name (just extension), and with \u characters

Screenshots

image image image

Environment

(please complete the following information):

Checklist

Make sure to follow these steps before submitting your issue - thank you!

Additional context

Add any other context about the problem here.

d9k commented 2 years ago

I got following errors after importing dashboard with russian names charts to another Superset instance:

Charts not working

Temporary solution

1) Open charts one by one, rename all charts names to new names with english characters only. 2) (Optionally) Open dashboard, press pencil icon. You can click on chart titles and rename visible captions. Chart names must remain the same (english characters only)

Version info

Superset v. 1.5.1

CeelamkotiVinod commented 1 year ago

I have exported dashboard from test instance and imported in production instance. And when I open dashboard and see charts in production then I got this

"There is no chart definition associated with this component, could it have been deleted? Delete this container and save to remove this message."

I tried by renaming and save & goto dashboard. But the chart is not added in dashboard.

I installed superset using pip and version is 2.0.1.

Thanks in advance

zakaryanla commented 11 months ago

I had a similar problem that the Cyrillic alphabet was removed and the file began with _$number.yaml, such files were not imported. In version 3 of SS the problem is not reproduced.

rusackas commented 7 months ago

Is this still being seen in Superset 3.1/4.0?

rusackas commented 7 months ago

Seems possibly related to https://github.com/apache/superset/issues/19982, even if tangentially.